| 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 // 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 |
| 164 // for performance. | 164 // for performance. |
| 165 AttributeCollection attributes() const; | 165 AttributeCollection attributes() const; |
| 166 // 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 |
| 167 // in style attribute or one of the SVG animation attributes. | 167 // in style attribute or one of the SVG animation attributes. |
| 168 AttributeCollection attributesWithoutUpdate() const; | 168 AttributeCollection attributesWithoutUpdate() const; |
| 169 | 169 |
| 170 void scrollIntoView(bool alignToTop = true); | 170 void scrollIntoView(bool alignToTop = true); |
| 171 void scrollIntoViewIfNeeded(bool centerIfNeeded = true); | 171 void scrollIntoViewIfNeeded(bool centerIfNeeded = true); |
| 172 | 172 |
| 173 void distributeScroll(ScrollState&); | |
| 174 void applyScroll(ScrollState&); | |
| 175 | |
| 176 int offsetLeft(); | 173 int offsetLeft(); |
| 177 int offsetTop(); | 174 int offsetTop(); |
| 178 int offsetWidth(); | 175 int offsetWidth(); |
| 179 int offsetHeight(); | 176 int offsetHeight(); |
| 180 | 177 |
| 181 Element* offsetParent(); | 178 Element* offsetParent(); |
| 182 int clientLeft(); | 179 int clientLeft(); |
| 183 int clientTop(); | 180 int clientTop(); |
| 184 int clientWidth(); | 181 int clientWidth(); |
| 185 int clientHeight(); | 182 int clientHeight(); |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 | 358 |
| 362 KURL getURLAttribute(const QualifiedName&) const; | 359 KURL getURLAttribute(const QualifiedName&) const; |
| 363 KURL getNonEmptyURLAttribute(const QualifiedName&) const; | 360 KURL getNonEmptyURLAttribute(const QualifiedName&) const; |
| 364 | 361 |
| 365 virtual const AtomicString imageSourceURL() const; | 362 virtual const AtomicString imageSourceURL() const; |
| 366 virtual Image* imageContents() { return nullptr; } | 363 virtual Image* imageContents() { return nullptr; } |
| 367 | 364 |
| 368 virtual void focus(bool restorePreviousSelection = true, WebFocusType = WebF
ocusTypeNone); | 365 virtual void focus(bool restorePreviousSelection = true, WebFocusType = WebF
ocusTypeNone); |
| 369 virtual void updateFocusAppearance(bool restorePreviousSelection); | 366 virtual void updateFocusAppearance(bool restorePreviousSelection); |
| 370 virtual void blur(); | 367 virtual void blur(); |
| 368 |
| 369 void distributeScrollNative(ScrollState&); |
| 370 void callDistributeScroll(ScrollState&); |
| 371 void distributeScroll(ScrollState*); |
| 372 void applyScrollNative(ScrollState&); |
| 373 void callApplyScroll(ScrollState&); |
| 374 void applyScroll(ScrollState*); |
| 375 |
| 371 // Whether this element can receive focus at all. Most elements are not | 376 // Whether this element can receive focus at all. Most elements are not |
| 372 // focusable but some elements, such as form controls and links, are. Unlike | 377 // focusable but some elements, such as form controls and links, are. Unlike |
| 373 // layoutObjectIsFocusable(), this method may be called when layout is not u
p to | 378 // layoutObjectIsFocusable(), this method may be called when layout is not u
p to |
| 374 // date, so it must not use the layoutObject to determine focusability. | 379 // date, so it must not use the layoutObject to determine focusability. |
| 375 virtual bool supportsFocus() const; | 380 virtual bool supportsFocus() const; |
| 376 // Whether the node can actually be focused. | 381 // Whether the node can actually be focused. |
| 377 bool isFocusable() const; | 382 bool isFocusable() const; |
| 378 bool tabStop() const; | 383 bool tabStop() const; |
| 379 void setTabStop(bool); | 384 void setTabStop(bool); |
| 380 void setTabStopInternal(bool); | 385 void setTabStopInternal(bool); |
| (...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 879 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 884 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
| 880 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 885 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 881 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ | 886 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ |
| 882 { \ | 887 { \ |
| 883 return adoptRefWillBeNoop(new T(tagName, document)); \ | 888 return adoptRefWillBeNoop(new T(tagName, document)); \ |
| 884 } | 889 } |
| 885 | 890 |
| 886 } // namespace | 891 } // namespace |
| 887 | 892 |
| 888 #endif // Element_h | 893 #endif // Element_h |
| OLD | NEW |