| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 int offsetLeft(); | 143 int offsetLeft(); |
| 144 int offsetTop(); | 144 int offsetTop(); |
| 145 int offsetWidth(); | 145 int offsetWidth(); |
| 146 int offsetHeight(); | 146 int offsetHeight(); |
| 147 | 147 |
| 148 Element* offsetParent(); | 148 Element* offsetParent(); |
| 149 int clientLeft(); | 149 int clientLeft(); |
| 150 int clientTop(); | 150 int clientTop(); |
| 151 int clientWidth(); | 151 int clientWidth(); |
| 152 int clientHeight(); | 152 int clientHeight(); |
| 153 virtual int scrollLeft(); | 153 int scrollLeft(); |
| 154 virtual int scrollTop(); | 154 int scrollTop(); |
| 155 virtual void setScrollLeft(int); | 155 void setScrollLeft(int); |
| 156 virtual void setScrollLeft(const Dictionary& scrollOptionsHorizontal, Except
ionState&); | 156 void setScrollLeft(const Dictionary& scrollOptionsHorizontal, ExceptionState
&); |
| 157 virtual void setScrollTop(int); | 157 void setScrollTop(int); |
| 158 virtual void setScrollTop(const Dictionary& scrollOptionsVertical, Exception
State&); | 158 void setScrollTop(const Dictionary& scrollOptionsVertical, ExceptionState&); |
| 159 virtual int scrollWidth(); | 159 int scrollWidth(); |
| 160 virtual int scrollHeight(); | 160 int scrollHeight(); |
| 161 | 161 |
| 162 PassRefPtr<ClientRectList> getClientRects(); | 162 PassRefPtr<ClientRectList> getClientRects(); |
| 163 PassRefPtr<ClientRect> getBoundingClientRect(); | 163 PassRefPtr<ClientRect> getBoundingClientRect(); |
| 164 | 164 |
| 165 virtual void didMoveToNewDocument(Document&) override; | 165 virtual void didMoveToNewDocument(Document&) override; |
| 166 | 166 |
| 167 void removeAttribute(const AtomicString& name); | 167 void removeAttribute(const AtomicString& name); |
| 168 | 168 |
| 169 PassRefPtr<Attr> getAttributeNode(const AtomicString& name); | 169 PassRefPtr<Attr> getAttributeNode(const AtomicString& name); |
| 170 | 170 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 | 275 |
| 276 virtual bool isLiveLink() const { return false; } | 276 virtual bool isLiveLink() const { return false; } |
| 277 KURL hrefURL() const; | 277 KURL hrefURL() const; |
| 278 | 278 |
| 279 KURL getURLAttribute(const QualifiedName&) const; | 279 KURL getURLAttribute(const QualifiedName&) const; |
| 280 KURL getNonEmptyURLAttribute(const QualifiedName&) const; | 280 KURL getNonEmptyURLAttribute(const QualifiedName&) const; |
| 281 | 281 |
| 282 virtual const AtomicString imageSourceURL() const; | 282 virtual const AtomicString imageSourceURL() const; |
| 283 virtual Image* imageContents() { return 0; } | 283 virtual Image* imageContents() { return 0; } |
| 284 | 284 |
| 285 virtual void focus(bool restorePreviousSelection = true, FocusType = FocusTy
peNone); | 285 void focus(bool restorePreviousSelection = true, FocusType = FocusTypeNone); |
| 286 virtual void updateFocusAppearance(bool restorePreviousSelection); | 286 void updateFocusAppearance(bool restorePreviousSelection); |
| 287 virtual void blur(); | 287 void blur(); |
| 288 // Whether this element can receive focus at all. Most elements are not | 288 // Whether this element can receive focus at all. Most elements are not |
| 289 // focusable but some elements, such as form controls and links, are. Unlike | 289 // focusable but some elements, such as form controls and links, are. Unlike |
| 290 // rendererIsFocusable(), this method may be called when layout is not up to | 290 // rendererIsFocusable(), this method may be called when layout is not up to |
| 291 // date, so it must not use the renderer to determine focusability. | 291 // date, so it must not use the renderer to determine focusability. |
| 292 virtual bool supportsFocus() const; | 292 virtual bool supportsFocus() const; |
| 293 // Whether the node can actually be focused. | 293 // Whether the node can actually be focused. |
| 294 bool isFocusable() const; | 294 bool isFocusable() const; |
| 295 virtual bool isKeyboardFocusable() const; | 295 virtual bool isKeyboardFocusable() const; |
| 296 virtual bool isMouseFocusable() const; | 296 virtual bool isMouseFocusable() const; |
| 297 virtual void willCallDefaultEventHandler(const Event&) override final; | 297 virtual void willCallDefaultEventHandler(const Event&) override final; |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 659 static PassRefPtr<T> create(const QualifiedName&, Document&) | 659 static PassRefPtr<T> create(const QualifiedName&, Document&) |
| 660 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 660 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 661 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \ | 661 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \ |
| 662 { \ | 662 { \ |
| 663 return adoptRef(new T(tagName, document)); \ | 663 return adoptRef(new T(tagName, document)); \ |
| 664 } | 664 } |
| 665 | 665 |
| 666 } // namespace | 666 } // namespace |
| 667 | 667 |
| 668 #endif // Element_h | 668 #endif // Element_h |
| OLD | NEW |