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

Unified Diff: Source/core/svg/SVGPaint.h

Issue 108303009: Handle "url(...) none" and "url(...) currentColor" SVG paint specs (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added TC for 'none' fallback w/ failing url(...). Created 7 years 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/core/rendering/svg/SVGResources.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGPaint.h
diff --git a/Source/core/svg/SVGPaint.h b/Source/core/svg/SVGPaint.h
index f48b4b7ba0715f7cc02a5989d497ed790b1bd5b8..13a4769ba9153d5edb7071bf853b242c9e60ed63 100644
--- a/Source/core/svg/SVGPaint.h
+++ b/Source/core/svg/SVGPaint.h
@@ -86,6 +86,12 @@ public:
return paint.release();
}
+ static PassRefPtr<SVGPaint> createURIAndCurrentColor(const String& uri)
+ {
+ RefPtr<SVGPaint> paint = adoptRef(new SVGPaint(SVG_PAINTTYPE_URI_CURRENTCOLOR, uri));
+ return paint.release();
+ }
+
const SVGPaintType& paintType() const { return m_paintType; }
String uri() const { return m_uri; }
« no previous file with comments | « Source/core/rendering/svg/SVGResources.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698