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

Unified Diff: Source/core/paint/BoxPainter.cpp

Issue 751573002: Use viewportConstrainedVisibleContentRect() to get the scrolling offset (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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/BoxPainter.cpp
diff --git a/Source/core/paint/BoxPainter.cpp b/Source/core/paint/BoxPainter.cpp
index 6044ebb7427cb00aaab132ea3bc1f481f32c6b15..0c9d3b827683df4bb5b57f6e440b6ab54e76fc66 100644
--- a/Source/core/paint/BoxPainter.cpp
+++ b/Source/core/paint/BoxPainter.cpp
@@ -697,7 +697,7 @@ void BoxPainter::calculateBackgroundImageGeometry(RenderBoxModelObject& obj, con
if (fixedBackgroundPaintsInLocalCoordinates(obj))
viewportRect.setLocation(IntPoint());
else if (FrameView* frameView = obj.view()->frameView())
- viewportRect.setLocation(IntPoint(frameView->scrollOffsetForFixedPosition()));
+ viewportRect.setLocation(IntPoint(frameView->scrollOffsetForViewportConstrainedObjects()));
if (paintContainer) {
IntPoint absoluteContainerOffset = roundedIntPoint(paintContainer->localToAbsolute(FloatPoint()));

Powered by Google App Engine
This is Rietveld 408576698