summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/svg/SVGPaint.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGPaint.cpp')
-rw-r--r--Source/WebCore/svg/SVGPaint.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/Source/WebCore/svg/SVGPaint.cpp b/Source/WebCore/svg/SVGPaint.cpp
index c9e08db..e1a8137 100644
--- a/Source/WebCore/svg/SVGPaint.cpp
+++ b/Source/WebCore/svg/SVGPaint.cpp
@@ -67,7 +67,19 @@ void SVGPaint::setUri(const String& uri)
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)
@@ -120,7 +132,7 @@ void SVGPaint::setPaint(unsigned short paintType, const String& uri, const Strin
m_paintType = type;
m_uri = requiresURI ? uri : String();
- setNeedsStyleRecalc();
+ // FIXME: A follow up patch will call valueChanged() here.
}
String SVGPaint::cssText() const