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

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

Issue 1647313003: Continue converting to explicit LayoutUnit constructors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@explicitContstructors
Patch Set: Add TODO 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/FloatingObjects.cpp
diff --git a/third_party/WebKit/Source/core/layout/FloatingObjects.cpp b/third_party/WebKit/Source/core/layout/FloatingObjects.cpp
index 3ec05abd4110ea1b86ade94dfaae391d802c694a..5d4b638bbf80b9f1cdc810a627c40c711c4d7202 100644
--- a/third_party/WebKit/Source/core/layout/FloatingObjects.cpp
+++ b/third_party/WebKit/Source/core/layout/FloatingObjects.cpp
@@ -207,14 +207,14 @@ LayoutUnit FloatingObjects::lowestFloatLogicalBottom(FloatingObject::Type floatT
}
}
- LayoutUnit lowestFloatBottom = 0;
+ LayoutUnit lowestFloatBottom;
const FloatingObjectSet& floatingObjectSet = set();
FloatingObjectSetIterator end = floatingObjectSet.end();
if (floatType == FloatingObject::FloatLeftRight) {
FloatingObject* lowestFloatingObjectLeft = nullptr;
FloatingObject* lowestFloatingObjectRight = nullptr;
- LayoutUnit lowestFloatBottomLeft = 0;
- LayoutUnit lowestFloatBottomRight = 0;
+ LayoutUnit lowestFloatBottomLeft;
+ LayoutUnit lowestFloatBottomRight;
for (FloatingObjectSetIterator it = floatingObjectSet.begin(); it != end; ++it) {
FloatingObject& floatingObject = *it->get();
if (floatingObject.isPlaced()) {
« no previous file with comments | « third_party/WebKit/Source/core/layout/ColumnBalancer.h ('k') | third_party/WebKit/Source/core/layout/LayoutBlock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698