Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / platform / graphics / filters / PointLightSource.cpp
index 5acacbc..6d41dde 100644 (file)
@@ -33,7 +33,7 @@
 
 #include "platform/text/TextStream.h"
 
-namespace WebCore {
+namespace blink {
 
 void PointLightSource::initPaintingData(PaintingData&) const
 {
@@ -47,27 +47,11 @@ void PointLightSource::updatePaintingData(PaintingData& paintingData, int x, int
     paintingData.lightVectorLength = paintingData.lightVector.length();
 }
 
-bool PointLightSource::setX(float x)
+bool PointLightSource::setPosition(const FloatPoint3D& position)
 {
-    if (m_position.x() == x)
+    if (m_position == position)
         return false;
-    m_position.setX(x);
-    return true;
-}
-
-bool PointLightSource::setY(float y)
-{
-    if (m_position.y() == y)
-        return false;
-    m_position.setY(y);
-    return true;
-}
-
-bool PointLightSource::setZ(float z)
-{
-    if (m_position.z() == z)
-        return false;
-    m_position.setZ(z);
+    m_position = position;
     return true;
 }
 
@@ -84,4 +68,4 @@ TextStream& PointLightSource::externalRepresentation(TextStream& ts) const
     return ts;
 }
 
-}; // namespace WebCore
+}; // namespace blink