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

Unified Diff: Source/core/layout/LayerFilterInfo.cpp

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase to master 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/LayerFilterInfo.cpp
diff --git a/Source/core/layout/LayerFilterInfo.cpp b/Source/core/layout/LayerFilterInfo.cpp
index b9d9fdf6da0c592b39ff53bc921e1da4099b7d24..fea8802475101f6f5417a5eb42751f476a0c67a2 100644
--- a/Source/core/layout/LayerFilterInfo.cpp
+++ b/Source/core/layout/LayerFilterInfo.cpp
@@ -103,7 +103,7 @@ void LayerFilterInfo::setRenderer(PassRefPtrWillBeRawPtr<FilterEffectRenderer> r
void LayerFilterInfo::notifyFinished(Resource*)
{
- LayoutObject* renderer = m_layer->renderer();
+ LayoutObject* renderer = m_layer->layoutObject();
// FIXME: This caller of scheduleSVGFilterLayerUpdateHack() is not correct. It's using the layer update
// system to trigger a Layer to go through the filter updating logic, but that might not
// even happen if this element is style sharing and LayoutObject::setStyle() returns early.
@@ -130,13 +130,13 @@ void LayerFilterInfo::updateReferenceFilterClients(const FilterOperations& opera
} else {
// Reference is internal; add layer as a client so we can trigger
// filter paint invalidation on SVG attribute change.
- Element* filter = m_layer->renderer()->node()->document().getElementById(referenceFilterOperation->fragment());
+ Element* filter = m_layer->layoutObject()->node()->document().getElementById(referenceFilterOperation->fragment());
if (!isSVGFilterElement(filter))
continue;
- if (filter->renderer())
- toLayoutSVGResourceContainer(filter->renderer())->addClientLayer(m_layer);
+ if (filter->layoutObject())
+ toLayoutSVGResourceContainer(filter->layoutObject())->addClientLayer(m_layer);
else
- toSVGFilterElement(filter)->addClient(m_layer->renderer()->node());
+ toSVGFilterElement(filter)->addClient(m_layer->layoutObject()->node());
m_internalSVGReferences.append(filter);
}
}
@@ -149,10 +149,10 @@ void LayerFilterInfo::removeReferenceFilterClients()
m_externalSVGReferences.clear();
for (size_t i = 0; i < m_internalSVGReferences.size(); ++i) {
Element* filter = m_internalSVGReferences.at(i).get();
- if (filter->renderer())
- toLayoutSVGResourceContainer(filter->renderer())->removeClientLayer(m_layer);
+ if (filter->layoutObject())
+ toLayoutSVGResourceContainer(filter->layoutObject())->removeClientLayer(m_layer);
else
- toSVGFilterElement(filter)->removeClient(m_layer->renderer()->node());
+ toSVGFilterElement(filter)->removeClient(m_layer->layoutObject()->node());
}
m_internalSVGReferences.clear();
}

Powered by Google App Engine
This is Rietveld 408576698