| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 // will be returned. This is not a trivial getter and its return value shoul
d be cached | 162 // will be returned. This is not a trivial getter and its return value shoul
d be cached |
| 163 // for performance. | 163 // for performance. |
| 164 AttributeCollection attributes() const; | 164 AttributeCollection attributes() const; |
| 165 // This variant will not update the potentially invalid attributes. To be us
ed when not interested | 165 // This variant will not update the potentially invalid attributes. To be us
ed when not interested |
| 166 // in style attribute or one of the SVG animation attributes. | 166 // in style attribute or one of the SVG animation attributes. |
| 167 AttributeCollection attributesWithoutUpdate() const; | 167 AttributeCollection attributesWithoutUpdate() const; |
| 168 | 168 |
| 169 void scrollIntoView(bool alignToTop = true); | 169 void scrollIntoView(bool alignToTop = true); |
| 170 void scrollIntoViewIfNeeded(bool centerIfNeeded = true); | 170 void scrollIntoViewIfNeeded(bool centerIfNeeded = true); |
| 171 | 171 |
| 172 void distributeScroll(ScrollState&); | |
| 173 void applyScroll(ScrollState&); | |
| 174 | |
| 175 int offsetLeft(); | 172 int offsetLeft(); |
| 176 int offsetTop(); | 173 int offsetTop(); |
| 177 int offsetWidth(); | 174 int offsetWidth(); |
| 178 int offsetHeight(); | 175 int offsetHeight(); |
| 179 | 176 |
| 180 Element* offsetParent(); | 177 Element* offsetParent(); |
| 181 int clientLeft(); | 178 int clientLeft(); |
| 182 int clientTop(); | 179 int clientTop(); |
| 183 int clientWidth(); | 180 int clientWidth(); |
| 184 int clientHeight(); | 181 int clientHeight(); |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 | 356 |
| 360 virtual bool isLiveLink() const { return false; } | 357 virtual bool isLiveLink() const { return false; } |
| 361 KURL hrefURL() const; | 358 KURL hrefURL() const; |
| 362 | 359 |
| 363 KURL getURLAttribute(const QualifiedName&) const; | 360 KURL getURLAttribute(const QualifiedName&) const; |
| 364 KURL getNonEmptyURLAttribute(const QualifiedName&) const; | 361 KURL getNonEmptyURLAttribute(const QualifiedName&) const; |
| 365 | 362 |
| 366 virtual const AtomicString imageSourceURL() const; | 363 virtual const AtomicString imageSourceURL() const; |
| 367 virtual Image* imageContents() { return nullptr; } | 364 virtual Image* imageContents() { return nullptr; } |
| 368 | 365 |
| 366 void distributeScrollNative(ScrollState&); |
| 367 void callDistributeScroll(ScrollState&); |
| 368 void distributeScroll(ScrollState*); |
| 369 void applyScrollNative(ScrollState&); |
| 370 void callApplyScroll(ScrollState&); |
| 371 void applyScroll(ScrollState*); |
| 372 |
| 369 virtual void focus(bool restorePreviousSelection = true, WebFocusType = WebF
ocusTypeNone); | 373 virtual void focus(bool restorePreviousSelection = true, WebFocusType = WebF
ocusTypeNone); |
| 370 virtual void updateFocusAppearance(bool restorePreviousSelection); | 374 virtual void updateFocusAppearance(bool restorePreviousSelection); |
| 371 virtual void blur(); | 375 virtual void blur(); |
| 372 // 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 |
| 373 // 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 |
| 374 // 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 |
| 375 // date, so it must not use the renderer to determine focusability. | 379 // date, so it must not use the renderer to determine focusability. |
| 376 virtual bool supportsFocus() const; | 380 virtual bool supportsFocus() const; |
| 377 // Whether the node can actually be focused. | 381 // Whether the node can actually be focused. |
| 378 bool isFocusable() const; | 382 bool isFocusable() const; |
| (...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 884 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 888 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
| 885 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 889 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 886 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ | 890 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ |
| 887 { \ | 891 { \ |
| 888 return adoptRefWillBeNoop(new T(tagName, document)); \ | 892 return adoptRefWillBeNoop(new T(tagName, document)); \ |
| 889 } | 893 } |
| 890 | 894 |
| 891 } // namespace | 895 } // namespace |
| 892 | 896 |
| 893 #endif // Element_h | 897 #endif // Element_h |
| OLD | NEW |