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

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

Issue 1339183003: NOT FOR LANDING Experiment with allocating SVGImageForContainer on demand (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase 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
« no previous file with comments | « Source/core/layout/svg/LayoutSVGImage.cpp ('k') | Source/core/paint/BoxPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/BackgroundImageGeometry.cpp
diff --git a/Source/core/paint/BackgroundImageGeometry.cpp b/Source/core/paint/BackgroundImageGeometry.cpp
index c0b910b864b211d52c6bf0b6a1087ca5e3085109..879058e28d2d8a67c0aba915b0b97788c6d2529d 100644
--- a/Source/core/paint/BackgroundImageGeometry.cpp
+++ b/Source/core/paint/BackgroundImageGeometry.cpp
@@ -170,7 +170,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,
- LayoutObject* backgroundObject)
+ LayoutObject*)
{
LayoutUnit left = 0;
LayoutUnit top = 0;
@@ -256,9 +256,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 | « Source/core/layout/svg/LayoutSVGImage.cpp ('k') | Source/core/paint/BoxPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698