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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.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/CompositingReasonFinder.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.cpp
index 742fb6eff1f68a9e3ac0857c11d19fc081c3d53d..c80ebb50e96175554e992c8e436efaae6a6c1258 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.cpp
@@ -40,8 +40,7 @@ bool CompositingReasonFinder::hasOverflowScrollTrigger() const
bool CompositingReasonFinder::isMainFrame() const
{
- // FIXME: LocalFrame::isMainFrame() is probably better.
- return !m_layoutView.document().ownerElement();
+ return m_layoutView.document().isInMainFrame();
}
CompositingReasons CompositingReasonFinder::directReasons(const PaintLayer* layer) const

Powered by Google App Engine
This is Rietveld 408576698