Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Unified Diff: Source/WebCore/svg/SVGPaint.cpp

Issue 7002001: Revert 79985 - 2011-03-01 Nikolas Zimmermann <nzimmermann@rim.com> (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/742/
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/svg/SVGPaint.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/WebCore/svg/SVGPaint.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698