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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp

Issue 1942623002: Rename Document::ownerElement to localOwner and fix main frame checks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed const changes and some gratuitous checks Created 4 years, 7 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: third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
index fd0887dabae0fa636e08dacc1b7e654cbd00ba46..8a5e5b8a42de264d2a1ea828b8ffe88c97fd6920 100644
--- a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
@@ -115,7 +115,7 @@ void PaintLayerCompositor::setCompositingModeEnabled(bool enable)
// Schedule an update in the parent frame so the <iframe>'s layer in the owner
// document matches the compositing state here.
- if (HTMLFrameOwnerElement* ownerElement = m_layoutView.document().ownerElement())
+ if (HTMLFrameOwnerElement* ownerElement = m_layoutView.document().localOwner())
ownerElement->setNeedsCompositingUpdate();
}
@@ -1119,7 +1119,7 @@ void PaintLayerCompositor::attachRootLayer(RootLayerAttachment attachment)
break;
}
case RootLayerAttachedViaEnclosingFrame: {
- HTMLFrameOwnerElement* ownerElement = m_layoutView.document().ownerElement();
+ HTMLFrameOwnerElement* ownerElement = m_layoutView.document().localOwner();
ASSERT(ownerElement);
// The layer will get hooked up via CompositedLayerMapping::updateGraphicsLayerConfiguration()
// for the frame's layoutObject in the parent document.
@@ -1145,7 +1145,7 @@ void PaintLayerCompositor::detachRootLayer()
else
m_rootContentLayer->removeFromParent();
- if (HTMLFrameOwnerElement* ownerElement = m_layoutView.document().ownerElement())
+ if (HTMLFrameOwnerElement* ownerElement = m_layoutView.document().localOwner())
ownerElement->setNeedsCompositingUpdate();
break;
}

Powered by Google App Engine
This is Rietveld 408576698