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

Unified Diff: Source/core/layout/svg/SVGLayoutSupport.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/LayoutSVGTSpan.cpp ('k') | Source/core/layout/svg/SVGLayoutTreeAsText.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/SVGLayoutSupport.cpp
diff --git a/Source/core/layout/svg/SVGLayoutSupport.cpp b/Source/core/layout/svg/SVGLayoutSupport.cpp
index ffdb3cbf3043fafae4c5337d3f1325f96065de74..de600480826defa7cfa0641d42aafad47b09baac 100644
--- a/Source/core/layout/svg/SVGLayoutSupport.cpp
+++ b/Source/core/layout/svg/SVGLayoutSupport.cpp
@@ -34,11 +34,11 @@
#include "core/layout/svg/LayoutSVGResourceClipper.h"
#include "core/layout/svg/LayoutSVGResourceFilter.h"
#include "core/layout/svg/LayoutSVGResourceMasker.h"
+#include "core/layout/svg/LayoutSVGShape.h"
#include "core/layout/svg/LayoutSVGText.h"
#include "core/layout/svg/SVGResources.h"
#include "core/layout/svg/SVGResourcesCache.h"
#include "core/rendering/svg/RenderSVGRoot.h"
-#include "core/rendering/svg/RenderSVGShape.h"
#include "core/rendering/svg/RenderSVGViewportContainer.h"
#include "core/svg/SVGElement.h"
#include "platform/geometry/TransformState.h"
@@ -177,7 +177,7 @@ void SVGLayoutSupport::computeContainerBoundingBoxes(const LayoutObject* contain
continue;
// Don't include elements in the union that do not render.
- if (current->isSVGShape() && toRenderSVGShape(current)->isShapeEmpty())
+ if (current->isSVGShape() && toLayoutSVGShape(current)->isShapeEmpty())
continue;
const AffineTransform& transform = current->localToParentTransform();
@@ -248,9 +248,9 @@ void SVGLayoutSupport::layoutChildren(LayoutObject* start, bool selfNeedsLayout)
if (SVGElement* element = child->node()->isSVGElement() ? toSVGElement(child->node()) : 0) {
if (element->hasRelativeLengths()) {
// FIXME: this should be done on invalidation, not during layout.
- // When the layout size changed and when using relative values tell the RenderSVGShape to update its shape object
+ // When the layout size changed and when using relative values tell the LayoutSVGShape to update its shape object
if (child->isSVGShape()) {
- toRenderSVGShape(child)->setNeedsShapeUpdate();
+ toLayoutSVGShape(child)->setNeedsShapeUpdate();
} else if (child->isSVGText()) {
toLayoutSVGText(child)->setNeedsTextMetricsUpdate();
toLayoutSVGText(child)->setNeedsPositioningValuesUpdate();
« no previous file with comments | « Source/core/layout/svg/LayoutSVGTSpan.cpp ('k') | Source/core/layout/svg/SVGLayoutTreeAsText.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698