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

Unified Diff: third_party/WebKit/Source/core/layout/shapes/ShapeOutsideInfo.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/layout/shapes/ShapeOutsideInfo.cpp
diff --git a/third_party/WebKit/Source/core/layout/shapes/ShapeOutsideInfo.cpp b/third_party/WebKit/Source/core/layout/shapes/ShapeOutsideInfo.cpp
index 77994ec559c40a7dba34b0cc86a9c298fd3455d9..2cf99987327ea9bd484a35b2923053764ac5c399 100644
--- a/third_party/WebKit/Source/core/layout/shapes/ShapeOutsideInfo.cpp
+++ b/third_party/WebKit/Source/core/layout/shapes/ShapeOutsideInfo.cpp
@@ -170,7 +170,8 @@ std::unique_ptr<Shape> ShapeOutsideInfo::CreateShapeForImage(
DCHECK(!style_image->IsPendingImage());
RefPtr<Image> image =
- style_image->GetImage(layout_box_, FlooredIntSize(image_size));
+ style_image->GetImage(layout_box_, layout_box_.GetDocument(),
+ layout_box_.StyleRef(), FlooredIntSize(image_size));
return Shape::CreateRasterShape(image.Get(), shape_image_threshold,
image_rect, margin_rect, writing_mode,

Powered by Google App Engine
This is Rietveld 408576698