Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: Source/core/dom/Element.h

Issue 134443003: Implement CSSOM Smooth Scroll API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
29 #include "core/HTMLNames.h" 29 #include "core/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/ContainerNode.h" 32 #include "core/dom/ContainerNode.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/FocusType.h" 36 #include "core/page/FocusType.h"
37 #include "platform/heap/Handle.h" 37 #include "platform/heap/Handle.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 CSSStyleDeclaration; 46 class CSSStyleDeclaration;
46 class ClientRect; 47 class ClientRect;
47 class ClientRectList; 48 class ClientRectList;
48 class CustomElementDefinition; 49 class CustomElementDefinition;
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // to the render layer and merge offsetParentForBindings and offsetParent. 192 // to the render layer and merge offsetParentForBindings and offsetParent.
192 Element* offsetParentForBindings(); 193 Element* offsetParentForBindings();
193 194
194 Element* offsetParent(); 195 Element* offsetParent();
195 int clientLeft(); 196 int clientLeft();
196 int clientTop(); 197 int clientTop();
197 int clientWidth(); 198 int clientWidth();
198 int clientHeight(); 199 int clientHeight();
199 virtual int scrollLeft(); 200 virtual int scrollLeft();
200 virtual int scrollTop(); 201 virtual int scrollTop();
201 virtual void setScrollLeft(int); 202 void setScrollLeft(int newLeft, ScrollBehavior scrollBehavior = ScrollBehavi orAuto) { setScrollLeftInternal(newLeft, scrollBehavior); }
202 virtual void setScrollLeft(const Dictionary& scrollOptionsHorizontal, Except ionState&); 203 void setScrollLeft(const Dictionary& scrollOptionsHorizontal, ExceptionState &);
203 virtual void setScrollTop(int); 204 void setScrollTop(int newTop, ScrollBehavior scrollBehavior = ScrollBehavior Auto) { setScrollTopInternal(newTop, scrollBehavior); }
204 virtual void setScrollTop(const Dictionary& scrollOptionsVertical, Exception State&); 205 void setScrollTop(const Dictionary& scrollOptionsVertical, ExceptionState&);
205 virtual int scrollWidth(); 206 virtual int scrollWidth();
206 virtual int scrollHeight(); 207 virtual int scrollHeight();
207 208
208 IntRect boundsInRootViewSpace(); 209 IntRect boundsInRootViewSpace();
209 210
210 PassRefPtrWillBeRawPtr<ClientRectList> getClientRects(); 211 PassRefPtrWillBeRawPtr<ClientRectList> getClientRects();
211 PassRefPtrWillBeRawPtr<ClientRect> getBoundingClientRect(); 212 PassRefPtrWillBeRawPtr<ClientRect> getBoundingClientRect();
212 213
213 // Returns the absolute bounding box translated into screen coordinates: 214 // Returns the absolute bounding box translated into screen coordinates:
214 IntRect screenRect() const; 215 IntRect screenRect() const;
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 547
547 // classAttributeChanged() exists to share code between 548 // classAttributeChanged() exists to share code between
548 // parseAttribute (called via setAttribute()) and 549 // parseAttribute (called via setAttribute()) and
549 // svgAttributeChanged (called when element.className.baseValue is set) 550 // svgAttributeChanged (called when element.className.baseValue is set)
550 void classAttributeChanged(const AtomicString& newClassString); 551 void classAttributeChanged(const AtomicString& newClassString);
551 552
552 PassRefPtr<RenderStyle> originalStyleForRenderer(); 553 PassRefPtr<RenderStyle> originalStyleForRenderer();
553 554
554 Node* insertAdjacent(const String& where, Node* newChild, ExceptionState&); 555 Node* insertAdjacent(const String& where, Node* newChild, ExceptionState&);
555 556
557 virtual void setScrollLeftInternal(int, ScrollBehavior);
558 virtual void setScrollTopInternal(int, ScrollBehavior);
559
556 private: 560 private:
557 bool hasElementFlag(ElementFlags mask) const { return hasRareData() && hasEl ementFlagInternal(mask); } 561 bool hasElementFlag(ElementFlags mask) const { return hasRareData() && hasEl ementFlagInternal(mask); }
558 void setElementFlag(ElementFlags, bool value = true); 562 void setElementFlag(ElementFlags, bool value = true);
559 void clearElementFlag(ElementFlags); 563 void clearElementFlag(ElementFlags);
560 bool hasElementFlagInternal(ElementFlags) const; 564 bool hasElementFlagInternal(ElementFlags) const;
561 565
562 void styleAttributeChanged(const AtomicString& newStyleString, AttributeModi ficationReason); 566 void styleAttributeChanged(const AtomicString& newStyleString, AttributeModi ficationReason);
563 567
564 void updatePresentationAttributeStyle(); 568 void updatePresentationAttributeStyle();
565 569
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
875 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) 879 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&)
876 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 880 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
877 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \ 881 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \
878 { \ 882 { \
879 return adoptRefWillBeNoop(new T(tagName, document)); \ 883 return adoptRefWillBeNoop(new T(tagName, document)); \
880 } 884 }
881 885
882 } // namespace 886 } // namespace
883 887
884 #endif 888 #endif
OLDNEW
« no previous file with comments | « LayoutTests/fast/scroll-behavior/subframe-interrupted-scroll-expected.txt ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698