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

Unified Diff: Source/core/rendering/RenderLayerFilterInfo.cpp

Issue 27648002: Refine toRenderSVGResourceContainer() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years, 2 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/rendering/RenderLayer.cpp ('k') | Source/core/rendering/RenderObject.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderLayerFilterInfo.cpp
diff --git a/Source/core/rendering/RenderLayerFilterInfo.cpp b/Source/core/rendering/RenderLayerFilterInfo.cpp
index effb5854cee07922485cd5218b77414527a0486e..2d4f8b60e837eed5cc1005386ec470bcf3db9a30 100644
--- a/Source/core/rendering/RenderLayerFilterInfo.cpp
+++ b/Source/core/rendering/RenderLayerFilterInfo.cpp
@@ -133,7 +133,7 @@ void RenderLayerFilterInfo::updateReferenceFilterClients(const FilterOperations&
if (!filter || !filter->hasTagName(SVGNames::filterTag))
continue;
if (filter->renderer())
- filter->renderer()->toRenderSVGResourceContainer()->addClientRenderLayer(m_layer);
+ toRenderSVGResourceContainer(filter->renderer())->addClientRenderLayer(m_layer);
else
toSVGFilterElement(filter)->addClient(m_layer->renderer()->node());
m_internalSVGReferences.append(filter);
@@ -149,7 +149,7 @@ void RenderLayerFilterInfo::removeReferenceFilterClients()
for (size_t i = 0; i < m_internalSVGReferences.size(); ++i) {
Element* filter = m_internalSVGReferences.at(i).get();
if (filter->renderer())
- filter->renderer()->toRenderSVGResourceContainer()->removeClientRenderLayer(m_layer);
+ toRenderSVGResourceContainer(filter->renderer())->removeClientRenderLayer(m_layer);
else
toSVGFilterElement(filter)->removeClient(m_layer->renderer()->node());
}
« no previous file with comments | « Source/core/rendering/RenderLayer.cpp ('k') | Source/core/rendering/RenderObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698