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

Unified Diff: third_party/WebKit/Source/core/html/HTMLElement.cpp

Issue 2883033003: Propagate inert state to OOPIFs when a modal dialog is active (Closed)
Patch Set: Restore earlier approach + UpdateDistribution() 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/html/HTMLElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLElement.cpp b/third_party/WebKit/Source/core/html/HTMLElement.cpp
index cdcb4598f15308ca57a04041dc9fd536be469c75..8a21008035ec33e5f7c58db92dc54341b9ad0fc1 100644
--- a/third_party/WebKit/Source/core/html/HTMLElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLElement.cpp
@@ -56,6 +56,7 @@
#include "core/html/HTMLBRElement.h"
#include "core/html/HTMLDimension.h"
#include "core/html/HTMLFormElement.h"
+#include "core/html/HTMLFrameOwnerElement.h"
#include "core/html/HTMLInputElement.h"
#include "core/html/HTMLTemplateElement.h"
#include "core/html/parser/HTMLParserIdioms.h"
@@ -466,6 +467,9 @@ void HTMLElement::ParseAttribute(const AttributeModificationParams& params) {
PseudoStateChanged(CSSSelector::kPseudoLang);
} else if (params.name == inertAttr) {
UseCounter::Count(GetDocument(), WebFeature::kInertAttribute);
+ UpdateDistribution();
+ GetDocument().GetFrame()->SetIsInert(GetDocument().LocalOwner() &&
+ GetDocument().LocalOwner()->IsInert());
} else if (params.name == nonceAttr) {
if (params.new_value != g_empty_atom)
setNonce(params.new_value);

Powered by Google App Engine
This is Rietveld 408576698