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

Unified Diff: third_party/WebKit/Source/core/paint/ListMarkerPainter.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/ListMarkerPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/ListMarkerPainter.cpp b/third_party/WebKit/Source/core/paint/ListMarkerPainter.cpp
index 9b8b9f70cfcf6e3fd2094888a6b88f0fa93cd7a3..399f4180989d075630d813ad2dfa2e8fa8486ac2 100644
--- a/third_party/WebKit/Source/core/paint/ListMarkerPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/ListMarkerPainter.cpp
@@ -72,10 +72,12 @@ void ListMarkerPainter::Paint(const PaintInfo& paint_info,
GraphicsContext& context = paint_info.context;
if (layout_list_marker_.IsImage()) {
- context.DrawImage(layout_list_marker_.GetImage()
- ->GetImage(layout_list_marker_, marker.Size())
- .Get(),
- marker);
+ context.DrawImage(
+ layout_list_marker_.GetImage()
+ ->GetImage(layout_list_marker_, layout_list_marker_.GetDocument(),
+ layout_list_marker_.StyleRef(), marker.Size())
+ .Get(),
+ marker);
if (layout_list_marker_.GetSelectionState() != SelectionState::kNone) {
LayoutRect sel_rect = layout_list_marker_.LocalSelectionRect();
sel_rect.MoveBy(box_origin);
« no previous file with comments | « third_party/WebKit/Source/core/paint/BoxPainter.cpp ('k') | third_party/WebKit/Source/core/paint/NinePieceImagePainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698