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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBox.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/LayoutBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
index da017f7e1c8ef06127f5e0919130371e52a08539..da87d16bbd6a84fd1d2535ed9e0c73252731b235 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -2403,7 +2403,8 @@ bool LayoutBox::NeedsForcedBreakBefore(
}
bool LayoutBox::PaintedOutputOfObjectHasNoEffectRegardlessOfSize() const {
- if (HasNonCompositedScrollbars() || GetSelectionState() != SelectionNone ||
+ if (HasNonCompositedScrollbars() ||
+ GetSelectionState() != SelectionState::kNone ||
HasBoxDecorationBackground() || StyleRef().HasBoxDecorations() ||
StyleRef().HasVisualOverflowingEffect())
return false;

Powered by Google App Engine
This is Rietveld 408576698