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

Unified Diff: Source/core/paint/BackgroundImageGeometry.h

Issue 1332643002: Fix fixed-background offset issue (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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: Source/core/paint/BackgroundImageGeometry.h
diff --git a/Source/core/paint/BackgroundImageGeometry.h b/Source/core/paint/BackgroundImageGeometry.h
index c93526541a6a3838f144ba331b2c88ec8f01c9a4..3d8258a927acfd8bbabddbe1f0add5cb0632095f 100644
--- a/Source/core/paint/BackgroundImageGeometry.h
+++ b/Source/core/paint/BackgroundImageGeometry.h
@@ -27,6 +27,8 @@ public:
void calculate(const LayoutBoxModelObject&, const LayoutBoxModelObject* paintContainer,
const GlobalPaintFlags, const FillLayer&, const LayoutRect& paintRect,
+ // Used during painting to compensate ScrollRecorders for fixed background
+ const IntPoint& accumulatedScrollOffsetSincePaintContainer = IntPoint(),
LayoutObject* backgroundObject = nullptr);
IntRect destRect() const { return m_destRect; }

Powered by Google App Engine
This is Rietveld 408576698