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

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

Issue 2916493002: Make SelectionState enum class (Closed)
Patch Set: 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/InlineTextBoxPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp b/third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp
index 8ad7c16893aa134ac131ba1958df40e5d137931a..2e4a3b60265dfc4c9c2035f08501a625fb8ba4c3 100644
--- a/third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp
@@ -287,9 +287,9 @@ void InlineTextBoxPainter::Paint(const PaintInfo& paint_info,
bool is_printing = paint_info.IsPrinting();
// Determine whether or not we're selected.
- bool have_selection = !is_printing &&
- paint_info.phase != kPaintPhaseTextClip &&
- inline_text_box_.GetSelectionState() != SelectionNone;
+ bool have_selection =
+ !is_printing && paint_info.phase != kPaintPhaseTextClip &&
+ inline_text_box_.GetSelectionState() != SelectionState::kNone;
if (!have_selection && paint_info.phase == kPaintPhaseSelection) {
// When only painting the selection, don't bother to paint if there is none.
return;
« no previous file with comments | « third_party/WebKit/Source/core/paint/BoxClipper.cpp ('k') | third_party/WebKit/Source/core/paint/ListMarkerPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698