| Index: Source/core/html/HTMLBodyElement.cpp
|
| diff --git a/Source/core/html/HTMLBodyElement.cpp b/Source/core/html/HTMLBodyElement.cpp
|
| index 5702114e9b3a8bd42ddfbcd9c6ecac2499acbfa6..7c2e577627db6efaf69d604b253a3f93a564310e 100644
|
| --- a/Source/core/html/HTMLBodyElement.cpp
|
| +++ b/Source/core/html/HTMLBodyElement.cpp
|
| @@ -247,6 +247,9 @@ void HTMLBodyElement::setScrollLeft(double scrollLeft)
|
| Document& document = this->document();
|
| document.updateLayoutIgnorePendingStylesheets();
|
|
|
| + if (std::isnan(scrollLeft))
|
| + return;
|
| +
|
| if (RuntimeEnabledFeatures::scrollTopLeftInteropEnabled()) {
|
| RenderBox* render = renderBox();
|
| if (!render)
|
| @@ -294,6 +297,9 @@ void HTMLBodyElement::setScrollTop(double scrollTop)
|
| Document& document = this->document();
|
| document.updateLayoutIgnorePendingStylesheets();
|
|
|
| + if (std::isnan(scrollTop))
|
| + return;
|
| +
|
| if (RuntimeEnabledFeatures::scrollTopLeftInteropEnabled()) {
|
| RenderBox* render = renderBox();
|
| if (!render)
|
|
|