diff options
Diffstat (limited to 'WebCore/rendering/RenderTreeAsText.cpp')
-rw-r--r-- | WebCore/rendering/RenderTreeAsText.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/WebCore/rendering/RenderTreeAsText.cpp b/WebCore/rendering/RenderTreeAsText.cpp index ab6247b..ec36b7e 100644 --- a/WebCore/rendering/RenderTreeAsText.cpp +++ b/WebCore/rendering/RenderTreeAsText.cpp @@ -50,11 +50,11 @@ #include <wtf/Vector.h> #if ENABLE(SVG) -#include "RenderPath.h" #include "RenderSVGContainer.h" #include "RenderSVGGradientStop.h" #include "RenderSVGImage.h" #include "RenderSVGInlineText.h" +#include "RenderSVGPath.h" #include "RenderSVGRoot.h" #include "RenderSVGText.h" #include "SVGRenderTreeAsText.h" @@ -440,8 +440,8 @@ static void writeTextRun(TextStream& ts, const RenderText& o, const InlineTextBo if (o.containingBlock()->isTableCell()) y -= toRenderTableCell(o.containingBlock())->intrinsicPaddingBefore(); ts << "text run at (" << run.m_x << "," << y << ") width " << run.m_logicalWidth; - if (run.direction() == RTL || run.m_dirOverride) { - ts << (run.direction() == RTL ? " RTL" : " LTR"); + if (!run.isLeftToRightDirection() || run.m_dirOverride) { + ts << (!run.isLeftToRightDirection() ? " RTL" : " LTR"); if (run.m_dirOverride) ts << " override"; } @@ -453,8 +453,8 @@ static void writeTextRun(TextStream& ts, const RenderText& o, const InlineTextBo void write(TextStream& ts, const RenderObject& o, int indent, RenderAsTextBehavior behavior) { #if ENABLE(SVG) - if (o.isRenderPath()) { - write(ts, *toRenderPath(&o), indent); + if (o.isSVGPath()) { + write(ts, *toRenderSVGPath(&o), indent); return; } if (o.isSVGGradientStop()) { |