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

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

Issue 921633007: Move the SVG container code from rendering/svg to layout/svg. (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/LayoutSVGViewportContainer.h ('k') | Source/core/layout/svg/SVGLayoutSupport.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/LayoutSVGViewportContainer.cpp
diff --git a/Source/core/rendering/svg/RenderSVGViewportContainer.cpp b/Source/core/layout/svg/LayoutSVGViewportContainer.cpp
similarity index 86%
rename from Source/core/rendering/svg/RenderSVGViewportContainer.cpp
rename to Source/core/layout/svg/LayoutSVGViewportContainer.cpp
index 021fda83742b4f2a85a10f186e8ab860f0f213fa..541d745d5faac2124d649c81c6e4fc545db65afc 100644
--- a/Source/core/rendering/svg/RenderSVGViewportContainer.cpp
+++ b/Source/core/layout/svg/LayoutSVGViewportContainer.cpp
@@ -21,7 +21,7 @@
*/
#include "config.h"
-#include "core/rendering/svg/RenderSVGViewportContainer.h"
+#include "core/layout/svg/LayoutSVGViewportContainer.h"
#include "core/layout/PaintInfo.h"
#include "core/layout/svg/SVGLayoutSupport.h"
@@ -32,7 +32,7 @@
namespace blink {
-RenderSVGViewportContainer::RenderSVGViewportContainer(SVGElement* node)
+LayoutSVGViewportContainer::LayoutSVGViewportContainer(SVGElement* node)
: LayoutSVGContainer(node)
, m_didTransformToRootUpdate(false)
, m_isLayoutSizeChanged(false)
@@ -40,7 +40,7 @@ RenderSVGViewportContainer::RenderSVGViewportContainer(SVGElement* node)
{
}
-void RenderSVGViewportContainer::determineIfLayoutSizeChanged()
+void LayoutSVGViewportContainer::determineIfLayoutSizeChanged()
{
ASSERT(element());
if (!isSVGSVGElement(*element()))
@@ -49,7 +49,7 @@ void RenderSVGViewportContainer::determineIfLayoutSizeChanged()
m_isLayoutSizeChanged = toSVGSVGElement(element())->hasRelativeLengths() && selfNeedsLayout();
}
-void RenderSVGViewportContainer::calcViewport()
+void LayoutSVGViewportContainer::calcViewport()
{
SVGElement* element = this->element();
ASSERT(element);
@@ -67,7 +67,7 @@ void RenderSVGViewportContainer::calcViewport()
}
}
-bool RenderSVGViewportContainer::calculateLocalTransform()
+bool LayoutSVGViewportContainer::calculateLocalTransform()
{
m_didTransformToRootUpdate = m_needsTransformUpdate || SVGLayoutSupport::transformToRootChanged(parent());
if (!m_needsTransformUpdate)
@@ -78,7 +78,7 @@ bool RenderSVGViewportContainer::calculateLocalTransform()
return true;
}
-AffineTransform RenderSVGViewportContainer::viewportTransform() const
+AffineTransform LayoutSVGViewportContainer::viewportTransform() const
{
ASSERT(element());
if (isSVGSVGElement(*element())) {
@@ -89,7 +89,7 @@ AffineTransform RenderSVGViewportContainer::viewportTransform() const
return AffineTransform();
}
-bool RenderSVGViewportContainer::pointIsInsideViewportClip(const FloatPoint& pointInParent)
+bool LayoutSVGViewportContainer::pointIsInsideViewportClip(const FloatPoint& pointInParent)
{
// Respect the viewport clip (which is in parent coords)
if (!SVGLayoutSupport::isOverflowHidden(this))
@@ -98,7 +98,7 @@ bool RenderSVGViewportContainer::pointIsInsideViewportClip(const FloatPoint& poi
return m_viewport.contains(pointInParent);
}
-void RenderSVGViewportContainer::paint(const PaintInfo& paintInfo, const LayoutPoint& paintOffset)
+void LayoutSVGViewportContainer::paint(const PaintInfo& paintInfo, const LayoutPoint& paintOffset)
{
SVGContainerPainter(*this).paint(paintInfo);
}
« no previous file with comments | « Source/core/layout/svg/LayoutSVGViewportContainer.h ('k') | Source/core/layout/svg/SVGLayoutSupport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698