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

Unified Diff: third_party/WebKit/Source/core/paint/TextPainterBase.cpp

Issue 2845773002: Make TextDecoration an enum class. (Closed)
Patch Set: Rebase Created 3 years, 7 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/paint/TextPainterBase.cpp
diff --git a/third_party/WebKit/Source/core/paint/TextPainterBase.cpp b/third_party/WebKit/Source/core/paint/TextPainterBase.cpp
index a53867c91e7c87cf808fbe80031c69d8f945403c..903cde1d6537a10e955a83952f7bbc5cdc236cad 100644
--- a/third_party/WebKit/Source/core/paint/TextPainterBase.cpp
+++ b/third_party/WebKit/Source/core/paint/TextPainterBase.cpp
@@ -175,7 +175,7 @@ void TextPainterBase::PaintDecorationsOnlyLineThrough(
context.SetStrokeThickness(decoration_info.thickness);
for (const AppliedTextDecoration& decoration : decorations) {
TextDecoration lines = decoration.Lines();
- if (lines & kTextDecorationLineThrough) {
+ if (EnumHasFlags(lines, TextDecoration::kLineThrough)) {
const float line_through_offset = 2 * decoration_info.baseline / 3;
AppliedDecorationPainter decoration_painter(
context, decoration_info, line_through_offset, decoration,

Powered by Google App Engine
This is Rietveld 408576698