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

Unified Diff: Source/core/layout/LayoutTableSection.cpp

Issue 1182053003: Use plain int for borders widths when possible (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « Source/core/layout/LayoutTable.cpp ('k') | Source/core/style/BorderData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutTableSection.cpp
diff --git a/Source/core/layout/LayoutTableSection.cpp b/Source/core/layout/LayoutTableSection.cpp
index 1d2f5d3ef62a6eb5672a828f93eb42b3640817e1..fd923b71ab3e0cd97ec31a082b696ba98d6aa853 100644
--- a/Source/core/layout/LayoutTableSection.cpp
+++ b/Source/core/layout/LayoutTableSection.cpp
@@ -1150,7 +1150,7 @@ int LayoutTableSection::calcBlockDirectionOuterBorder(BlockBorderSide side) cons
if (!m_grid.size() || !totalCols)
return 0;
- unsigned borderWidth = 0;
+ int borderWidth = 0;
const BorderValue& sb = side == BorderBefore ? style()->borderBefore() : style()->borderAfter();
if (sb.style() == BHIDDEN)
@@ -1205,7 +1205,7 @@ int LayoutTableSection::calcInlineDirectionOuterBorder(InlineBorderSide side) co
return 0;
unsigned colIndex = side == BorderStart ? 0 : totalCols - 1;
- unsigned borderWidth = 0;
+ int borderWidth = 0;
const BorderValue& sb = side == BorderStart ? style()->borderStart() : style()->borderEnd();
if (sb.style() == BHIDDEN)
« no previous file with comments | « Source/core/layout/LayoutTable.cpp ('k') | Source/core/style/BorderData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698