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

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

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/SVGTextChunkBuilder.cpp » ('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 2737d6d099c71254e44368a8e75387ba267e4186..3e2e85b1ae1198fa887198508377a31fa91c454a 100644
--- a/Source/core/layout/svg/SVGPathData.cpp
+++ b/Source/core/layout/svg/SVGPathData.cpp
@@ -51,10 +51,10 @@ static void updatePathFromCircleElement(SVGElement* element, Path& path)
static void updatePathFromEllipseElement(SVGElement* element, Path& path)
{
SVGEllipseElement* ellipse = toSVGEllipseElement(element);
- ASSERT(ellipse->renderer());
+ ASSERT(ellipse->layoutObject());
SVGLengthContext lengthContext(element);
- const LayoutStyle& style = ellipse->renderer()->styleRef();
+ const LayoutStyle& style = ellipse->layoutObject()->styleRef();
float rx = lengthContext.valueForLength(style.svgStyle().rx(), style, SVGLengthMode::Width);
if (rx < 0)
return;
@@ -106,7 +106,7 @@ static void updatePathFromPolygonElement(SVGElement* element, Path& path)
static void updatePathFromRectElement(SVGElement* element, Path& path)
{
SVGRectElement* rect = toSVGRectElement(element);
- ASSERT(rect->renderer());
+ ASSERT(rect->layoutObject());
SVGLengthContext lengthContext(element);
float width = rect->width()->currentValue()->value(lengthContext);
@@ -118,7 +118,7 @@ static void updatePathFromRectElement(SVGElement* element, Path& path)
if (!width && !height)
return;
- const LayoutStyle& style = rect->renderer()->styleRef();
+ const LayoutStyle& style = rect->layoutObject()->styleRef();
float x = lengthContext.valueForLength(style.svgStyle().x(), style, SVGLengthMode::Width);
float y = lengthContext.valueForLength(style.svgStyle().y(), style, SVGLengthMode::Height);
float rx = lengthContext.valueForLength(style.svgStyle().rx(), style, SVGLengthMode::Width);
« no previous file with comments | « Source/core/layout/svg/SVGLayoutTreeAsText.cpp ('k') | Source/core/layout/svg/SVGTextChunkBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698