OLD | NEW |
---|---|
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/editing/markers/StyleableMarker.h" | 5 #include "core/editing/markers/StyleableMarker.h" |
6 | 6 |
7 namespace blink { | 7 namespace blink { |
8 | 8 |
9 StyleableMarker::StyleableMarker(unsigned start_offset, | 9 StyleableMarker::StyleableMarker(unsigned start_offset, |
10 unsigned end_offset, | 10 unsigned end_offset, |
(...skipping 12 matching lines...) Expand all Loading... | |
23 bool StyleableMarker::IsThick() const { | 23 bool StyleableMarker::IsThick() const { |
24 return thickness_ == Thickness::kThick; | 24 return thickness_ == Thickness::kThick; |
25 } | 25 } |
26 | 26 |
27 Color StyleableMarker::BackgroundColor() const { | 27 Color StyleableMarker::BackgroundColor() const { |
28 return background_color_; | 28 return background_color_; |
29 } | 29 } |
30 | 30 |
31 bool IsStyleableMarker(const DocumentMarker& marker) { | 31 bool IsStyleableMarker(const DocumentMarker& marker) { |
32 DocumentMarker::MarkerType type = marker.GetType(); | 32 DocumentMarker::MarkerType type = marker.GetType(); |
33 return type == DocumentMarker::kComposition; | 33 return type == DocumentMarker::kComposition || |
34 type == DocumentMarker::kActiveSuggestion; | |
yosin_UTC9
2017/06/06 01:27:48
Could you add a test for IsStylableMaker() with Ac
| |
34 } | 35 } |
35 | 36 |
36 } // namespace blink | 37 } // namespace blink |
OLD | NEW |