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

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

Issue 2614883007: Change computed style enums to be prefixed with 'k'. (Closed)
Patch Set: Rebase on ToT. Created 3 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/style/ComputedStyle.cpp
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.cpp b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
index db2929cb904285d2c1b6db398b7b936a5ddaf3a2..e6a194c1150243b641f444baa58259607daa2da6 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
@@ -836,7 +836,7 @@ bool ComputedStyle::diffNeedsFullLayoutAndPaintInvalidation(
// In the collapsing border model, 'hidden' suppresses other borders, while
// 'none' does not, so these style differences can be width differences.
- if ((borderCollapse() == EBorderCollapse::Collapse) &&
+ if ((borderCollapse() == EBorderCollapse::kCollapse) &&
((borderTopStyle() == BorderStyleHidden &&
other.borderTopStyle() == BorderStyleNone) ||
(borderTopStyle() == BorderStyleNone &&
@@ -860,8 +860,8 @@ bool ComputedStyle::diffNeedsFullLayoutAndPaintInvalidation(
return true;
}
- if ((visibility() == EVisibility::Collapse) !=
- (other.visibility() == EVisibility::Collapse))
+ if ((visibility() == EVisibility::kCollapse) !=
+ (other.visibility() == EVisibility::kCollapse))
return true;
if (hasPseudoStyle(PseudoIdScrollbar) !=
@@ -2169,11 +2169,11 @@ Color ComputedStyle::visitedDependentColor(int colorProperty) const {
const BorderValue& ComputedStyle::borderBefore() const {
switch (getWritingMode()) {
- case WritingMode::HorizontalTb:
+ case WritingMode::kHorizontalTb:
return borderTop();
- case WritingMode::VerticalLr:
+ case WritingMode::kVerticalLr:
return borderLeft();
- case WritingMode::VerticalRl:
+ case WritingMode::kVerticalRl:
return borderRight();
}
ASSERT_NOT_REACHED();
@@ -2182,11 +2182,11 @@ const BorderValue& ComputedStyle::borderBefore() const {
const BorderValue& ComputedStyle::borderAfter() const {
switch (getWritingMode()) {
- case WritingMode::HorizontalTb:
+ case WritingMode::kHorizontalTb:
return borderBottom();
- case WritingMode::VerticalLr:
+ case WritingMode::kVerticalLr:
return borderRight();
- case WritingMode::VerticalRl:
+ case WritingMode::kVerticalRl:
return borderLeft();
}
ASSERT_NOT_REACHED();
@@ -2207,11 +2207,11 @@ const BorderValue& ComputedStyle::borderEnd() const {
int ComputedStyle::borderBeforeWidth() const {
switch (getWritingMode()) {
- case WritingMode::HorizontalTb:
+ case WritingMode::kHorizontalTb:
return borderTopWidth();
- case WritingMode::VerticalLr:
+ case WritingMode::kVerticalLr:
return borderLeftWidth();
- case WritingMode::VerticalRl:
+ case WritingMode::kVerticalRl:
return borderRightWidth();
}
ASSERT_NOT_REACHED();
@@ -2220,11 +2220,11 @@ int ComputedStyle::borderBeforeWidth() const {
int ComputedStyle::borderAfterWidth() const {
switch (getWritingMode()) {
- case WritingMode::HorizontalTb:
+ case WritingMode::kHorizontalTb:
return borderBottomWidth();
- case WritingMode::VerticalLr:
+ case WritingMode::kVerticalLr:
return borderRightWidth();
- case WritingMode::VerticalRl:
+ case WritingMode::kVerticalRl:
return borderLeftWidth();
}
ASSERT_NOT_REACHED();
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.h ('k') | third_party/WebKit/Source/core/svg/SVGSVGElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698