| Index: Source/core/dom/Element.cpp
|
| diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
|
| index 4813badfa6d09a11e38a60368f9a39cb94f5f401..4e69deb1124d0c7aea28c89db8e2b0b366a524e0 100644
|
| --- a/Source/core/dom/Element.cpp
|
| +++ b/Source/core/dom/Element.cpp
|
| @@ -719,7 +719,7 @@ int Element::scrollWidth()
|
| {
|
| document().updateLayoutIgnorePendingStylesheets();
|
| if (LayoutBox* box = layoutBox())
|
| - return adjustLayoutUnitForAbsoluteZoom(box->scrollWidth(), *box).toDouble();
|
| + return adjustLayoutUnitForAbsoluteZoom(box->scrollWidth(), *box).round();
|
| return 0;
|
| }
|
|
|
| @@ -727,7 +727,7 @@ int Element::scrollHeight()
|
| {
|
| document().updateLayoutIgnorePendingStylesheets();
|
| if (LayoutBox* box = layoutBox())
|
| - return adjustLayoutUnitForAbsoluteZoom(box->scrollHeight(), *box).toDouble();
|
| + return adjustLayoutUnitForAbsoluteZoom(box->scrollHeight(), *box).round();
|
| return 0;
|
| }
|
|
|
|
|