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

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

Issue 2878823002: Remove 'const' prefix from functions that return BorderValue by value. (Closed)
Patch Set: Created 3 years, 7 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 | « third_party/WebKit/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: third_party/WebKit/Source/core/style/ComputedStyle.cpp
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.cpp b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
index fe7f6757639aeefc7286610dcb53bde9e30cd9e2..e9dff7158b77016f83ec7dea5d537f78d591a8fd 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
@@ -2231,7 +2231,7 @@ Color ComputedStyle::VisitedDependentColor(int color_property) const {
unvisited_color.Alpha());
}
-const BorderValue ComputedStyle::BorderBefore() const {
+BorderValue ComputedStyle::BorderBefore() const {
switch (GetWritingMode()) {
case WritingMode::kHorizontalTb:
return BorderTop();
@@ -2244,7 +2244,7 @@ const BorderValue ComputedStyle::BorderBefore() const {
return BorderTop();
}
-const BorderValue ComputedStyle::BorderAfter() const {
+BorderValue ComputedStyle::BorderAfter() const {
switch (GetWritingMode()) {
case WritingMode::kHorizontalTb:
return BorderBottom();
@@ -2257,13 +2257,13 @@ const BorderValue ComputedStyle::BorderAfter() const {
return BorderBottom();
}
-const BorderValue ComputedStyle::BorderStart() const {
+BorderValue ComputedStyle::BorderStart() const {
if (IsHorizontalWritingMode())
return IsLeftToRightDirection() ? BorderLeft() : BorderRight();
return IsLeftToRightDirection() ? BorderTop() : BorderBottom();
}
-const BorderValue ComputedStyle::BorderEnd() const {
+BorderValue ComputedStyle::BorderEnd() const {
if (IsHorizontalWritingMode())
return IsLeftToRightDirection() ? BorderRight() : BorderLeft();
return IsLeftToRightDirection() ? BorderBottom() : BorderTop();
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698