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

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

Issue 1574933002: Changed type of border-width longhands from unsigned to float. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added trivial tests safe to rebaseline to TestExpectations Created 4 years, 10 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.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTable.cpp b/third_party/WebKit/Source/core/layout/LayoutTable.cpp
index 1fd05ec5287a700b9612cf03b69bed5c9ed07ddc..696ce3a024377141f6415316e7877d95a14de9a2 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTable.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTable.cpp
@@ -918,7 +918,7 @@ int LayoutTable::calcBorderStart() const
if (!numEffCols())
return 0;
- int borderWidth = 0;
+ float borderWidth = 0;
const BorderValue& tableStartBorder = style()->borderStart();
if (tableStartBorder.style() == BHIDDEN)
@@ -972,7 +972,7 @@ int LayoutTable::calcBorderEnd() const
if (!numEffCols())
return 0;
- int borderWidth = 0;
+ float borderWidth = 0;
const BorderValue& tableEndBorder = style()->borderEnd();
if (tableEndBorder.style() == BHIDDEN)
@@ -1026,7 +1026,7 @@ void LayoutTable::recalcBordersInRowDirection()
m_borderEnd = calcBorderEnd();
}
-int LayoutTable::borderBefore() const
+LayoutUnit LayoutTable::borderBefore() const
{
if (collapseBorders()) {
recalcSectionsIfNeeded();
@@ -1035,7 +1035,7 @@ int LayoutTable::borderBefore() const
return LayoutBlock::borderBefore();
}
-int LayoutTable::borderAfter() const
+LayoutUnit LayoutTable::borderAfter() const
{
if (collapseBorders()) {
recalcSectionsIfNeeded();
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTable.h ('k') | third_party/WebKit/Source/core/layout/LayoutTableCell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698