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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.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/css/resolver/StyleBuilderCustom.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp b/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp
index af61d7da5af689332e9d831f5d4bae5b2415cdd2..2baa7e91459bd6918ceca8814865baa7e6b87b8e 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp
@@ -475,14 +475,14 @@ void StyleBuilderFunctions::applyValueCSSPropertyTextAlign(
state.style()->setTextAlign(state.parentStyle()->textAlign());
else
state.style()->setTextAlign(identValue.convertTo<ETextAlign>());
- } else if (state.parentStyle()->textAlign() == ETextAlign::Start) {
+ } else if (state.parentStyle()->textAlign() == ETextAlign::kStart) {
state.style()->setTextAlign(state.parentStyle()->isLeftToRightDirection()
- ? ETextAlign::Left
- : ETextAlign::Right);
- } else if (state.parentStyle()->textAlign() == ETextAlign::End) {
+ ? ETextAlign::kLeft
+ : ETextAlign::kRight);
+ } else if (state.parentStyle()->textAlign() == ETextAlign::kEnd) {
state.style()->setTextAlign(state.parentStyle()->isLeftToRightDirection()
- ? ETextAlign::Right
- : ETextAlign::Left);
+ ? ETextAlign::kRight
+ : ETextAlign::kLeft);
} else {
state.style()->setTextAlign(state.parentStyle()->textAlign());
}
@@ -758,7 +758,7 @@ void StyleBuilderFunctions::applyValueCSSPropertyContent(
ContentData::create(state.styleImage(CSSPropertyContent, *item));
} else if (item->isCounterValue()) {
const CSSCounterValue* counterValue = toCSSCounterValue(item.get());
- EListStyleType listStyleType = EListStyleType::None;
+ EListStyleType listStyleType = EListStyleType::kNone;
CSSValueID listStyleIdent = counterValue->listStyle();
if (listStyleIdent != CSSValueNone)
listStyleType =

Powered by Google App Engine
This is Rietveld 408576698