Chromium Code Reviews| 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()) |