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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyleConstants.h

Issue 2914613002: Add keyword_subset field template and generate text-decoration-line. (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
Index: third_party/WebKit/Source/core/style/ComputedStyleConstants.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyleConstants.h b/third_party/WebKit/Source/core/style/ComputedStyleConstants.h
index 67a66e06be8b810017c60e9d6ed14df5f2e92691..1df26af1e88bde04c5a02f54335893f3fa532a74 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyleConstants.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyleConstants.h
@@ -202,27 +202,6 @@ enum QuoteType { OPEN_QUOTE, CLOSE_QUOTE, NO_OPEN_QUOTE, NO_CLOSE_QUOTE };
enum EAnimPlayState { kAnimPlayStatePlaying, kAnimPlayStatePaused };
-static const size_t kTextDecorationBits = 4;
-enum class TextDecoration : unsigned {
- kNone = 0x0,
- kUnderline = 0x1,
- kOverline = 0x2,
- kLineThrough = 0x4,
- kBlink = 0x8
-};
-inline TextDecoration operator|(TextDecoration a, TextDecoration b) {
- return static_cast<TextDecoration>(static_cast<unsigned>(a) |
- static_cast<unsigned>(b));
-}
-inline TextDecoration& operator|=(TextDecoration& a, TextDecoration b) {
- return a = static_cast<TextDecoration>(static_cast<unsigned>(a) |
- static_cast<unsigned>(b));
-}
-inline TextDecoration& operator^=(TextDecoration& a, TextDecoration b) {
- return a = static_cast<TextDecoration>(static_cast<unsigned>(a) ^
- static_cast<unsigned>(b));
-}
-
enum TextDecorationStyle {
kTextDecorationStyleSolid,
kTextDecorationStyleDouble,

Powered by Google App Engine
This is Rietveld 408576698