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

Unified Diff: Source/core/rendering/svg/SVGResourcesCycleSolver.cpp

Issue 899163003: Move rendering/RenderObject to layout/LayoutObject. (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/rendering/svg/SVGResourcesCycleSolver.cpp
diff --git a/Source/core/rendering/svg/SVGResourcesCycleSolver.cpp b/Source/core/rendering/svg/SVGResourcesCycleSolver.cpp
index 7bd68ad952f9a95e14147c853a825b3b8b774199..b35aafd158b35275840e92a98670f439eead23d4 100644
--- a/Source/core/rendering/svg/SVGResourcesCycleSolver.cpp
+++ b/Source/core/rendering/svg/SVGResourcesCycleSolver.cpp
@@ -33,7 +33,7 @@
namespace blink {
-SVGResourcesCycleSolver::SVGResourcesCycleSolver(RenderObject* renderer, SVGResources* resources)
+SVGResourcesCycleSolver::SVGResourcesCycleSolver(LayoutObject* renderer, SVGResources* resources)
: m_renderer(renderer)
, m_resources(resources)
{
@@ -72,7 +72,7 @@ bool SVGResourcesCycleSolver::resourceContainsCycles(RenderSVGResourceContainer*
ActiveFrame frame(m_activeResources, resource);
- RenderObject* node = resource;
+ LayoutObject* node = resource;
while (node) {
// Skip subtrees which are themselves resources. (They will be
// processed - if needed - when they are actually referenced.)
@@ -80,7 +80,7 @@ bool SVGResourcesCycleSolver::resourceContainsCycles(RenderSVGResourceContainer*
node = node->nextInPreOrderAfterChildren(resource);
continue;
}
- if (SVGResources* nodeResources = SVGResourcesCache::cachedResourcesForRenderObject(node)) {
+ if (SVGResources* nodeResources = SVGResourcesCache::cachedResourcesForLayoutObject(node)) {
// Fetch all the resources referenced by |node|.
ResourceSet nodeSet;
nodeResources->buildSetOfResources(nodeSet);
@@ -104,7 +104,7 @@ void SVGResourcesCycleSolver::resolveCycles()
{
ASSERT(m_activeResources.isEmpty());
- // If the starting RenderObject is a resource container itself, then add it
+ // If the starting LayoutObject is a resource container itself, then add it
// to the active set (to break direct self-references.)
if (m_renderer->isSVGResourceContainer())
m_activeResources.add(toRenderSVGResourceContainer(m_renderer));
« no previous file with comments | « Source/core/rendering/svg/SVGResourcesCycleSolver.h ('k') | Source/core/rendering/svg/SVGTextLayoutAttributesBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698