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

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

Issue 2936283003: Update CSSOM SmoothScroll Web Platform Test (Closed)
Patch Set: Update the tests and idl Created 3 years, 6 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.cpp
diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
index 2bff5dd11379c36c67f38b0ed22ff2aca0c99c7e..afd4948a7544c2692ba044e5eac5fba98e8331c9 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -467,6 +467,9 @@ void Element::scrollIntoView(ScrollIntoViewOptionsOrBoolean arg) {
options.behavior() == "smooth") {
options.setBehavior("instant");
}
+ } else if (arg.isNull()) {
foolip 2017/06/16 08:20:33 This can be removed again because the argument can
+ options.setBlock("start");
+ options.setInlinePosition("nearest");
}
scrollIntoViewWithOptions(options);
}

Powered by Google App Engine
This is Rietveld 408576698