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

Unified Diff: Source/core/layout/svg/LayoutSVGResourceContainer.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
Index: Source/core/layout/svg/LayoutSVGResourceContainer.cpp
diff --git a/Source/core/layout/svg/LayoutSVGResourceContainer.cpp b/Source/core/layout/svg/LayoutSVGResourceContainer.cpp
index 294379fd1ae805442e610d926b64b7e7a8cc5928..efbd78bed097400e891ec3028494dbf268d1c5dc 100644
--- a/Source/core/layout/svg/LayoutSVGResourceContainer.cpp
+++ b/Source/core/layout/svg/LayoutSVGResourceContainer.cpp
@@ -38,7 +38,7 @@ static inline SVGDocumentExtensions& svgExtensionsFromElement(SVGElement* elemen
}
LayoutSVGResourceContainer::LayoutSVGResourceContainer(SVGElement* node)
- : RenderSVGHiddenContainer(node)
+ : LayoutSVGHiddenContainer(node)
, m_isInLayout(false)
, m_id(node->getIdAttribute())
, m_invalidationMask(0)
@@ -54,14 +54,14 @@ LayoutSVGResourceContainer::~LayoutSVGResourceContainer()
void LayoutSVGResourceContainer::layout()
{
// FIXME: Investigate a way to detect and break resource layout dependency cycles early.
- // Then we can remove this method altogether, and fall back onto RenderSVGHiddenContainer::layout().
+ // Then we can remove this method altogether, and fall back onto LayoutSVGHiddenContainer::layout().
ASSERT(needsLayout());
if (m_isInLayout)
return;
TemporaryChange<bool> inLayoutChange(m_isInLayout, true);
- RenderSVGHiddenContainer::layout();
+ LayoutSVGHiddenContainer::layout();
clearInvalidationMask();
}
@@ -69,14 +69,14 @@ void LayoutSVGResourceContainer::layout()
void LayoutSVGResourceContainer::willBeDestroyed()
{
SVGResourcesCache::resourceDestroyed(this);
- RenderSVGHiddenContainer::willBeDestroyed();
+ LayoutSVGHiddenContainer::willBeDestroyed();
if (m_registered)
svgExtensionsFromElement(element()).removeResource(m_id);
}
void LayoutSVGResourceContainer::styleDidChange(StyleDifference diff, const LayoutStyle* oldStyle)
{
- RenderSVGHiddenContainer::styleDidChange(diff, oldStyle);
+ LayoutSVGHiddenContainer::styleDidChange(diff, oldStyle);
if (!m_registered) {
m_registered = true;
« no previous file with comments | « Source/core/layout/svg/LayoutSVGResourceContainer.h ('k') | Source/core/layout/svg/LayoutSVGResourceFilterPrimitive.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698