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

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

Issue 2847303002: Remove unnecessary zoom argument from GetImage() as its value is always available through the Layou… (Closed)
Patch Set: (rebased) Created 3 years, 7 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 6140df63496806683a5a671ac81e5e12bc4b682f..03174ee92268fefa2d66aeca937bab8171b8e8a1 100644
--- a/third_party/WebKit/Source/core/paint/ListMarkerPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/ListMarkerPainter.cpp
@@ -72,12 +72,10 @@ 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(),
- layout_list_marker_.StyleRef().EffectiveZoom())
- .Get(),
- marker);
+ context.DrawImage(layout_list_marker_.GetImage()
+ ->GetImage(layout_list_marker_, marker.Size())
+ .Get(),
+ marker);
if (layout_list_marker_.GetSelectionState() != SelectionNone) {
LayoutRect sel_rect = layout_list_marker_.LocalSelectionRect();
sel_rect.MoveBy(box_origin);
« no previous file with comments | « third_party/WebKit/Source/core/paint/ImagePainter.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