| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 class ElementRareData; | 53 class ElementRareData; |
| 54 class ElementShadow; | 54 class ElementShadow; |
| 55 class ExceptionState; | 55 class ExceptionState; |
| 56 class Image; | 56 class Image; |
| 57 class InputMethodContext; | 57 class InputMethodContext; |
| 58 class IntSize; | 58 class IntSize; |
| 59 class Locale; | 59 class Locale; |
| 60 class MutableStylePropertySet; | 60 class MutableStylePropertySet; |
| 61 class PropertySetCSSStyleDeclaration; | 61 class PropertySetCSSStyleDeclaration; |
| 62 class PseudoElement; | 62 class PseudoElement; |
| 63 class ScrollState; |
| 63 class ScrollToOptions; | 64 class ScrollToOptions; |
| 64 class ShadowRoot; | 65 class ShadowRoot; |
| 65 class StylePropertySet; | 66 class StylePropertySet; |
| 66 | 67 |
| 67 enum SpellcheckAttributeState { | 68 enum SpellcheckAttributeState { |
| 68 SpellcheckAttributeTrue, | 69 SpellcheckAttributeTrue, |
| 69 SpellcheckAttributeFalse, | 70 SpellcheckAttributeFalse, |
| 70 SpellcheckAttributeDefault | 71 SpellcheckAttributeDefault |
| 71 }; | 72 }; |
| 72 | 73 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 // will be returned. This is not a trivial getter and its return value shoul
d be cached | 160 // will be returned. This is not a trivial getter and its return value shoul
d be cached |
| 160 // for performance. | 161 // for performance. |
| 161 AttributeCollection attributes() const; | 162 AttributeCollection attributes() const; |
| 162 // This variant will not update the potentially invalid attributes. To be us
ed when not interested | 163 // This variant will not update the potentially invalid attributes. To be us
ed when not interested |
| 163 // in style attribute or one of the SVG animation attributes. | 164 // in style attribute or one of the SVG animation attributes. |
| 164 AttributeCollection attributesWithoutUpdate() const; | 165 AttributeCollection attributesWithoutUpdate() const; |
| 165 | 166 |
| 166 void scrollIntoView(bool alignToTop = true); | 167 void scrollIntoView(bool alignToTop = true); |
| 167 void scrollIntoViewIfNeeded(bool centerIfNeeded = true); | 168 void scrollIntoViewIfNeeded(bool centerIfNeeded = true); |
| 168 | 169 |
| 170 void distributeScroll(ScrollState*); |
| 171 void applyScroll(ScrollState*); |
| 172 |
| 169 int offsetLeft(); | 173 int offsetLeft(); |
| 170 int offsetTop(); | 174 int offsetTop(); |
| 171 int offsetWidth(); | 175 int offsetWidth(); |
| 172 int offsetHeight(); | 176 int offsetHeight(); |
| 173 | 177 |
| 174 // FIXME: Replace uses of offsetParent in the platform with calls | 178 // FIXME: Replace uses of offsetParent in the platform with calls |
| 175 // to the render layer and merge offsetParentForBindings and offsetParent. | 179 // to the render layer and merge offsetParentForBindings and offsetParent. |
| 176 Element* offsetParentForBindings(); | 180 Element* offsetParentForBindings(); |
| 177 | 181 |
| 178 Element* offsetParent(); | 182 Element* offsetParent(); |
| (...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 879 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 883 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
| 880 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 884 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 881 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ | 885 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ |
| 882 { \ | 886 { \ |
| 883 return adoptRefWillBeNoop(new T(tagName, document)); \ | 887 return adoptRefWillBeNoop(new T(tagName, document)); \ |
| 884 } | 888 } |
| 885 | 889 |
| 886 } // namespace | 890 } // namespace |
| 887 | 891 |
| 888 #endif // Element_h | 892 #endif // Element_h |
| OLD | NEW |