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

Unified Diff: third_party/WebKit/Source/core/paint/FrameSetPainter.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/paint/FrameSetPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/FrameSetPainter.cpp b/third_party/WebKit/Source/core/paint/FrameSetPainter.cpp
index 3ca3c37049e61e9cfdd3e74ad47e5122e6a220fe..8d73e4304568b41d50117201507b705b1683d526 100644
--- a/third_party/WebKit/Source/core/paint/FrameSetPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/FrameSetPainter.cpp
@@ -82,9 +82,9 @@ void FrameSetPainter::paintBorders(const PaintInfo& paintInfo, const LayoutPoint
LayoutObject* child = m_layoutFrameSet.firstChild();
size_t rows = m_layoutFrameSet.rows().m_sizes.size();
size_t cols = m_layoutFrameSet.columns().m_sizes.size();
- LayoutUnit yPos = 0;
+ LayoutUnit yPos;
for (size_t r = 0; r < rows; r++) {
- LayoutUnit xPos = 0;
+ LayoutUnit xPos;
for (size_t c = 0; c < cols; c++) {
xPos += m_layoutFrameSet.columns().m_sizes[c];
if (shouldPaintBorderAfter(m_layoutFrameSet.columns(), c)) {

Powered by Google App Engine
This is Rietveld 408576698