Index: Source/core/frame/FrameView.cpp |
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp |
index ff0d58a858938cbb85480964af0cf0e5fca135c7..f5b63c7b0eff448a5bf960c13df25ed4b4520983 100644 |
--- a/Source/core/frame/FrameView.cpp |
+++ b/Source/core/frame/FrameView.cpp |
@@ -680,8 +680,11 @@ bool FrameView::hasCompositedContent() const |
bool FrameView::isEnclosedInCompositingLayer() const |
{ |
+ // FIXME: It's a bug that compositing state isn't always up to date when this is called. crbug.com/366314 |
+ DisableCompositingQueryAsserts disabler; |
+ |
RenderObject* frameOwnerRenderer = m_frame->ownerRenderer(); |
- if (frameOwnerRenderer && frameOwnerRenderer->containerForRepaint()) |
+ if (frameOwnerRenderer && frameOwnerRenderer->enclosingLayer()->enclosingCompositingLayerForRepaint()) |
return true; |
if (FrameView* parentView = parentFrameView()) |