blob: 132967ad6feb8c57da88b14d70f260eb20cc40c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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_
|