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

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

Issue 1162623007: Removed redundant rect methods on FrameView (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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/BoxPainter.cpp
diff --git a/Source/core/paint/BoxPainter.cpp b/Source/core/paint/BoxPainter.cpp
index 4b8298c32d0e443b430e42306c7257abb1da8df0..e002869ea73c9716d812a35bc9139d9d87b8847e 100644
--- a/Source/core/paint/BoxPainter.cpp
+++ b/Source/core/paint/BoxPainter.cpp
@@ -742,7 +742,7 @@ void BoxPainter::calculateBackgroundImageGeometry(LayoutBoxModelObject& obj, con
if (fixedBackgroundPaintsInLocalCoordinates(obj))
viewportRect.setLocation(IntPoint());
else if (FrameView* frameView = obj.view()->frameView())
- viewportRect.setLocation(IntPoint(frameView->scrollOffsetForViewportConstrainedObjects()));
+ viewportRect.setLocation(frameView->scrollPosition());
if (paintContainer) {
IntPoint absoluteContainerOffset = roundedIntPoint(paintContainer->localToAbsolute(FloatPoint()));
« no previous file with comments | « Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp ('k') | Source/core/paint/DeprecatedPaintLayerClipper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698