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

Unified Diff: Source/core/svg/SVGElement.cpp

Issue 908243002: Move rendering/svg/RenderSVGResource* 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/svg/SVGDocumentExtensions.cpp ('k') | Source/core/svg/SVGFilterElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGElement.cpp
diff --git a/Source/core/svg/SVGElement.cpp b/Source/core/svg/SVGElement.cpp
index 2a831f05a709f94ed976b9a69fcf2121047f27b5..d31048322bb175638c25857f7d9986a3c78131ac 100644
--- a/Source/core/svg/SVGElement.cpp
+++ b/Source/core/svg/SVGElement.cpp
@@ -40,7 +40,7 @@
#include "core/frame/Settings.h"
#include "core/html/HTMLElement.h"
#include "core/layout/LayoutObject.h"
-#include "core/rendering/svg/RenderSVGResourceContainer.h"
+#include "core/layout/svg/LayoutSVGResourceContainer.h"
#include "core/svg/SVGCursorElement.h"
#include "core/svg/SVGDocumentExtensions.h"
#include "core/svg/SVGElementRareData.h"
@@ -421,7 +421,7 @@ void SVGElement::invalidateRelativeLengthClients(SubtreeLayoutScope* layoutScope
LayoutObject* renderer = this->renderer();
if (renderer && selfHasRelativeLengths()) {
if (renderer->isSVGResourceContainer())
- toRenderSVGResourceContainer(renderer)->invalidateCacheAndMarkForLayout(layoutScope);
+ toLayoutSVGResourceContainer(renderer)->invalidateCacheAndMarkForLayout(layoutScope);
else
renderer->setNeedsLayoutAndFullPaintInvalidation(MarkContainingBlockChain, layoutScope);
}
@@ -875,7 +875,7 @@ void SVGElement::svgAttributeChanged(const QualifiedName& attrName)
LayoutObject* object = renderer();
// Notify resources about id changes, this is important as we cache resources by id in SVGDocumentExtensions
if (object && object->isSVGResourceContainer())
- toRenderSVGResourceContainer(object)->idChanged();
+ toLayoutSVGResourceContainer(object)->idChanged();
if (inDocument())
buildPendingResourcesIfNeeded();
invalidateInstances();
@@ -959,7 +959,7 @@ bool SVGElement::hasFocusEventListeners() const
void SVGElement::markForLayoutAndParentResourceInvalidation(LayoutObject* renderer)
{
ASSERT(renderer);
- RenderSVGResourceContainer::markForLayoutAndParentResourceInvalidation(renderer, true);
+ LayoutSVGResourceContainer::markForLayoutAndParentResourceInvalidation(renderer, true);
}
void SVGElement::invalidateInstances()
« no previous file with comments | « Source/core/svg/SVGDocumentExtensions.cpp ('k') | Source/core/svg/SVGFilterElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698