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

Unified Diff: Source/platform/graphics/Color.h

Issue 114373004: Remove the SVGColor and SVGPaint DOM interfaces (were deprecated). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased 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
Index: Source/platform/graphics/Color.h
diff --git a/Source/platform/graphics/Color.h b/Source/platform/graphics/Color.h
index 9664906a8f7840954ce28a951d56656c4d053db0..09e8c256ee8971b0d7b487dabfab817b0d20ce67 100644
--- a/Source/platform/graphics/Color.h
+++ b/Source/platform/graphics/Color.h
@@ -88,6 +88,10 @@ public:
// - http://www.whatwg.org/specs/web-apps/current-work/#serialization-of-a-color
String serialized() const;
+ // Returns the color serialized according to CSSOM
+ // - http://dev.w3.org/csswg/cssom/#serialize-a-css-component-value
+ String serializedAsCSSComponentValue() const;
+
// Returns the color serialized as either #RRGGBB or #RRGGBBAA
// The latter format is not a valid CSS color, and should only be seen in DRT dumps.
String nameForRenderTreeAsText() const;

Powered by Google App Engine
This is Rietveld 408576698