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

Unified Diff: Source/core/style/ComputedStyle.cpp

Issue 1183163002: Return ints from border{Before,After,Start,End}Width (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/style/ComputedStyle.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/style/ComputedStyle.cpp
diff --git a/Source/core/style/ComputedStyle.cpp b/Source/core/style/ComputedStyle.cpp
index 5cc7e9a8c1ae9c40f2f265d82b3d3381305bafd1..7fe135e88cc6309d1383f31041608db2d2e06f26 100644
--- a/Source/core/style/ComputedStyle.cpp
+++ b/Source/core/style/ComputedStyle.cpp
@@ -1525,7 +1525,7 @@ const BorderValue& ComputedStyle::borderEnd() const
return isLeftToRightDirection() ? borderBottom() : borderTop();
}
-unsigned short ComputedStyle::borderBeforeWidth() const
+int ComputedStyle::borderBeforeWidth() const
{
switch (writingMode()) {
case TopToBottomWritingMode:
@@ -1541,7 +1541,7 @@ unsigned short ComputedStyle::borderBeforeWidth() const
return borderTopWidth();
}
-unsigned short ComputedStyle::borderAfterWidth() const
+int ComputedStyle::borderAfterWidth() const
{
switch (writingMode()) {
case TopToBottomWritingMode:
@@ -1557,14 +1557,14 @@ unsigned short ComputedStyle::borderAfterWidth() const
return borderBottomWidth();
}
-unsigned short ComputedStyle::borderStartWidth() const
+int ComputedStyle::borderStartWidth() const
{
if (isHorizontalWritingMode())
return isLeftToRightDirection() ? borderLeftWidth() : borderRightWidth();
return isLeftToRightDirection() ? borderTopWidth() : borderBottomWidth();
}
-unsigned short ComputedStyle::borderEndWidth() const
+int ComputedStyle::borderEndWidth() const
{
if (isHorizontalWritingMode())
return isLeftToRightDirection() ? borderRightWidth() : borderLeftWidth();
« no previous file with comments | « Source/core/style/ComputedStyle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698