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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutReplaced.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/layout/LayoutReplaced.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp b/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp
index 9d8c906057ef2aaa543c2b90e97ccd4b3189f389..7be024f23fa3cb8c5d6fbdd3f6c76ad3d0507020 100644
--- a/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp
@@ -916,7 +916,7 @@ PositionWithAffinity LayoutReplaced::PositionForPoint(
}
LayoutRect LayoutReplaced::LocalSelectionRect() const {
- if (GetSelectionState() == SelectionNone)
+ if (GetSelectionState() == SelectionState::kNone)
return LayoutRect();
if (!InlineBoxWrapper()) {
@@ -944,8 +944,10 @@ void LayoutReplaced::SetSelectionState(SelectionState state) {
if (!InlineBoxWrapper())
return;
- if (CanUpdateSelectionOnRootLineBoxes())
- InlineBoxWrapper()->Root().SetHasSelectedChildren(state != SelectionNone);
+ if (CanUpdateSelectionOnRootLineBoxes()) {
+ InlineBoxWrapper()->Root().SetHasSelectedChildren(state !=
+ SelectionState::kNone);
+ }
}
void LayoutReplaced::IntrinsicSizingInfo::Transpose() {
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698