Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTextControlSingleLine.cpp

Issue 1656743002: Removing more implicit LayoutUnit construction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix additional test Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
}

Powered by Google App Engine
This is Rietveld 408576698