| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 class ElementRareData; | 55 class ElementRareData; |
| 56 class ElementShadow; | 56 class ElementShadow; |
| 57 class ExceptionState; | 57 class ExceptionState; |
| 58 class Image; | 58 class Image; |
| 59 class IntSize; | 59 class IntSize; |
| 60 class Locale; | 60 class Locale; |
| 61 class MutableStylePropertySet; | 61 class MutableStylePropertySet; |
| 62 class PropertySetCSSStyleDeclaration; | 62 class PropertySetCSSStyleDeclaration; |
| 63 class PseudoElement; | 63 class PseudoElement; |
| 64 class ScrollState; | 64 class ScrollState; |
| 65 class ScrollStateCallback; | |
| 66 class ScrollToOptions; | 65 class ScrollToOptions; |
| 67 class ShadowRoot; | 66 class ShadowRoot; |
| 68 class ShadowRootInit; | 67 class ShadowRootInit; |
| 69 class StylePropertySet; | 68 class StylePropertySet; |
| 70 | 69 |
| 71 enum SpellcheckAttributeState { | 70 enum SpellcheckAttributeState { |
| 72 SpellcheckAttributeTrue, | 71 SpellcheckAttributeTrue, |
| 73 SpellcheckAttributeFalse, | 72 SpellcheckAttributeFalse, |
| 74 SpellcheckAttributeDefault | 73 SpellcheckAttributeDefault |
| 75 }; | 74 }; |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 // will be returned. This is not a trivial getter and its return value shoul
d be cached | 163 // will be returned. This is not a trivial getter and its return value shoul
d be cached |
| 165 // for performance. | 164 // for performance. |
| 166 AttributeCollection attributes() const; | 165 AttributeCollection attributes() const; |
| 167 // This variant will not update the potentially invalid attributes. To be us
ed when not interested | 166 // This variant will not update the potentially invalid attributes. To be us
ed when not interested |
| 168 // in style attribute or one of the SVG animation attributes. | 167 // in style attribute or one of the SVG animation attributes. |
| 169 AttributeCollection attributesWithoutUpdate() const; | 168 AttributeCollection attributesWithoutUpdate() const; |
| 170 | 169 |
| 171 void scrollIntoView(bool alignToTop = true); | 170 void scrollIntoView(bool alignToTop = true); |
| 172 void scrollIntoViewIfNeeded(bool centerIfNeeded = true); | 171 void scrollIntoViewIfNeeded(bool centerIfNeeded = true); |
| 173 | 172 |
| 173 void distributeScroll(ScrollState&); |
| 174 void applyScroll(ScrollState&); |
| 175 |
| 174 int offsetLeft(); | 176 int offsetLeft(); |
| 175 int offsetTop(); | 177 int offsetTop(); |
| 176 int offsetWidth(); | 178 int offsetWidth(); |
| 177 int offsetHeight(); | 179 int offsetHeight(); |
| 178 | 180 |
| 179 Element* offsetParent(); | 181 Element* offsetParent(); |
| 180 int clientLeft(); | 182 int clientLeft(); |
| 181 int clientTop(); | 183 int clientTop(); |
| 182 int clientWidth(); | 184 int clientWidth(); |
| 183 int clientHeight(); | 185 int clientHeight(); |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 | 365 |
| 364 KURL getURLAttribute(const QualifiedName&) const; | 366 KURL getURLAttribute(const QualifiedName&) const; |
| 365 KURL getNonEmptyURLAttribute(const QualifiedName&) const; | 367 KURL getNonEmptyURLAttribute(const QualifiedName&) const; |
| 366 | 368 |
| 367 virtual const AtomicString imageSourceURL() const; | 369 virtual const AtomicString imageSourceURL() const; |
| 368 virtual Image* imageContents() { return nullptr; } | 370 virtual Image* imageContents() { return nullptr; } |
| 369 | 371 |
| 370 virtual void focus(bool restorePreviousSelection = true, WebFocusType = WebF
ocusTypeNone); | 372 virtual void focus(bool restorePreviousSelection = true, WebFocusType = WebF
ocusTypeNone); |
| 371 virtual void updateFocusAppearance(bool restorePreviousSelection); | 373 virtual void updateFocusAppearance(bool restorePreviousSelection); |
| 372 virtual void blur(); | 374 virtual void blur(); |
| 373 | |
| 374 void setDistributeScroll(ScrollStateCallback*, String nativeScrollBehavior); | |
| 375 void nativeDistributeScroll(ScrollState&); | |
| 376 void setApplyScroll(ScrollStateCallback*, String nativeScrollBehavior); | |
| 377 void nativeApplyScroll(ScrollState&); | |
| 378 | |
| 379 void callDistributeScroll(ScrollState&); | |
| 380 void callApplyScroll(ScrollState&); | |
| 381 | |
| 382 // Whether this element can receive focus at all. Most elements are not | 375 // Whether this element can receive focus at all. Most elements are not |
| 383 // focusable but some elements, such as form controls and links, are. Unlike | 376 // focusable but some elements, such as form controls and links, are. Unlike |
| 384 // layoutObjectIsFocusable(), this method may be called when layout is not u
p to | 377 // layoutObjectIsFocusable(), this method may be called when layout is not u
p to |
| 385 // date, so it must not use the layoutObject to determine focusability. | 378 // date, so it must not use the layoutObject to determine focusability. |
| 386 virtual bool supportsFocus() const; | 379 virtual bool supportsFocus() const; |
| 387 // Whether the node can actually be focused. | 380 // Whether the node can actually be focused. |
| 388 bool isFocusable() const; | 381 bool isFocusable() const; |
| 389 bool isFocusedElementInDocument() const; | 382 bool isFocusedElementInDocument() const; |
| 390 virtual bool isKeyboardFocusable() const; | 383 virtual bool isKeyboardFocusable() const; |
| 391 virtual bool isMouseFocusable() const; | 384 virtual bool isMouseFocusable() const; |
| (...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 889 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 882 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
| 890 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 883 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 891 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ | 884 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ |
| 892 { \ | 885 { \ |
| 893 return adoptRefWillBeNoop(new T(tagName, document)); \ | 886 return adoptRefWillBeNoop(new T(tagName, document)); \ |
| 894 } | 887 } |
| 895 | 888 |
| 896 } // namespace | 889 } // namespace |
| 897 | 890 |
| 898 #endif // Element_h | 891 #endif // Element_h |
| OLD | NEW |