Commit e907c3a8 authored by Xiaocheng Hu's avatar Xiaocheng Hu Committed by Chromium LUCI CQ

Eliminate a caller of deprecated ComputedStyle::ListStyleType()

Bug: 687225
Change-Id: Ic90fcd65d9e932f3a9916938af7595e121247280
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2629967
Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org>
Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org>
Auto-Submit: Xiaocheng Hu <xiaochengh@chromium.org>
Reviewed-by: default avatarAnders Hartvoll Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/master@{#843850}
parent 1f0eb07b
...@@ -632,9 +632,12 @@ bool LayoutObject::IsListMarkerForSummary() const { ...@@ -632,9 +632,12 @@ bool LayoutObject::IsListMarkerForSummary() const {
DynamicTo<HTMLSummaryElement>(Parent()->GetNode())) { DynamicTo<HTMLSummaryElement>(Parent()->GetNode())) {
if (!summary->IsMainSummary()) if (!summary->IsMainSummary())
return false; return false;
const auto type = StyleRef().ListStyleType(); if (ListMarker::GetListStyleCategory(GetDocument(), StyleRef()) !=
return type == EListStyleType::kDisclosureOpen || ListMarker::ListStyleCategory::kSymbol)
type == EListStyleType::kDisclosureClosed; return false;
const AtomicString& name =
StyleRef().GetListStyleType()->GetCounterStyleName();
return name == "disclosure-open" || name == "disclosure-closed";
} }
return false; return false;
} }
......
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