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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp

Issue 2667493002: Changed EPosition to an enum class and renamed its members (Closed)
Patch Set: Rebase Created 3 years, 10 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/paint/PaintLayerScrollableArea.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
index bd32373f2695113dee0ca0ebe2c5c22554464010..8f1d9acac3f1f866fcc2001cdff6ba03eaa1ad17 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
@@ -1513,7 +1513,8 @@ void PaintLayerScrollableArea::updateResizerStyle() {
void PaintLayerScrollableArea::invalidateAllStickyConstraints() {
if (PaintLayerScrollableAreaRareData* d = rareData()) {
for (PaintLayer* stickyLayer : d->m_stickyConstraintsMap.keys()) {
- if (stickyLayer->layoutObject()->style()->position() == StickyPosition)
+ if (stickyLayer->layoutObject()->style()->position() ==
+ EPosition::kSticky)
stickyLayer->setNeedsCompositingInputsUpdate();
}
d->m_stickyConstraintsMap.clear();
@@ -1526,7 +1527,7 @@ void PaintLayerScrollableArea::invalidateStickyConstraintsFor(
if (PaintLayerScrollableAreaRareData* d = rareData()) {
d->m_stickyConstraintsMap.remove(layer);
if (needsCompositingUpdate &&
- layer->layoutObject()->style()->position() == StickyPosition)
+ layer->layoutObject()->style()->position() == EPosition::kSticky)
layer->setNeedsCompositingInputsUpdate();
}
}

Powered by Google App Engine
This is Rietveld 408576698