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

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

Issue 2882103002: Make ELineBreak an enum class. (Closed)
Patch Set: Rebase 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
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 23ccc5c2f19d7cd6ad1ec263e48846cf1e9f7e9b..698224a3a428d6c30ff3bbdbba4b64a853ee8feb 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
@@ -1579,16 +1579,16 @@ void ComputedStyle::ClearResetDirectives() {
AtomicString ComputedStyle::LocaleForLineBreakIterator() const {
LineBreakIteratorMode mode = LineBreakIteratorMode::kDefault;
switch (GetLineBreak()) {
- case kLineBreakAuto:
- case kLineBreakAfterWhiteSpace:
+ case LineBreak::kAuto:
+ case LineBreak::kAfterWhiteSpace:
return Locale();
- case kLineBreakNormal:
+ case LineBreak::kNormal:
mode = LineBreakIteratorMode::kNormal;
break;
- case kLineBreakStrict:
+ case LineBreak::kStrict:
mode = LineBreakIteratorMode::kStrict;
break;
- case kLineBreakLoose:
+ case LineBreak::kLoose:
mode = LineBreakIteratorMode::kLoose;
break;
}
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.h ('k') | third_party/WebKit/Source/core/style/ComputedStyleConstants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698