Index: Source/platform/graphics/filters/SpotLightSource.cpp |
diff --git a/Source/platform/graphics/filters/SpotLightSource.cpp b/Source/platform/graphics/filters/SpotLightSource.cpp |
index 9aeb26341ae5e477a0a2f2989ae83ba81159f015..e8665fcefd117220cfd4041b79999e3bbc4b646c 100644 |
--- a/Source/platform/graphics/filters/SpotLightSource.cpp |
+++ b/Source/platform/graphics/filters/SpotLightSource.cpp |
@@ -40,7 +40,7 @@ namespace WebCore { |
// according to the SVG 1.1 SE light regression tests |
static const float antiAliasTreshold = 0.016f; |
-void SpotLightSource::initPaintingData(PaintingData& paintingData) |
+void SpotLightSource::initPaintingData(PaintingData& paintingData) const |
{ |
paintingData.privateColorVector = paintingData.colorVector; |
paintingData.directionVector.setX(m_direction.x() - m_position.x()); |
@@ -70,7 +70,7 @@ void SpotLightSource::initPaintingData(PaintingData& paintingData) |
paintingData.specularExponent = 2; |
} |
-void SpotLightSource::updatePaintingData(PaintingData& paintingData, int x, int y, float z) |
+void SpotLightSource::updatePaintingData(PaintingData& paintingData, int x, int y, float z) const |
{ |
paintingData.lightVector.setX(m_position.x() - x); |
paintingData.lightVector.setY(m_position.y() - y); |