Chromium Code Reviews| 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); |
| } |