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

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

Issue 729523006: Make ensureCompositedMappingLayer() to be a void function. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderLayer.cpp
diff --git a/Source/core/rendering/RenderLayer.cpp b/Source/core/rendering/RenderLayer.cpp
index 0f135d3588e9d45dae43856a9782ce5ec12f7086..0625d9e9bdfa974026c87d275286df752e8d826b 100644
--- a/Source/core/rendering/RenderLayer.cpp
+++ b/Source/core/rendering/RenderLayer.cpp
@@ -2423,15 +2423,15 @@ GraphicsLayer* RenderLayer::graphicsLayerBackingForScrolling() const
}
}
-CompositedLayerMapping* RenderLayer::ensureCompositedLayerMapping()
+void RenderLayer::ensureCompositedLayerMapping()
{
- if (!m_compositedLayerMapping) {
- m_compositedLayerMapping = adoptPtr(new CompositedLayerMapping(*this));
- m_compositedLayerMapping->setNeedsGraphicsLayerUpdate(GraphicsLayerUpdateSubtree);
+ if (m_compositedLayerMapping)
+ return;
- updateOrRemoveFilterEffectRenderer();
- }
- return m_compositedLayerMapping.get();
+ m_compositedLayerMapping = adoptPtr(new CompositedLayerMapping(*this));
+ m_compositedLayerMapping->setNeedsGraphicsLayerUpdate(GraphicsLayerUpdateSubtree);
+
+ updateOrRemoveFilterEffectRenderer();
}
void RenderLayer::clearCompositedLayerMapping(bool layerBeingDestroyed)
« no previous file with comments | « Source/core/rendering/RenderLayer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698