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

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

Issue 2883033003: Propagate inert state to OOPIFs when a modal dialog is active (Closed)
Patch Set: Trying to fix patch application problem Created 3 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/dom/Node.cpp
diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
index 75a14c126049e00ced0923749a439772f8c35f52..d9b54cfe6f112f756290c65f58b703fc84e95aa9 100644
--- a/third_party/WebKit/Source/core/dom/Node.cpp
+++ b/third_party/WebKit/Source/core/dom/Node.cpp
@@ -851,7 +851,7 @@ bool Node::IsInert() const {
(!CanParticipateInFlatTree() ||
!FlatTreeTraversal::ContainsIncludingPseudoElement(*dialog, *this)))
return true;
- return GetDocument().LocalOwner() && GetDocument().LocalOwner()->IsInert();
+ return GetDocument().GetFrame() && GetDocument().GetFrame()->IsInert();
dmazzoni 2017/05/18 15:47:05 I don't think this changes the logic, but I'm just
kenrb 2017/05/19 17:46:28 It should be fine to remove that condition, on the
}
unsigned Node::NodeIndex() const {

Powered by Google App Engine
This is Rietveld 408576698