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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutView.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/LayoutView.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutView.cpp b/third_party/WebKit/Source/core/layout/LayoutView.cpp
index 4b3890451c3955028d38f7151ad5f03ea2d9cfde..edffcbc88e4da8d531a89317fb15519b58254808 100644
--- a/third_party/WebKit/Source/core/layout/LayoutView.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp
@@ -500,7 +500,7 @@ bool LayoutView::mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* ance
if (ancestor == this)
return true;
- Element* owner = document().ownerElement();
+ Element* owner = document().localOwner();
if (!owner)
return true;
@@ -1018,7 +1018,7 @@ void LayoutView::updateFromStyle()
LayoutBlockFlow::updateFromStyle();
// LayoutView of the main frame is responsible for painting base background.
- if (!document().ownerElement())
+ if (document().isInMainFrame())
setHasBoxDecorationBackground(true);
}

Powered by Google App Engine
This is Rietveld 408576698