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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp

Issue 1439793003: SVG: Promote d to a property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: RefPtrWillBePersistent Created 5 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: third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp b/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp
index a9e843e75f2aa8d532c229747e44b76177f2e420..ecd7bbdd15563b69bd52510642f407ffa6a76305 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp
@@ -869,4 +869,19 @@ void StyleBuilderFunctions::applyValueCSSPropertyBaselineShift(StyleResolverStat
}
}
+void StyleBuilderFunctions::applyInitialCSSPropertyD(StyleResolverState& state)
+{
+ state.style()->accessSVGStyle().setD(SVGComputedStyle::initialD());
+}
+
+void StyleBuilderFunctions::applyInheritCSSPropertyD(StyleResolverState& state)
+{
+ state.style()->accessSVGStyle().setD(state.parentStyle()->svgStyle().d());
+}
+
+void StyleBuilderFunctions::applyValueCSSPropertyD(StyleResolverState& state, CSSValue* value)
+{
+ state.style()->accessSVGStyle().setD(toCSSPathValue(value));
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698