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

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

Issue 927583002: Moving RenderSVG* files from rendering/ to layout/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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.h ('k') | Source/core/layout/svg/SVGTextQuery.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/SVGLayoutTreeAsText.cpp
diff --git a/Source/core/layout/svg/SVGLayoutTreeAsText.cpp b/Source/core/layout/svg/SVGLayoutTreeAsText.cpp
index 1ac8b88a5dd68444b2c4414787b7d3a176fa2690..a4fb9dae3e23d9092e235ef6b48e7cf8a8a5dc1d 100644
--- a/Source/core/layout/svg/SVGLayoutTreeAsText.cpp
+++ b/Source/core/layout/svg/SVGLayoutTreeAsText.cpp
@@ -32,6 +32,7 @@
#include "core/layout/LayoutTreeAsText.h"
#include "core/layout/line/InlineTextBox.h"
+#include "core/layout/svg/LayoutSVGImage.h"
#include "core/layout/svg/LayoutSVGInlineText.h"
#include "core/layout/svg/LayoutSVGResourceClipper.h"
#include "core/layout/svg/LayoutSVGResourceFilter.h"
@@ -40,13 +41,12 @@
#include "core/layout/svg/LayoutSVGResourceMasker.h"
#include "core/layout/svg/LayoutSVGResourcePattern.h"
#include "core/layout/svg/LayoutSVGResourceRadialGradient.h"
+#include "core/layout/svg/LayoutSVGShape.h"
#include "core/layout/svg/LayoutSVGText.h"
#include "core/layout/svg/line/SVGInlineTextBox.h"
#include "core/layout/svg/line/SVGRootInlineBox.h"
#include "core/rendering/svg/RenderSVGGradientStop.h"
-#include "core/rendering/svg/RenderSVGImage.h"
#include "core/rendering/svg/RenderSVGRoot.h"
-#include "core/rendering/svg/RenderSVGShape.h"
#include "core/svg/LinearGradientAttributes.h"
#include "core/svg/PatternAttributes.h"
#include "core/svg/RadialGradientAttributes.h"
@@ -278,7 +278,7 @@ static void writeStyle(TextStream& ts, const LayoutObject& object)
writeIfNotDefault(ts, "image rendering", style.imageRendering(), LayoutStyle::initialImageRendering());
writeIfNotDefault(ts, "opacity", style.opacity(), LayoutStyle::initialOpacity());
if (object.isSVGShape()) {
- const RenderSVGShape& shape = static_cast<const RenderSVGShape&>(object);
+ const LayoutSVGShape& shape = static_cast<const LayoutSVGShape&>(object);
ASSERT(shape.element());
SVGPaintDescription strokePaintDescription = LayoutSVGResourcePaintServer::requestPaintDescription(shape, shape.styleRef(), ApplyToStrokeMode);
@@ -335,7 +335,7 @@ static TextStream& writePositionAndStyle(TextStream& ts, const LayoutObject& obj
return ts;
}
-static TextStream& operator<<(TextStream& ts, const RenderSVGShape& shape)
+static TextStream& operator<<(TextStream& ts, const LayoutSVGShape& shape)
{
writePositionAndStyle(ts, shape);
@@ -615,7 +615,7 @@ void writeSVGInlineText(TextStream& ts, const LayoutSVGInlineText& text, int ind
writeSVGInlineTextBoxes(ts, text, indent);
}
-void writeSVGImage(TextStream& ts, const RenderSVGImage& image, int indent)
+void writeSVGImage(TextStream& ts, const LayoutSVGImage& image, int indent)
{
writeStandardPrefix(ts, image, indent);
writePositionAndStyle(ts, image);
@@ -623,7 +623,7 @@ void writeSVGImage(TextStream& ts, const RenderSVGImage& image, int indent)
writeResources(ts, image, indent);
}
-void write(TextStream& ts, const RenderSVGShape& shape, int indent)
+void write(TextStream& ts, const LayoutSVGShape& shape, int indent)
{
writeStandardPrefix(ts, shape, indent);
ts << shape << "\n";
« no previous file with comments | « Source/core/layout/svg/SVGLayoutTreeAsText.h ('k') | Source/core/layout/svg/SVGTextQuery.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698