| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 class Image; | 58 class Image; |
| 59 class InputDeviceCapabilities; | 59 class InputDeviceCapabilities; |
| 60 class Locale; | 60 class Locale; |
| 61 class MutableStylePropertySet; | 61 class MutableStylePropertySet; |
| 62 class NamedNodeMap; | 62 class NamedNodeMap; |
| 63 class ElementIntersectionObserverData; | 63 class ElementIntersectionObserverData; |
| 64 class PseudoElement; | 64 class PseudoElement; |
| 65 class PseudoStyleRequest; | 65 class PseudoStyleRequest; |
| 66 class ResizeObservation; | 66 class ResizeObservation; |
| 67 class ResizeObserver; | 67 class ResizeObserver; |
| 68 class ScrollIntoViewOptions; |
| 69 class ScrollIntoViewOptionsOrBoolean; |
| 68 class ScrollState; | 70 class ScrollState; |
| 69 class ScrollStateCallback; | 71 class ScrollStateCallback; |
| 70 class ScrollToOptions; | 72 class ScrollToOptions; |
| 71 class ShadowRoot; | 73 class ShadowRoot; |
| 72 class ShadowRootInit; | 74 class ShadowRootInit; |
| 73 class StylePropertySet; | 75 class StylePropertySet; |
| 74 class StylePropertyMap; | 76 class StylePropertyMap; |
| 75 class V0CustomElementDefinition; | 77 class V0CustomElementDefinition; |
| 76 | 78 |
| 77 enum SpellcheckAttributeState { | 79 enum SpellcheckAttributeState { |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 // This getter takes care of synchronizing all attributes before returning the | 222 // This getter takes care of synchronizing all attributes before returning the |
| 221 // AttributeCollection. If the Element has no attributes, an empty | 223 // AttributeCollection. If the Element has no attributes, an empty |
| 222 // AttributeCollection will be returned. This is not a trivial getter and its | 224 // AttributeCollection will be returned. This is not a trivial getter and its |
| 223 // return value should be cached for performance. | 225 // return value should be cached for performance. |
| 224 AttributeCollection Attributes() const; | 226 AttributeCollection Attributes() const; |
| 225 // This variant will not update the potentially invalid attributes. To be used | 227 // This variant will not update the potentially invalid attributes. To be used |
| 226 // when not interested in style attribute or one of the SVG animation | 228 // when not interested in style attribute or one of the SVG animation |
| 227 // attributes. | 229 // attributes. |
| 228 AttributeCollection AttributesWithoutUpdate() const; | 230 AttributeCollection AttributesWithoutUpdate() const; |
| 229 | 231 |
| 232 void scrollIntoView(ScrollIntoViewOptionsOrBoolean); |
| 230 void scrollIntoView(bool align_to_top = true); | 233 void scrollIntoView(bool align_to_top = true); |
| 234 void scrollIntoViewWithOptions(const ScrollIntoViewOptions&); |
| 231 void scrollIntoViewIfNeeded(bool center_if_needed = true); | 235 void scrollIntoViewIfNeeded(bool center_if_needed = true); |
| 232 | 236 |
| 233 int OffsetLeft(); | 237 int OffsetLeft(); |
| 234 int OffsetTop(); | 238 int OffsetTop(); |
| 235 int OffsetWidth(); | 239 int OffsetWidth(); |
| 236 int OffsetHeight(); | 240 int OffsetHeight(); |
| 237 | 241 |
| 238 Element* OffsetParent(); | 242 Element* OffsetParent(); |
| 239 int clientLeft(); | 243 int clientLeft(); |
| 240 int clientTop(); | 244 int clientTop(); |
| (...skipping 998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1239 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1243 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 1240 static T* Create(const QualifiedName&, Document&) | 1244 static T* Create(const QualifiedName&, Document&) |
| 1241 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1245 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 1242 T* T::Create(const QualifiedName& tagName, Document& document) { \ | 1246 T* T::Create(const QualifiedName& tagName, Document& document) { \ |
| 1243 return new T(tagName, document); \ | 1247 return new T(tagName, document); \ |
| 1244 } | 1248 } |
| 1245 | 1249 |
| 1246 } // namespace blink | 1250 } // namespace blink |
| 1247 | 1251 |
| 1248 #endif // Element_h | 1252 #endif // Element_h |
| OLD | NEW |