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

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

Issue 1653673002: Even more explicit LayoutUnit conversion (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@moarConstructors
Patch Set: address comments 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 644ae0e917022bc02676ba6c482c56f9bb8fe68b..73f4bbb8e0d2d7e920249a15704fe15036bbf5b6 100644
--- a/third_party/WebKit/Source/core/layout/LayoutListMarker.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutListMarker.cpp
@@ -228,7 +228,7 @@ void LayoutListMarker::computePreferredLogicalWidths()
const Font& font = style()->font();
- LayoutUnit logicalWidth = 0;
+ LayoutUnit logicalWidth;
switch (listStyleCategory()) {
case ListStyleCategory::None:
break;
@@ -252,8 +252,8 @@ void LayoutListMarker::updateMargins()
{
const FontMetrics& fontMetrics = style()->fontMetrics();
- LayoutUnit marginStart = 0;
- LayoutUnit marginEnd = 0;
+ LayoutUnit marginStart;
+ LayoutUnit marginEnd;
if (isInside()) {
if (isImage()) {
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutListItem.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutMedia.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698