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

Unified Diff: third_party/WebKit/Source/core/dom/Element.h

Issue 2650343008: Implement Element.scrollIntoView for scroll-behavior: smooth. (Closed)
Patch Set: Added SimTest. Created 3 years, 10 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: third_party/WebKit/Source/core/dom/Element.h
diff --git a/third_party/WebKit/Source/core/dom/Element.h b/third_party/WebKit/Source/core/dom/Element.h
index 4e02a9918331fa31af5caa34ed10c06e752c7849..f5c2cae37aa4fa18b639168ba485129ada00f024 100644
--- a/third_party/WebKit/Source/core/dom/Element.h
+++ b/third_party/WebKit/Source/core/dom/Element.h
@@ -65,6 +65,8 @@ class ElementIntersectionObserverData;
class PseudoElement;
class ResizeObservation;
class ResizeObserver;
+class ScrollIntoViewOptions;
+class ScrollIntoViewOptionsOrBoolean;
class ScrollState;
class ScrollStateCallback;
class ScrollToOptions;
@@ -217,7 +219,10 @@ class CORE_EXPORT Element : public ContainerNode {
// attributes.
AttributeCollection attributesWithoutUpdate() const;
+ void scrollIntoView(ExceptionState&);
+ void scrollIntoView(ScrollIntoViewOptionsOrBoolean, ExceptionState&);
void scrollIntoView(bool alignToTop = true);
+ void scrollIntoViewWithOptions(const ScrollIntoViewOptions&);
void scrollIntoViewIfNeeded(bool centerIfNeeded = true);
int offsetLeft();

Powered by Google App Engine
This is Rietveld 408576698