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

Unified Diff: Source/core/layout/svg/SVGLayoutSupport.h

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/svg/SVGLayoutSupport.h
diff --git a/Source/core/layout/svg/SVGLayoutSupport.h b/Source/core/layout/svg/SVGLayoutSupport.h
index 03e7f2c38de5eac897e67f55ac11d70d552fa4f4..5bf34b4d76920ddfab775508f15072be205d166c 100644
--- a/Source/core/layout/svg/SVGLayoutSupport.h
+++ b/Source/core/layout/svg/SVGLayoutSupport.h
@@ -25,6 +25,7 @@
#define SVGLayoutSupport_h
#include "core/layout/svg/LayoutSVGResourcePaintServer.h"
+#include "platform/graphics/DashArray.h"
namespace blink {
@@ -41,6 +42,7 @@ class LayoutBoxModelObject;
class LayoutObject;
class LayoutStyle;
class LayoutSVGRoot;
+class SVGLengthContext;
class StrokeData;
class TransformState;
@@ -81,6 +83,8 @@ public:
static void applyStrokeStyleToContext(GraphicsContext&, const LayoutStyle&, const LayoutObject&);
static void applyStrokeStyleToStrokeData(StrokeData&, const LayoutStyle&, const LayoutObject&);
+ static DashArray resolveSVGDashArray(const SVGDashArray&, const LayoutStyle&, const SVGLengthContext&);
+
// Update the GC state (on |paintInfo.context|) for painting |renderer|
// using |style|. |resourceMode| is used to decide between fill/stroke.
// Previous state will be saved (if needed) using |stateSaver|.

Powered by Google App Engine
This is Rietveld 408576698