| Index: Source/core/dom/Element.cpp
|
| diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
|
| index 778ecdfd7218e53761ddd96d16305c1e385d4335..71191c2d41e13f567b68072831047999af2ca051 100644
|
| --- a/Source/core/dom/Element.cpp
|
| +++ b/Source/core/dom/Element.cpp
|
| @@ -799,7 +799,7 @@ int Element::scrollWidth()
|
| {
|
| document().updateLayoutIgnorePendingStylesheets();
|
| if (LayoutBox* box = layoutBox())
|
| - return adjustLayoutUnitForAbsoluteZoom(box->scrollWidth(), *box).toDouble();
|
| + return adjustLayoutUnitForAbsoluteZoom(box->scrollWidth(), *box).round();
|
| return 0;
|
| }
|
|
|
| @@ -807,7 +807,7 @@ int Element::scrollHeight()
|
| {
|
| document().updateLayoutIgnorePendingStylesheets();
|
| if (LayoutBox* box = layoutBox())
|
| - return adjustLayoutUnitForAbsoluteZoom(box->scrollHeight(), *box).toDouble();
|
| + return adjustLayoutUnitForAbsoluteZoom(box->scrollHeight(), *box).round();
|
| return 0;
|
| }
|
|
|
|
|