Index: third_party/WebKit/Source/core/layout/LayoutTextControlSingleLine.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutTextControlSingleLine.cpp b/third_party/WebKit/Source/core/layout/LayoutTextControlSingleLine.cpp |
index 3affbcf2f759d4aa4c7ef8d80ca284e7152b5232..ddcc00e33cc50c04dc97abf6a1e2dfaae794a703 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutTextControlSingleLine.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutTextControlSingleLine.cpp |
@@ -391,14 +391,14 @@ LayoutUnit LayoutTextControlSingleLine::scrollHeight() const |
LayoutUnit LayoutTextControlSingleLine::scrollLeft() const |
{ |
if (innerEditorElement()) |
- return innerEditorElement()->scrollLeft(); |
+ return LayoutUnit(innerEditorElement()->scrollLeft()); |
return LayoutBlockFlow::scrollLeft(); |
} |
LayoutUnit LayoutTextControlSingleLine::scrollTop() const |
{ |
if (innerEditorElement()) |
- return innerEditorElement()->scrollTop(); |
+ return LayoutUnit(innerEditorElement()->scrollTop()); |
return LayoutBlockFlow::scrollTop(); |
} |