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

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

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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 205105adc7851708c3087d5aa4362c752a3c1f22..8f20ef0f3e7306381bebc04d59811032ca583bc8 100644
--- a/Source/core/layout/svg/LayoutSVGResourceContainer.cpp
+++ b/Source/core/layout/svg/LayoutSVGResourceContainer.cpp
@@ -171,9 +171,9 @@ void LayoutSVGResourceContainer::removeClient(LayoutObject* client)
void LayoutSVGResourceContainer::addClientLayer(Node* node)
{
ASSERT(node);
- if (!node->renderer() || !node->renderer()->hasLayer())
+ if (!node->layoutObject() || !node->layoutObject()->hasLayer())
return;
- m_clientLayers.add(toLayoutBoxModelObject(node->renderer())->layer());
+ m_clientLayers.add(toLayoutBoxModelObject(node->layoutObject())->layer());
clearInvalidationMask();
}
@@ -219,7 +219,7 @@ void LayoutSVGResourceContainer::registerResource()
for (SVGDocumentExtensions::SVGPendingElements::const_iterator it = clients->begin(); it != end; ++it) {
ASSERT((*it)->hasPendingResources());
extensions.clearHasPendingResourcesIfPossible(*it);
- LayoutObject* renderer = (*it)->renderer();
+ LayoutObject* renderer = (*it)->layoutObject();
if (!renderer)
continue;
@@ -259,7 +259,7 @@ static inline void removeFromCacheAndInvalidateDependencies(LayoutObject* object
SVGElementSet::iterator end = dependencies->end();
for (SVGElementSet::iterator it = dependencies->begin(); it != end; ++it) {
- if (LayoutObject* renderer = (*it)->renderer()) {
+ if (LayoutObject* renderer = (*it)->layoutObject()) {
if (UNLIKELY(!invalidatingDependencies->add(*it).isNewEntry)) {
// Reference cycle: we are in process of invalidating this dependant.
continue;
« no previous file with comments | « Source/core/layout/svg/LayoutSVGResourceClipper.cpp ('k') | Source/core/layout/svg/LayoutSVGResourceFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698