| Index: third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| index 1f6b5b5071ca4500bf4c890398d96d45b2429af7..adc7d6f538689fc9e5e10004261cb65b56b69546 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| @@ -2592,7 +2592,8 @@ inline LayoutObject* LayoutObject::ParentCrossingFrames() const {
|
|
|
| bool LayoutObject::IsSelectionBorder() const {
|
| SelectionState st = GetSelectionState();
|
| - return st == SelectionStart || st == SelectionEnd || st == SelectionBoth;
|
| + return st == SelectionState::kStart || st == SelectionState::kEnd ||
|
| + st == SelectionState::kStartAndEnd;
|
| }
|
|
|
| inline void LayoutObject::ClearLayoutRootIfNeeded() const {
|
| @@ -3609,7 +3610,7 @@ void LayoutObject::InvalidatePaintForSelection() {
|
| child = child->NextSibling()) {
|
| if (!child->CanBeSelectionLeaf())
|
| continue;
|
| - if (child->GetSelectionState() == SelectionNone)
|
| + if (child->GetSelectionState() == SelectionState::kNone)
|
| continue;
|
| child->SetShouldInvalidateSelection();
|
| }
|
|
|