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

Unified Diff: Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl

Issue 244693003: [CSS Shapes] Add parsing support for gradients (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Increase threshold Created 6 years, 8 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/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
diff --git a/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl b/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
index 4013be2fa9bb99b4ac7ff4a18ff3d2c084fbe7f5..c15c57bf3d4ad106e9193b80132142feff642ebe 100644
--- a/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
+++ b/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
@@ -478,7 +478,7 @@ namespace WebCore {
CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value);
if (primitiveValue->getValueID() == CSSValueAuto)
{{set_value(property)}}(nullptr);
- } else if (value->isImageValue() || value->isImageSetValue()) {
+ } else if (value->isImageValue() || value->isImageGeneratorValue() || value->isImageSetValue()) {
{{set_value(property)}}(ShapeValue::createImageValue(state.styleImage({{property_id}}, value)));
} else if (value->isValueList()) {
RefPtr<BasicShape> shape;

Powered by Google App Engine
This is Rietveld 408576698