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

Unified Diff: third_party/WebKit/Source/core/layout/PaintInvalidationState.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/layout/PaintInvalidationState.cpp
diff --git a/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp b/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp
index 6ba4b70bf1d7789ab23e74629e59e1d1209df7a3..a1a395249ffb86affc62651aae984b2faebcf49c 100644
--- a/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp
+++ b/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp
@@ -251,7 +251,7 @@ void PaintInvalidationState::updateForCurrentObject(
EPosition position = m_currentObject.styleRef().position();
- if (position == FixedPosition) {
+ if (position == EPosition::kFixed) {
// Use slow path to get the offset of the fixed-position, and enable fast
// path for descendants.
FloatPoint fixedOffset = m_currentObject.localToAncestorPoint(
@@ -275,7 +275,7 @@ void PaintInvalidationState::updateForCurrentObject(
return;
}
- if (position == AbsolutePosition) {
+ if (position == EPosition::kAbsolute) {
m_cachedOffsetsEnabled = m_cachedOffsetsForAbsolutePositionEnabled;
if (!m_cachedOffsetsEnabled)
return;
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutView.cpp ('k') | third_party/WebKit/Source/core/layout/TextAutosizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698