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

Unified Diff: third_party/WebKit/Source/core/paint/ReplacedPainter.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/ReplacedPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/ReplacedPainter.cpp b/third_party/WebKit/Source/core/paint/ReplacedPainter.cpp
index fae2aa85362a812c7a1530f67f74a822181aa504..dcd5daea13deff5c7b3e8305aa61f43fc8433e93 100644
--- a/third_party/WebKit/Source/core/paint/ReplacedPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/ReplacedPainter.cpp
@@ -75,7 +75,7 @@ void ReplacedPainter::Paint(const PaintInfo& paint_info,
return;
if (paint_info.phase == kPaintPhaseSelection)
- if (layout_replaced_.GetSelectionState() == SelectionNone)
+ if (layout_replaced_.GetSelectionState() == SelectionState::kNone)
return;
{
@@ -119,7 +119,7 @@ void ReplacedPainter::Paint(const PaintInfo& paint_info,
// want it to run right up to the edges of surrounding content.
bool draw_selection_tint =
paint_info.phase == kPaintPhaseForeground &&
- layout_replaced_.GetSelectionState() != SelectionNone &&
+ layout_replaced_.GetSelectionState() != SelectionState::kNone &&
!paint_info.IsPrinting();
if (draw_selection_tint &&
!LayoutObjectDrawingRecorder::UseCachedDrawingIfPossible(
« no previous file with comments | « third_party/WebKit/Source/core/paint/PartPainter.cpp ('k') | third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698