Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * Copyright (C) 2004-2008, 2013, 2014 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004-2008, 2013, 2014 Apple Inc. All rights reserved. |
| 5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) | 5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) |
| 6 * Copyright (C) 2011 Motorola Mobility. All rights reserved. | 6 * Copyright (C) 2011 Motorola Mobility. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 613 void HTMLElement::accessKeyAction(bool sendMouseEvents) | 613 void HTMLElement::accessKeyAction(bool sendMouseEvents) |
| 614 { | 614 { |
| 615 dispatchSimulatedClick(0, sendMouseEvents ? SendMouseUpDownEvents : SendNoEv ents); | 615 dispatchSimulatedClick(0, sendMouseEvents ? SendMouseUpDownEvents : SendNoEv ents); |
| 616 } | 616 } |
| 617 | 617 |
| 618 String HTMLElement::title() const | 618 String HTMLElement::title() const |
| 619 { | 619 { |
| 620 return fastGetAttribute(titleAttr); | 620 return fastGetAttribute(titleAttr); |
| 621 } | 621 } |
| 622 | 622 |
| 623 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.
| |
| 624 { | |
| 625 return fastHasAttribute(inertAttr); | |
| 626 } | |
| 627 | |
| 628 void HTMLElement::setInert(const bool enabled, ExceptionState& exceptionState) | |
|
esprehn
2016/06/27 22:27:15
ditto
aboxhall
2016/06/29 00:13:12
Done.
| |
| 629 { | |
| 630 if (enabled) | |
| 631 setAttribute(inertAttr, ""); | |
| 632 else | |
| 633 removeAttribute(inertAttr); | |
| 634 } | |
| 635 | |
| 623 short HTMLElement::tabIndex() const | 636 short HTMLElement::tabIndex() const |
| 624 { | 637 { |
| 625 if (supportsFocus()) | 638 if (supportsFocus()) |
| 626 return Element::tabIndex(); | 639 return Element::tabIndex(); |
| 627 return -1; | 640 return -1; |
| 628 } | 641 } |
| 629 | 642 |
| 630 TranslateAttributeMode HTMLElement::translateAttributeMode() const | 643 TranslateAttributeMode HTMLElement::translateAttributeMode() const |
| 631 { | 644 { |
| 632 const AtomicString& value = getAttribute(translateAttr); | 645 const AtomicString& value = getAttribute(translateAttr); |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1056 #ifndef NDEBUG | 1069 #ifndef NDEBUG |
| 1057 | 1070 |
| 1058 // For use in the debugger | 1071 // For use in the debugger |
| 1059 void dumpInnerHTML(blink::HTMLElement*); | 1072 void dumpInnerHTML(blink::HTMLElement*); |
| 1060 | 1073 |
| 1061 void dumpInnerHTML(blink::HTMLElement* element) | 1074 void dumpInnerHTML(blink::HTMLElement* element) |
| 1062 { | 1075 { |
| 1063 printf("%s\n", element->innerHTML().ascii().data()); | 1076 printf("%s\n", element->innerHTML().ascii().data()); |
| 1064 } | 1077 } |
| 1065 #endif | 1078 #endif |
| OLD | NEW |