| Index: Source/platform/graphics/filters/PointLightSource.cpp
|
| diff --git a/Source/platform/graphics/filters/PointLightSource.cpp b/Source/platform/graphics/filters/PointLightSource.cpp
|
| index 5acacbc43c46069bb2b9f83bdc78624d7393f82b..acea84064f9d5d494caddcfebf47eb5d2cea043a 100644
|
| --- a/Source/platform/graphics/filters/PointLightSource.cpp
|
| +++ b/Source/platform/graphics/filters/PointLightSource.cpp
|
| @@ -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;
|
| }
|
|
|
|
|