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

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: Fix up some tests Created 4 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 97f7595717213225f3016ec684e83d20fafde47f..7b4a5c4834535025773026bc4a3a983041e7a1ec 100644
--- a/third_party/WebKit/Source/core/html/HTMLElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLElement.cpp
@@ -620,6 +620,19 @@ String HTMLElement::title() const
return fastGetAttribute(titleAttr);
}
+bool HTMLElement::inert() const
esprehn 2016/06/27 22:27:15 This can just use Reflect in the idl I think, you
aboxhall 2016/06/29 00:13:12 Done.
+{
+ return fastHasAttribute(inertAttr);
+}
+
+void HTMLElement::setInert(const bool enabled, ExceptionState& exceptionState)
esprehn 2016/06/27 22:27:15 ditto
aboxhall 2016/06/29 00:13:12 Done.
+{
+ if (enabled)
+ setAttribute(inertAttr, "");
+ else
+ removeAttribute(inertAttr);
+}
+
short HTMLElement::tabIndex() const
{
if (supportsFocus())

Powered by Google App Engine
This is Rietveld 408576698