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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBlock.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/LayoutBlock.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
index 3b785c0c51041c6b1153605af5e8fed14165e6db..bb16fa3e3c90298d1aa4e77b38fb9c510c1c22bb 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
@@ -930,8 +930,10 @@ LayoutUnit LayoutBlock::LogicalRightSelectionOffset(
void LayoutBlock::SetSelectionState(SelectionState state) {
LayoutBox::SetSelectionState(state);
- if (InlineBoxWrapper() && CanUpdateSelectionOnRootLineBoxes())
- InlineBoxWrapper()->Root().SetHasSelectedChildren(state != SelectionNone);
+ if (InlineBoxWrapper() && CanUpdateSelectionOnRootLineBoxes()) {
+ InlineBoxWrapper()->Root().SetHasSelectedChildren(state !=
+ SelectionState::kNone);
+ }
}
TrackedLayoutBoxListHashSet* LayoutBlock::PositionedObjectsInternal() const {

Powered by Google App Engine
This is Rietveld 408576698