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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/dom/Element.h
diff --git a/Source/core/dom/Element.h b/Source/core/dom/Element.h
index c80686971fb8641e7e8c0d9db065e3dd8e55a0f9..50d91968c7db576879a04a59b66d33ed13a9c346 100644
--- a/Source/core/dom/Element.h
+++ b/Source/core/dom/Element.h
@@ -36,6 +36,7 @@
#include "core/page/FocusType.h"
#include "platform/heap/Handle.h"
#include "platform/scroll/ScrollTypes.h"
+#include "platform/scroll/ScrollableArea.h"
namespace WebCore {
@@ -198,10 +199,10 @@ public:
int clientHeight();
virtual int scrollLeft();
virtual int scrollTop();
- virtual void setScrollLeft(int);
- virtual void setScrollLeft(const Dictionary& scrollOptionsHorizontal, ExceptionState&);
- virtual void setScrollTop(int);
- virtual void setScrollTop(const Dictionary& scrollOptionsVertical, ExceptionState&);
+ void setScrollLeft(int newLeft, ScrollBehavior scrollBehavior = ScrollBehaviorAuto) { setScrollLeftInternal(newLeft, scrollBehavior); }
+ void setScrollLeft(const Dictionary& scrollOptionsHorizontal, ExceptionState&);
+ void setScrollTop(int newTop, ScrollBehavior scrollBehavior = ScrollBehaviorAuto) { setScrollTopInternal(newTop, scrollBehavior); }
+ void setScrollTop(const Dictionary& scrollOptionsVertical, ExceptionState&);
virtual int scrollWidth();
virtual int scrollHeight();
@@ -553,6 +554,9 @@ protected:
Node* insertAdjacent(const String& where, Node* newChild, ExceptionState&);
+ virtual void setScrollLeftInternal(int, ScrollBehavior);
+ virtual void setScrollTopInternal(int, ScrollBehavior);
+
private:
bool hasElementFlag(ElementFlags mask) const { return hasRareData() && hasElementFlagInternal(mask); }
void setElementFlag(ElementFlags, bool value = true);
« 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