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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2883033003: Propagate inert state to OOPIFs when a modal dialog is active (Closed)
Patch Set: Set Frame's inert bit on style calculation Created 3 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
Index: third_party/WebKit/Source/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index fd004e14e8006d5d63120891b1b50603ab0f0694..fb2a20713bb8e7531b83dcbe851a49dd92462f55 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -2184,6 +2184,7 @@ void Document::UpdateStyle() {
DCHECK(InStyleRecalc());
DCHECK_EQ(GetStyleResolver(), &resolver);
lifecycle_.AdvanceTo(DocumentLifecycle::kStyleClean);
+
if (should_record_stats) {
TRACE_EVENT_END2(
"blink,blink_style", "Document::updateStyle", "resolverAccessCount",
@@ -2260,11 +2261,15 @@ void Document::UpdateStyleAndLayout() {
return;
}
- if (HTMLFrameOwnerElement* owner = LocalOwner())
+ HTMLFrameOwnerElement* owner = LocalOwner();
+ if (owner)
owner->GetDocument().UpdateStyleAndLayout();
UpdateStyleAndLayoutTree();
+ if (owner)
+ GetFrame()->SetIsInert(owner->IsInert());
tkent 2017/06/08 23:53:48 This was added to fix "!node.NeedsDistributionReca
kenrb 2017/06/09 15:15:48 Correct, and I'm not sure it is the right fix eith
hayato 2017/06/13 09:48:00 Using UpdateStyleAndLayout() as a hook for SetIsIn
+
if (!IsActive())
return;

Powered by Google App Engine
This is Rietveld 408576698