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

Unified Diff: third_party/WebKit/Source/core/paint/NinePieceImagePainter.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/NinePieceImagePainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/NinePieceImagePainter.cpp b/third_party/WebKit/Source/core/paint/NinePieceImagePainter.cpp
index ab08006e2a910f0bbf9e96ccb187607d45268354..cec9d15cd11448079ad1834c04c351069bd7a988 100644
--- a/third_party/WebKit/Source/core/paint/NinePieceImagePainter.cpp
+++ b/third_party/WebKit/Source/core/paint/NinePieceImagePainter.cpp
@@ -87,7 +87,9 @@ bool NinePieceImagePainter::Paint(GraphicsContext& graphics_context,
// scale of them again.
IntSize image_size = RoundedIntSize(style_image->ImageSize(
layout_object.GetDocument(), 1, border_image_rect.Size()));
- RefPtr<Image> image = style_image->GetImage(layout_object, image_size);
+ RefPtr<Image> image =
+ style_image->GetImage(layout_object, layout_object.GetDocument(),
+ layout_object.StyleRef(), image_size);
InterpolationQuality interpolation_quality =
BoxPainter::ChooseInterpolationQuality(layout_object, image.Get(), 0,
« no previous file with comments | « third_party/WebKit/Source/core/paint/ListMarkerPainter.cpp ('k') | third_party/WebKit/Source/core/style/StyleFetchedImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698