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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTable.h

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/LayoutTable.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutTable.h b/third_party/WebKit/Source/core/layout/LayoutTable.h
index 529dacd6f4774436a98b77b6de5702a8a849e004..7ea48f21d1b43938ab302742ae1409da56e399cc 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTable.h
+++ b/third_party/WebKit/Source/core/layout/LayoutTable.h
@@ -260,7 +260,7 @@ public:
if (unsigned effectiveColumnCount = numEffCols())
return static_cast<LayoutUnit>(effectiveColumnCount + 1) * hBorderSpacing();
- return 0;
+ return LayoutUnit();
}
// The collapsing border model dissallows paddings on table, which is why we
@@ -272,8 +272,8 @@ public:
LayoutUnit paddingRight() const override;
// Override paddingStart/End to return pixel values to match behavor of LayoutTableCell.
- LayoutUnit paddingEnd() const override { return static_cast<int>(LayoutBlock::paddingEnd()); }
- LayoutUnit paddingStart() const override { return static_cast<int>(LayoutBlock::paddingStart()); }
+ LayoutUnit paddingEnd() const override { return LayoutUnit(static_cast<int>(LayoutBlock::paddingEnd())); }
+ LayoutUnit paddingStart() const override { return LayoutUnit(static_cast<int>(LayoutBlock::paddingStart())); }
LayoutUnit bordersPaddingAndSpacingInRowDirection() const
{
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutState.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTable.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698