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

Unified Diff: Source/core/css/CSSParser.cpp

Issue 16358010: [CSS Exclusions] Add CSS parsing support for image URI shape-inside and shape-outside values (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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
Index: Source/core/css/CSSParser.cpp
diff --git a/Source/core/css/CSSParser.cpp b/Source/core/css/CSSParser.cpp
index 8dd9d7e9115dc864979b1a316a094a2305b67866..ccc41cc09dbd6e980fd551567e746c833999b078 100644
--- a/Source/core/css/CSSParser.cpp
+++ b/Source/core/css/CSSParser.cpp
@@ -2738,6 +2738,10 @@ bool CSSParser::parseValue(CSSPropertyID propId, bool important)
validPrimitive = true;
else if (value->unit == CSSParserValue::Function)
return parseBasicShape(propId, important);
+ else if (value->unit == CSSPrimitiveValue::CSS_URI) {
+ parsedValue = CSSImageValue::create(completeURL(value->string));
+ m_valueList->next();
+ }
break;
case CSSPropertyWebkitShapeMargin:
case CSSPropertyWebkitShapePadding:

Powered by Google App Engine
This is Rietveld 408576698