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

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

Issue 2941533002: Break StyleImage dependency on LayoutObject (Closed)
Patch Set: Address reviewer comments Created 3 years, 6 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/BoxPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/BoxPainter.cpp b/third_party/WebKit/Source/core/paint/BoxPainter.cpp
index 3d809fd1c366c71be01506614c87c23437d01085..2e1d85135ddf9660f9591121ecfffa08dc356951 100644
--- a/third_party/WebKit/Source/core/paint/BoxPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/BoxPainter.cpp
@@ -267,7 +267,9 @@ class ImagePaintContext {
const LayoutObject& image_client =
background_object ? *background_object : obj;
- image_ = style_image.GetImage(image_client, FlooredIntSize(container_size));
+ image_ = style_image.GetImage(image_client, image_client.GetDocument(),
+ image_client.StyleRef(),
+ FlooredIntSize(container_size));
interpolation_quality_ = BoxPainter::ChooseInterpolationQuality(
image_client, image_.Get(), &layer, container_size);

Powered by Google App Engine
This is Rietveld 408576698