| 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 * (C) 2001 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
| 5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved. | 6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. 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 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 virtual void removedFrom(ContainerNode*) override; | 514 virtual void removedFrom(ContainerNode*) override; |
| 515 virtual void childrenChanged(const ChildrenChange&) override; | 515 virtual void childrenChanged(const ChildrenChange&) override; |
| 516 | 516 |
| 517 virtual void willRecalcStyle(StyleRecalcChange); | 517 virtual void willRecalcStyle(StyleRecalcChange); |
| 518 virtual void didRecalcStyle(StyleRecalcChange); | 518 virtual void didRecalcStyle(StyleRecalcChange); |
| 519 virtual PassRefPtr<RenderStyle> customStyleForRenderer(); | 519 virtual PassRefPtr<RenderStyle> customStyleForRenderer(); |
| 520 | 520 |
| 521 virtual bool shouldRegisterAsNamedItem() const { return false; } | 521 virtual bool shouldRegisterAsNamedItem() const { return false; } |
| 522 virtual bool shouldRegisterAsExtraNamedItem() const { return false; } | 522 virtual bool shouldRegisterAsExtraNamedItem() const { return false; } |
| 523 | 523 |
| 524 bool supportsSpatialNavigationFocus() const; | |
| 525 | |
| 526 void clearTabIndexExplicitlyIfNeeded(); | 524 void clearTabIndexExplicitlyIfNeeded(); |
| 527 void setTabIndexExplicitly(short); | 525 void setTabIndexExplicitly(short); |
| 528 // Subclasses may override this method to affect focusability. Unlike | 526 // Subclasses may override this method to affect focusability. Unlike |
| 529 // supportsFocus, this method must be called on an up-to-date layout, so it | 527 // supportsFocus, this method must be called on an up-to-date layout, so it |
| 530 // may use the renderer to reason about focusability. This method cannot be | 528 // may use the renderer to reason about focusability. This method cannot be |
| 531 // moved to RenderObject because some focusable nodes don't have renderers, | 529 // moved to RenderObject because some focusable nodes don't have renderers, |
| 532 // e.g., HTMLOptionElement. | 530 // e.g., HTMLOptionElement. |
| 533 virtual bool rendererIsFocusable() const; | 531 virtual bool rendererIsFocusable() const; |
| 534 | 532 |
| 535 // classAttributeChanged() exists to share code between | 533 // classAttributeChanged() exists to share code between |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 880 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 878 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
| 881 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 879 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 882 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ | 880 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ |
| 883 { \ | 881 { \ |
| 884 return adoptRefWillBeNoop(new T(tagName, document)); \ | 882 return adoptRefWillBeNoop(new T(tagName, document)); \ |
| 885 } | 883 } |
| 886 | 884 |
| 887 } // namespace | 885 } // namespace |
| 888 | 886 |
| 889 #endif // Element_h | 887 #endif // Element_h |
| OLD | NEW |