summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/style/text_decoration_thickness.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/style/text_decoration_thickness.h')
-rw-r--r--chromium/third_party/blink/renderer/core/style/text_decoration_thickness.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/core/style/text_decoration_thickness.h b/chromium/third_party/blink/renderer/core/style/text_decoration_thickness.h
new file mode 100644
index 00000000000..132967ad6fe
--- /dev/null
+++ b/chromium/third_party/blink/renderer/core/style/text_decoration_thickness.h
@@ -0,0 +1,35 @@
+// Copyright 2020 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_STYLE_TEXT_DECORATION_THICKNESS_H_
+#define THIRD_PARTY_BLINK_RENDERER_CORE_STYLE_TEXT_DECORATION_THICKNESS_H_
+
+#include "third_party/blink/renderer/core/css_value_keywords.h"
+#include "third_party/blink/renderer/platform/geometry/length.h"
+
+namespace blink {
+
+class TextDecorationThickness {
+ DISALLOW_NEW();
+
+ public:
+ TextDecorationThickness();
+
+ explicit TextDecorationThickness(const Length& length);
+
+ explicit TextDecorationThickness(CSSValueID from_font_keyword);
+
+ bool IsFromFont() const { return thickness_from_font_; }
+ Length Thickness() const;
+
+ bool operator==(const TextDecorationThickness&) const;
+
+ private:
+ Length thickness_;
+ bool thickness_from_font_{false};
+};
+
+} // namespace blink
+
+#endif // THIRD_PARTY_BLINK_RENDERER_CORE_STYLE_TEXT_DECORATION_THICKNESS_H_