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

Unified Diff: Source/core/rendering/compositing/RenderLayerCompositor.cpp

Issue 342203004: Get rid of compositing and squashing helper methods on RenderLayerModelObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed compile. Created 6 years, 6 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/RenderSelectionInfo.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/compositing/RenderLayerCompositor.cpp
diff --git a/Source/core/rendering/compositing/RenderLayerCompositor.cpp b/Source/core/rendering/compositing/RenderLayerCompositor.cpp
index 959c751a8cb76ee115d43d5e6953058d4d0f02a2..3ae9131dac37db302cf272877c5de14b146290bc 100644
--- a/Source/core/rendering/compositing/RenderLayerCompositor.cpp
+++ b/Source/core/rendering/compositing/RenderLayerCompositor.cpp
@@ -252,7 +252,7 @@ void RenderLayerCompositor::applyOverlayFullscreenVideoAdjustment()
bool isMainFrame = m_renderView.frame()->isMainFrame();
RenderVideo* video = findFullscreenVideoRenderer(m_renderView.document());
- if (!video || !video->hasCompositedLayerMapping()) {
+ if (!video || !video->layer()->hasCompositedLayerMapping()) {
if (isMainFrame) {
GraphicsLayer* backgroundLayer = fixedRootBackgroundLayer();
if (backgroundLayer && !backgroundLayer->parent())
@@ -261,7 +261,7 @@ void RenderLayerCompositor::applyOverlayFullscreenVideoAdjustment()
return;
}
- GraphicsLayer* videoLayer = video->compositedLayerMapping()->mainGraphicsLayer();
+ GraphicsLayer* videoLayer = video->layer()->compositedLayerMapping()->mainGraphicsLayer();
// The fullscreen video has layer position equal to its enclosing frame's scroll position because fullscreen container is fixed-positioned.
// We should reset layer position here since we are going to reattach the layer at the very top level.
« no previous file with comments | « Source/core/rendering/RenderSelectionInfo.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698