Index: Source/WebCore/svg/SVGPaint.cpp |
=================================================================== |
--- Source/WebCore/svg/SVGPaint.cpp (revision 86165) |
+++ Source/WebCore/svg/SVGPaint.cpp (working copy) |
@@ -67,9 +67,21 @@ |
m_paintType = SVG_PAINTTYPE_URI_NONE; |
setColor(Color()); |
setColorType(colorTypeForPaintType(m_paintType)); |
- setNeedsStyleRecalc(); |
+ // FIXME: A follow up patch will call valueChanged() here. |
} |
+SVGPaint* SVGPaint::defaultFill() |
+{ |
+ static SVGPaint* staticDefaultFill = createColor(Color::black).releaseRef(); |
+ return staticDefaultFill; |
+} |
+ |
+SVGPaint* SVGPaint::defaultStroke() |
+{ |
+ static SVGPaint* staticDefaultStroke = createNone().releaseRef(); |
+ return staticDefaultStroke; |
+} |
+ |
void SVGPaint::setPaint(unsigned short paintType, const String& uri, const String& rgbColor, const String& iccColor, ExceptionCode& ec) |
{ |
if ((paintType > SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR && paintType < SVG_PAINTTYPE_NONE) || paintType > SVG_PAINTTYPE_URI) { |
@@ -120,7 +132,7 @@ |
m_paintType = type; |
m_uri = requiresURI ? uri : String(); |
- setNeedsStyleRecalc(); |
+ // FIXME: A follow up patch will call valueChanged() here. |
} |
String SVGPaint::cssText() const |