Index: third_party/WebKit/Source/core/editing/LayoutSelection.h |
diff --git a/third_party/WebKit/Source/core/editing/LayoutSelection.h b/third_party/WebKit/Source/core/editing/LayoutSelection.h |
index db981e09b0ed081b14676c869abf101c14952cfc..3b640344e4180d961c0b1b83c26b86dda5b4753b 100644 |
--- a/third_party/WebKit/Source/core/editing/LayoutSelection.h |
+++ b/third_party/WebKit/Source/core/editing/LayoutSelection.h |
@@ -33,12 +33,14 @@ class LayoutView; |
class LayoutSelection final : public GarbageCollected<LayoutSelection> { |
public: |
+ enum class PaintHint { kHide, kKeep, kPaint }; |
+ |
static LayoutSelection* Create(FrameSelection& frame_selection) { |
return new LayoutSelection(frame_selection); |
} |
bool HasPendingSelection() const { return has_pending_selection_; } |
- void SetHasPendingSelection() { has_pending_selection_ = true; } |
+ void SetHasPendingSelection(PaintHint); |
void Commit(LayoutView&); |
IntRect SelectionBounds(); |
@@ -69,6 +71,7 @@ class LayoutSelection final : public GarbageCollected<LayoutSelection> { |
Member<FrameSelection> frame_selection_; |
bool has_pending_selection_ : 1; |
+ bool force_hide_ : 1; |
// The current selection represented as 2 boundaries. |
// Selection boundaries are represented in LayoutView by a tuple |