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

Unified Diff: Source/core/layout/LayoutBox.cpp

Issue 1300103003: Refactor code for calculating background image geometry (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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 | « no previous file | Source/core/paint/BackgroundImageGeometry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutBox.cpp
diff --git a/Source/core/layout/LayoutBox.cpp b/Source/core/layout/LayoutBox.cpp
index be83e8a61e6eb00a2579d3521aac8dca3697ee74..e54ce16325e9d421e87411616af300cfb2e70d05 100644
--- a/Source/core/layout/LayoutBox.cpp
+++ b/Source/core/layout/LayoutBox.cpp
@@ -1179,7 +1179,7 @@ bool LayoutBox::getBackgroundPaintedExtent(LayoutRect& paintedExtent)
BackgroundImageGeometry geometry;
// TODO(jchaffraix): This function should be rethought as it's called during and outside
// of the paint phase. Potentially returning different results at different phases.
- BoxPainter::calculateBackgroundImageGeometry(*this, 0, GlobalPaintNormalPhase, style()->backgroundLayers(), backgroundRect, geometry);
+ geometry.calculate(*this, nullptr, GlobalPaintNormalPhase, style()->backgroundLayers(), backgroundRect);
if (geometry.hasNonLocalGeometry())
return false;
paintedExtent = LayoutRect(geometry.destRect());
« no previous file with comments | « no previous file | Source/core/paint/BackgroundImageGeometry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698