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

Unified Diff: Source/core/rendering/svg/SVGTextMetricsBuilder.cpp

Issue 295513003: add 'slow' prefix to RenderObject's firstChild() / lastChild() methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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/rendering/svg/SVGTextLayoutAttributesBuilder.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/SVGTextMetricsBuilder.cpp
diff --git a/Source/core/rendering/svg/SVGTextMetricsBuilder.cpp b/Source/core/rendering/svg/SVGTextMetricsBuilder.cpp
index fa70571456701d52e89f2c895e47aba83c4597aa..51f71d049119cb7942893f005fbecd0fd03f7c01 100644
--- a/Source/core/rendering/svg/SVGTextMetricsBuilder.cpp
+++ b/Source/core/rendering/svg/SVGTextMetricsBuilder.cpp
@@ -21,6 +21,7 @@
#include "core/rendering/svg/SVGTextMetricsBuilder.h"
+#include "core/rendering/svg/RenderSVGInline.h"
#include "core/rendering/svg/RenderSVGInlineText.h"
#include "core/rendering/svg/RenderSVGText.h"
#include "core/rendering/svg/SVGTextMetrics.h"
@@ -234,7 +235,7 @@ static void measureTextRenderer(RenderSVGInlineText* text, MeasureTextData* data
data->valueListPosition += textPosition - skippedCharacters;
}
-static void walkTree(RenderObject* start, RenderSVGInlineText* stopAtLeaf, MeasureTextData* data)
+static void walkTree(RenderSVGText* start, RenderSVGInlineText* stopAtLeaf, MeasureTextData* data)
{
RenderObject* child = start->firstChild();
while (child) {
@@ -245,7 +246,7 @@ static void walkTree(RenderObject* start, RenderSVGInlineText* stopAtLeaf, Measu
return;
} else if (child->isSVGInline()) {
// Visit children of text content elements.
- if (RenderObject* inlineChild = child->firstChild()) {
+ if (RenderObject* inlineChild = toRenderSVGInline(child)->firstChild()) {
child = inlineChild;
continue;
}
« no previous file with comments | « Source/core/rendering/svg/SVGTextLayoutAttributesBuilder.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698