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

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

Issue 2088453002: Implement the inert attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dmazzoni comments Created 3 years, 11 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 deaffb100f9afb20f25292e1f32f9b3112c24a82..51603dc366766b85c32df502eb4c7a640e31834a 100644
--- a/third_party/WebKit/Source/core/html/HTMLElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLElement.cpp
@@ -457,6 +457,8 @@ void HTMLElement::parseAttribute(const AttributeModificationParams& params) {
dirAttributeChanged(params.newValue);
} else if (params.name == langAttr) {
pseudoStateChanged(CSSSelector::PseudoLang);
+ } else if (params.name == inertAttr) {
+ UseCounter::count(document(), UseCounter::InertAttribute);
} else {
const AtomicString& eventName = eventNameForAttributeName(params.name);
if (!eventName.isNull()) {

Powered by Google App Engine
This is Rietveld 408576698