blob: b333afebf694f26167787e82d7649dddcfee00c0 (
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
36
37
38
39
|
// Copyright 2017 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_PAINT_TEXT_PAINT_STYLE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_PAINT_TEXT_PAINT_STYLE_H_
#include "third_party/blink/renderer/core/core_export.h"
#include "third_party/blink/renderer/platform/graphics/color.h"
#include "third_party/blink/renderer/platform/wtf/allocator.h"
namespace blink {
class ShadowList;
struct CORE_EXPORT TextPaintStyle {
STACK_ALLOCATED();
public:
Color current_color;
Color fill_color;
Color stroke_color;
Color emphasis_mark_color;
float stroke_width;
const ShadowList* shadow;
bool operator==(const TextPaintStyle& other) {
return current_color == other.current_color &&
fill_color == other.fill_color &&
stroke_color == other.stroke_color &&
emphasis_mark_color == other.emphasis_mark_color &&
stroke_width == other.stroke_width && shadow == other.shadow;
}
bool operator!=(const TextPaintStyle& other) { return !(*this == other); }
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_CORE_PAINT_TEXT_PAINT_STYLE_H_
|