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

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: rebase Created 3 years, 10 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 69d1fc0537bfa0aa545342e1c9574c66fb19a3f2..0362e82ecb438c53a8bb5ad533043f64bfa83008 100644
--- a/third_party/WebKit/Source/core/html/HTMLElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLElement.cpp
@@ -462,6 +462,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