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

Unified Diff: Source/core/layout/style/SVGLayoutStyle.cpp

Issue 975733002: Use Length for the stroke-dasharray property in SVGLayoutStyle (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add test for style-change responsive-ness. Created 5 years, 10 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/layout/style/SVGLayoutStyle.cpp
diff --git a/Source/core/layout/style/SVGLayoutStyle.cpp b/Source/core/layout/style/SVGLayoutStyle.cpp
index 2be0dacbee95630cc7a7fe9f6431aaa65631371d..55957ff9cd4c6cb754709a64c0715080b48a343a 100644
--- a/Source/core/layout/style/SVGLayoutStyle.cpp
+++ b/Source/core/layout/style/SVGLayoutStyle.cpp
@@ -120,6 +120,12 @@ void SVGLayoutStyle::copyNonInheritedFromCached(const SVGLayoutStyle* other)
resources = other->resources;
}
+PassRefPtr<SVGDashArray> SVGLayoutStyle::initialStrokeDashArray()
+{
+ DEFINE_STATIC_REF(SVGDashArray, initialDashArray, SVGDashArray::create());
+ return initialDashArray;
+}
+
StyleDifference SVGLayoutStyle::diff(const SVGLayoutStyle* other) const
{
StyleDifference styleDifference;

Powered by Google App Engine
This is Rietveld 408576698