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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.h

Issue 2095013003: Changes in DisplayItemClient for spv2 paint invalidation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes to DisplayItemClient Created 4 years, 6 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/LayoutObject.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.h b/third_party/WebKit/Source/core/layout/LayoutObject.h
index 92b66c90f7ff302682fc13bc8b6d3c7cbb2375a1..d977e9bfc60bdcfca01b88e93a6b1db13bb0794e 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h
@@ -1677,6 +1677,17 @@ private:
static LayoutPoint uninitializedPaintOffset() { return LayoutPoint(LayoutUnit::max(), LayoutUnit::max()); }
+ // This stores the position in the paint invalidation backing's coordinate.
+ // It is used to detect layoutObject shifts that forces a full invalidation.
+ // This point does *not* account for composited scrolling. See adjustInvalidationRectForCompositedScrolling().
+ // For slimmingPaintInvalidation, this stores the previous paint offset.
+ // TODO(wangxianzhu): Rename this to m_previousPaintOffset when we enable slimmingPaintInvalidation.
+ LayoutPoint m_previousPositionFromPaintInvalidationBacking;
+
+ // This stores the paint invalidation rect from the previous frame. This rect does *not* account for composited scrolling. See
+ // adjustInvalidationRectForCompositedScrolling().
+ LayoutRect m_previousPaintInvalidationRect;
+
RefPtr<ComputedStyle> m_style;
// Oilpan: This untraced pointer to the owning Node is considered safe.
@@ -1956,19 +1967,6 @@ private:
private:
// Store state between styleWillChange and styleDidChange
static bool s_affectsParentBlock;
-
- // This stores the paint invalidation rect from the previous frame. This rect does *not* account for composited scrolling. See
- // adjustInvalidationRectForCompositedScrolling().
- LayoutRect m_previousPaintInvalidationRect;
-
- // This stores the position in the paint invalidation backing's coordinate.
- // It is used to detect layoutObject shifts that forces a full invalidation.
- // This point does *not* account for composited scrolling. See adjustInvalidationRectForCompositedScrolling().
- // For slimmingPaintInvalidation, this stores the previous paint offset.
- // TODO(wangxianzhu): Rename this to m_previousPaintOffset when we enable slimmingPaintInvalidation.
- LayoutPoint m_previousPositionFromPaintInvalidationBacking;
-
- DISPLAY_ITEM_CACHE_STATUS_IMPLEMENTATION
};
// FIXME: remove this once the layout object lifecycle ASSERTS are no longer hit.

Powered by Google App Engine
This is Rietveld 408576698