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

Unified Diff: third_party/WebKit/Source/core/paint/BackgroundImageGeometry.cpp

Issue 1367193003: NOT FOR LANDING Allocate SVGImageForContainer on demand (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added some NeedsRebaseline and revived some LayoutListMarker code that turned out to be important Created 5 years, 2 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/paint/BackgroundImageGeometry.cpp
diff --git a/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.cpp b/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.cpp
index d9fb1bd39c6ea698f61867ff0f09ddbc133df42d..53d3c298041cbe2642a828fd834f8b9d283778e6 100644
--- a/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.cpp
+++ b/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.cpp
@@ -171,7 +171,7 @@ void BackgroundImageGeometry::clip(const IntRect& clipRect)
void BackgroundImageGeometry::calculate(const LayoutBoxModelObject& obj, const LayoutBoxModelObject* paintContainer,
const GlobalPaintFlags globalPaintFlags, const FillLayer& fillLayer, const LayoutRect& paintRect,
- const LayoutObject* backgroundObject)
+ const LayoutObject*) // TODO(davve): Remove last argument?
{
LayoutUnit left = 0;
LayoutUnit top = 0;
@@ -257,9 +257,7 @@ void BackgroundImageGeometry::calculate(const LayoutBoxModelObject& obj, const L
positioningAreaSize = destRect().size();
}
- const LayoutObject* clientForBackgroundImage = backgroundObject ? backgroundObject : &obj;
IntSize fillTileSize = calculateFillTileSize(positioningBox, fillLayer, positioningAreaSize);
- fillLayer.image()->setContainerSizeForLayoutObject(clientForBackgroundImage, fillTileSize, obj.style()->effectiveZoom());
setTileSize(fillTileSize);
EFillRepeat backgroundRepeatX = fillLayer.repeatX();
« no previous file with comments | « third_party/WebKit/Source/core/page/PageSerializer.cpp ('k') | third_party/WebKit/Source/core/paint/BoxPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698