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, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl
e Inc. All rights reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl
e 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 18 matching lines...) Expand all Loading... |
29 #include "HTMLNames.h" | 29 #include "HTMLNames.h" |
30 #include "core/css/CSSPrimitiveValue.h" | 30 #include "core/css/CSSPrimitiveValue.h" |
31 #include "core/dom/Attribute.h" | 31 #include "core/dom/Attribute.h" |
32 #include "core/dom/Document.h" | 32 #include "core/dom/Document.h" |
33 #include "core/dom/ElementData.h" | 33 #include "core/dom/ElementData.h" |
34 #include "core/dom/SpaceSplitString.h" | 34 #include "core/dom/SpaceSplitString.h" |
35 #include "core/html/CollectionType.h" | 35 #include "core/html/CollectionType.h" |
36 #include "core/page/FocusDirection.h" | 36 #include "core/page/FocusDirection.h" |
37 #include "core/rendering/RegionOversetState.h" | 37 #include "core/rendering/RegionOversetState.h" |
38 #include "platform/scroll/ScrollTypes.h" | 38 #include "platform/scroll/ScrollTypes.h" |
| 39 #include "platform/scroll/ScrollableArea.h" |
39 | 40 |
40 namespace WebCore { | 41 namespace WebCore { |
41 | 42 |
42 class ActiveAnimations; | 43 class ActiveAnimations; |
43 class Attr; | 44 class Attr; |
44 class Attribute; | 45 class Attribute; |
45 class ClientRect; | 46 class ClientRect; |
46 class ClientRectList; | 47 class ClientRectList; |
47 class DOMStringMap; | 48 class DOMStringMap; |
48 class DOMTokenList; | 49 class DOMTokenList; |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 // to the render layer and merge offsetParentForBindings and offsetParent. | 179 // to the render layer and merge offsetParentForBindings and offsetParent. |
179 Element* offsetParentForBindings(); | 180 Element* offsetParentForBindings(); |
180 | 181 |
181 Element* offsetParent(); | 182 Element* offsetParent(); |
182 int clientLeft(); | 183 int clientLeft(); |
183 int clientTop(); | 184 int clientTop(); |
184 int clientWidth(); | 185 int clientWidth(); |
185 int clientHeight(); | 186 int clientHeight(); |
186 virtual int scrollLeft(); | 187 virtual int scrollLeft(); |
187 virtual int scrollTop(); | 188 virtual int scrollTop(); |
188 virtual void setScrollLeft(int); | 189 virtual void setScrollLeft(int, ScrollBehavior = ScrollBehaviorAuto); |
189 virtual void setScrollLeft(const Dictionary& scrollOptionsHorizontal, Except
ionState&); | 190 virtual void setScrollLeft(const Dictionary& scrollOptionsHorizontal, Except
ionState&); |
190 virtual void setScrollTop(int); | 191 virtual void setScrollTop(int, ScrollBehavior = ScrollBehaviorAuto); |
191 virtual void setScrollTop(const Dictionary& scrollOptionsVertical, Exception
State&); | 192 virtual void setScrollTop(const Dictionary& scrollOptionsVertical, Exception
State&); |
192 virtual int scrollWidth(); | 193 virtual int scrollWidth(); |
193 virtual int scrollHeight(); | 194 virtual int scrollHeight(); |
194 | 195 |
195 IntRect boundsInRootViewSpace(); | 196 IntRect boundsInRootViewSpace(); |
196 | 197 |
197 PassRefPtr<ClientRectList> getClientRects(); | 198 PassRefPtr<ClientRectList> getClientRects(); |
198 PassRefPtr<ClientRect> getBoundingClientRect(); | 199 PassRefPtr<ClientRect> getBoundingClientRect(); |
199 | 200 |
200 // Returns the absolute bounding box translated into screen coordinates: | 201 // Returns the absolute bounding box translated into screen coordinates: |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 | 565 |
565 // classAttributeChanged() exists to share code between | 566 // classAttributeChanged() exists to share code between |
566 // parseAttribute (called via setAttribute()) and | 567 // parseAttribute (called via setAttribute()) and |
567 // svgAttributeChanged (called when element.className.baseValue is set) | 568 // svgAttributeChanged (called when element.className.baseValue is set) |
568 void classAttributeChanged(const AtomicString& newClassString); | 569 void classAttributeChanged(const AtomicString& newClassString); |
569 | 570 |
570 PassRefPtr<RenderStyle> originalStyleForRenderer(); | 571 PassRefPtr<RenderStyle> originalStyleForRenderer(); |
571 | 572 |
572 Node* insertAdjacent(const String& where, Node* newChild, ExceptionState&); | 573 Node* insertAdjacent(const String& where, Node* newChild, ExceptionState&); |
573 | 574 |
| 575 virtual void setScrollLeftInternal(int, ScrollBehavior); |
| 576 virtual void setScrollTopInternal(int, ScrollBehavior); |
| 577 |
574 private: | 578 private: |
575 void styleAttributeChanged(const AtomicString& newStyleString, AttributeModi
ficationReason); | 579 void styleAttributeChanged(const AtomicString& newStyleString, AttributeModi
ficationReason); |
576 | 580 |
577 void updatePresentationAttributeStyle(); | 581 void updatePresentationAttributeStyle(); |
578 | 582 |
579 void inlineStyleChanged(); | 583 void inlineStyleChanged(); |
580 PropertySetCSSStyleDeclaration* inlineStyleCSSOMWrapper(); | 584 PropertySetCSSStyleDeclaration* inlineStyleCSSOMWrapper(); |
581 void setInlineStyleFromString(const AtomicString&); | 585 void setInlineStyleFromString(const AtomicString&); |
582 | 586 |
583 StyleRecalcChange recalcOwnStyle(StyleRecalcChange); | 587 StyleRecalcChange recalcOwnStyle(StyleRecalcChange); |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
884 } | 888 } |
885 | 889 |
886 inline bool isShadowHost(const Element* element) | 890 inline bool isShadowHost(const Element* element) |
887 { | 891 { |
888 return element && element->shadow(); | 892 return element && element->shadow(); |
889 } | 893 } |
890 | 894 |
891 } // namespace | 895 } // namespace |
892 | 896 |
893 #endif | 897 #endif |
OLD | NEW |