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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutListMarker.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/LayoutListMarker.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutListMarker.cpp b/third_party/WebKit/Source/core/layout/LayoutListMarker.cpp
index 524bb08ecd76528876502159a3a4c10ee8c7264e..91e24ed0dbc3d1e7a6e24609ff0b9abdd6b70a10 100644
--- a/third_party/WebKit/Source/core/layout/LayoutListMarker.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutListMarker.cpp
@@ -484,8 +484,10 @@ void LayoutListMarker::SetSelectionState(SelectionState state) {
// base class call.
LayoutBox::SetSelectionState(state);
- if (InlineBoxWrapper() && CanUpdateSelectionOnRootLineBoxes())
- InlineBoxWrapper()->Root().SetHasSelectedChildren(state != SelectionNone);
+ if (InlineBoxWrapper() && CanUpdateSelectionOnRootLineBoxes()) {
+ InlineBoxWrapper()->Root().SetHasSelectedChildren(state !=
+ SelectionState::kNone);
+ }
}
void LayoutListMarker::ListItemStyleDidChange() {
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698