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

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

Issue 1648573002: Transition to explicit constructors in LayoutUnit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove int constructors for size/point... they result in incorrect conversions until LayoutUnit is … 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/LayoutListMarker.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutListMarker.cpp b/third_party/WebKit/Source/core/layout/LayoutListMarker.cpp
index d5b22f997b5ff35f4c96a8094c20a2aeb9039379..1d105b678912e10a6172bd3f108872ce7ecac732 100644
--- a/third_party/WebKit/Source/core/layout/LayoutListMarker.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutListMarker.cpp
@@ -119,8 +119,8 @@ LayoutRect LayoutListMarker::localSelectionRect() const
? inlineBoxWrapper()->logicalBottom() - root.selectionBottom()
: root.selectionTop() - inlineBoxWrapper()->logicalTop();
return blockStyle->isHorizontalWritingMode()
- ? LayoutRect(0, newLogicalTop, size().width(), root.selectionHeight())
- : LayoutRect(newLogicalTop, 0, root.selectionHeight(), size().height());
+ ? LayoutRect(LayoutUnit(), newLogicalTop, size().width(), root.selectionHeight())
+ : LayoutRect(newLogicalTop, LayoutUnit(), root.selectionHeight(), size().height());
}
void LayoutListMarker::paint(const PaintInfo& paintInfo, const LayoutPoint& paintOffset) const

Powered by Google App Engine
This is Rietveld 408576698