| Index: Source/core/dom/Element.cpp
|
| diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
|
| index 438e0a2b670744d44c94116f38379b5e31d74ef4..9a028feda3fa93351938554e53c44e05ce8ded0f 100644
|
| --- a/Source/core/dom/Element.cpp
|
| +++ b/Source/core/dom/Element.cpp
|
| @@ -689,7 +689,7 @@ void Element::setScrollLeft(int newLeft)
|
|
|
| if (document().documentElement() != this) {
|
| if (RenderBox* rend = renderBox())
|
| - rend->setScrollLeft(roundf(newLeft * rend->style()->effectiveZoom()));
|
| + rend->setScrollLeft(LayoutUnit::fromFloatRound(newLeft * rend->style()->effectiveZoom()));
|
| return;
|
| }
|
|
|
| @@ -735,7 +735,7 @@ void Element::setScrollTop(int newTop)
|
|
|
| if (document().documentElement() != this) {
|
| if (RenderBox* rend = renderBox())
|
| - rend->setScrollTop(roundf(newTop * rend->style()->effectiveZoom()));
|
| + rend->setScrollTop(LayoutUnit::fromFloatRound(newTop * rend->style()->effectiveZoom()));
|
| return;
|
| }
|
|
|
|
|