Chromium Code Reviews| Index: Source/core/dom/Element.h |
| diff --git a/Source/core/dom/Element.h b/Source/core/dom/Element.h |
| index dfba38b758b5054691eb02ad7e8562277536526a..3a95dd8b7a56a72ded7cbcaa53af2e8985ac290b 100644 |
| --- a/Source/core/dom/Element.h |
| +++ b/Source/core/dom/Element.h |
| @@ -291,7 +291,7 @@ public: |
| // This method is called whenever an attribute is added, changed or removed. |
| virtual void attributeChanged(const QualifiedName&, const AtomicString&, AttributeModificationReason = ModifiedDirectly); |
| - virtual void parseAttribute(const QualifiedName&, const AtomicString&) { } |
| + virtual void parseAttribute(const QualifiedName&, const AtomicString&); |
| virtual bool hasLegalLinkAttribute(const QualifiedName&) const; |
| virtual const QualifiedName& subResourceAttributeName() const; |
| @@ -374,7 +374,7 @@ public: |
| // focusable but some elements, such as form controls and links, are. Unlike |
| // rendererIsFocusable(), this method may be called when layout is not up to |
| // date, so it must not use the renderer to determine focusability. |
| - virtual bool supportsFocus() const { return hasElementFlag(TabIndexWasSetExplicitly); } |
| + virtual bool supportsFocus() const; |
| // Whether the node can actually be focused. |
| bool isFocusable() const; |
| virtual bool isKeyboardFocusable() const; |
| @@ -510,6 +510,9 @@ public: |
| MutableStylePropertySet& ensureMutableInlineStyle(); |
| void clearMutableInlineStyleIfEmpty(); |
| + void setTabIndex(int); |
| + virtual short tabIndex() const OVERRIDE; |
| + |
| protected: |
| Element(const QualifiedName& tagName, Document* document, ConstructionType type) |
| : ContainerNode(document, type) |
| @@ -533,9 +536,10 @@ protected: |
| virtual bool shouldRegisterAsNamedItem() const { return false; } |
| virtual bool shouldRegisterAsExtraNamedItem() const { return false; } |
| + bool supportsSpatialNavigationFocus() const; |
|
fs
2014/04/29 08:30:31
Shouldn't this be virtual? (Used in Element::suppo
Erik Dahlström (inactive)
2014/04/29 12:12:28
Done.
|
| + |
| void clearTabIndexExplicitlyIfNeeded(); |
| void setTabIndexExplicitly(short); |
| - virtual short tabIndex() const OVERRIDE; |
| // Subclasses may override this method to affect focusability. Unlike |
| // supportsFocus, this method must be called on an up-to-date layout, so it |
| // may use the renderer to reason about focusability. This method cannot be |