Commit 4fa6cd0a authored by Yoichi Osato's avatar Yoichi Osato Committed by Commit Bot

[LayoutNG] Remove list marker selection code

Since we're not painting list marker selection, such code is unnecessary.

Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_slimming_paint_v2;master.tryserver.blink:linux_trusty_blink_rel
Change-Id: Id61ef0e9abbb4dd8f9aa60a589ac4fd188f5e0cd
Reviewed-on: https://chromium-review.googlesource.com/1155281Reviewed-by: default avatarYoshifumi Inoue <yosin@chromium.org>
Reviewed-by: default avatarKoji Ishii <kojii@chromium.org>
Commit-Queue: Yoichi Osato <yoichio@chromium.org>
Cr-Commit-Position: refs/heads/master@{#579645}
parent 7349cf22
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
#include "third_party/blink/renderer/core/paint/list_marker_painter.h" #include "third_party/blink/renderer/core/paint/list_marker_painter.h"
#include "third_party/blink/renderer/core/layout/api/selection_state.h"
#include "third_party/blink/renderer/core/layout/layout_list_item.h" #include "third_party/blink/renderer/core/layout/layout_list_item.h"
#include "third_party/blink/renderer/core/layout/layout_list_marker.h" #include "third_party/blink/renderer/core/layout/layout_list_marker.h"
#include "third_party/blink/renderer/core/layout/list_marker_text.h" #include "third_party/blink/renderer/core/layout/list_marker_text.h"
...@@ -90,15 +89,6 @@ void ListMarkerPainter::Paint(const PaintInfo& paint_info) { ...@@ -90,15 +89,6 @@ void ListMarkerPainter::Paint(const PaintInfo& paint_info) {
layout_list_marker_.StyleRef(), FloatSize(marker.Size())) layout_list_marker_.StyleRef(), FloatSize(marker.Size()))
.get(), .get(),
Image::kSyncDecode, FloatRect(marker)); Image::kSyncDecode, FloatRect(marker));
if (layout_list_marker_.GetSelectionState() != SelectionState::kNone) {
LayoutRect sel_rect = layout_list_marker_.LocalSelectionRect();
sel_rect.MoveBy(box_origin);
Color selection_bg = SelectionPaintingUtils::SelectionBackgroundColor(
layout_list_marker_.ListItem()->GetDocument(),
layout_list_marker_.ListItem()->StyleRef(),
layout_list_marker_.ListItem()->GetNode());
context.FillRect(PixelSnappedIntRect(sel_rect), selection_bg);
}
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment