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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp

Issue 2524803002: Output LayoutSVGInline in layout tree in SVG way (Closed)
Patch Set: Rebaseline-cl Created 4 years, 1 month 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: third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp b/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp
index c5abafeced962ebdf8f4da75784b1ecd0c03ce32..e022e8a84501f01afb4ba306a574abc37eb805cd 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp
@@ -48,6 +48,7 @@
#include "core/layout/line/InlineTextBox.h"
#include "core/layout/svg/LayoutSVGGradientStop.h"
#include "core/layout/svg/LayoutSVGImage.h"
+#include "core/layout/svg/LayoutSVGInline.h"
#include "core/layout/svg/LayoutSVGInlineText.h"
#include "core/layout/svg/LayoutSVGRoot.h"
#include "core/layout/svg/LayoutSVGShape.h"
@@ -486,6 +487,10 @@ void write(TextStream& ts,
writeSVGText(ts, toLayoutSVGText(o), indent);
return;
}
+ if (o.isSVGInline()) {
+ writeSVGInline(ts, toLayoutSVGInline(o), indent);
+ return;
+ }
if (o.isSVGInlineText()) {
writeSVGInlineText(ts, toLayoutSVGInlineText(o), indent);
return;

Powered by Google App Engine
This is Rietveld 408576698