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

Unified Diff: Source/core/layout/svg/SVGPathData.cpp

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 9 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
« no previous file with comments | « Source/core/layout/svg/SVGLayoutTreeAsText.cpp ('k') | Source/core/layout/svg/SVGResources.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/SVGPathData.cpp
diff --git a/Source/core/layout/svg/SVGPathData.cpp b/Source/core/layout/svg/SVGPathData.cpp
index 53dd57b9655dfd7d1167c8610e2de0a15c7a98ac..d5d3d9b5eda6dfcde97a71fe3c5e0a56792c6f45 100644
--- a/Source/core/layout/svg/SVGPathData.cpp
+++ b/Source/core/layout/svg/SVGPathData.cpp
@@ -22,7 +22,7 @@
#include "core/SVGNames.h"
#include "core/layout/LayoutObject.h"
-#include "core/layout/style/SVGLayoutStyle.h"
+#include "core/layout/style/SVGComputedStyle.h"
#include "core/svg/SVGCircleElement.h"
#include "core/svg/SVGEllipseElement.h"
#include "core/svg/SVGLineElement.h"
@@ -43,7 +43,7 @@ static void updatePathFromCircleElement(SVGElement* element, Path& path)
ASSERT(element->layoutObject());
SVGLengthContext lengthContext(element);
- const LayoutStyle& style = element->layoutObject()->styleRef();
+ const ComputedStyle& style = element->layoutObject()->styleRef();
float r = lengthContext.valueForLength(style.svgStyle().r(), style, SVGLengthMode::Other);
if (r > 0) {
path.addEllipse(FloatRect(
@@ -58,7 +58,7 @@ static void updatePathFromEllipseElement(SVGElement* element, Path& path)
ASSERT(element->layoutObject());
SVGLengthContext lengthContext(element);
- const LayoutStyle& style = element->layoutObject()->styleRef();
+ const ComputedStyle& style = element->layoutObject()->styleRef();
float rx = lengthContext.valueForLength(style.svgStyle().rx(), style, SVGLengthMode::Width);
if (rx < 0)
return;
@@ -116,7 +116,7 @@ static void updatePathFromRectElement(SVGElement* element, Path& path)
ASSERT(rect->layoutObject());
SVGLengthContext lengthContext(element);
- const LayoutStyle& style = rect->layoutObject()->styleRef();
+ const ComputedStyle& style = rect->layoutObject()->styleRef();
float width = lengthContext.valueForLength(style.width(), style, SVGLengthMode::Width);
if (width < 0)
return;
« no previous file with comments | « Source/core/layout/svg/SVGLayoutTreeAsText.cpp ('k') | Source/core/layout/svg/SVGResources.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698