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

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

Issue 2394273006: Add CSS support for text-decoration-skip (Closed)
Patch Set: Histograms typo fixed, DCHECK Created 4 years, 2 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 2ddb80fae9f6a40f71d30510116d6827e75ad9a0..2e0b83e810fdafcc4d0dd706a091a814d780d949 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyleConstants.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyleConstants.h
@@ -374,6 +374,22 @@ enum TextDecorationStyle {
TextDecorationStyleWavy
};
+static const size_t TextDecorationSkipBits = 3;
+enum TextDecorationSkip {
+ TextDecorationSkipNone = 0x0,
+ TextDecorationSkipObjects = 0x1,
+ TextDecorationSkipInk = 0x2
+};
+inline TextDecorationSkip operator|(TextDecorationSkip a,
+ TextDecorationSkip b) {
+ return TextDecorationSkip(static_cast<unsigned>(a) |
+ static_cast<unsigned>(b));
+}
+inline TextDecorationSkip& operator|=(TextDecorationSkip& a,
+ TextDecorationSkip b) {
+ return a = a | b;
+}
+
enum TextAlignLast {
TextAlignLastAuto,
TextAlignLastStart,
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.cpp ('k') | third_party/WebKit/Source/core/style/StyleRareInheritedData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698