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

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: Update generic test expectations 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/html/HTMLElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLElement.cpp b/third_party/WebKit/Source/core/html/HTMLElement.cpp
index 593e248aed59e5357818ea4724534f0b5dcea4a8..6070882d372011627c594ef7124330b1c0c3a0b8 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.new_value);
} else if (params.name == langAttr) {
PseudoStateChanged(CSSSelector::kPseudoLang);
+ } else if (params.name == inertAttr) {
+ UseCounter::Count(GetDocument(), UseCounter::kInertAttribute);
} else {
const AtomicString& event_name = EventNameForAttributeName(params.name);
if (!event_name.IsNull()) {

Powered by Google App Engine
This is Rietveld 408576698