[css-pseudo] Include inside markers in FindSymbolMarkerLayoutText
LayoutNGListItem::FindSymbolMarkerLayoutText is supposed to return the LayoutObject* of the symbol text inside a ::marker. This was working fine if the parameter was a list item, the method just retrieved the marker of that list item (whether outside or inside) and then relied on ListMarker::SymbolMarkerLayoutText. It was also working fine for outside markers by a combination of ToLayoutNGListMarker and ListMarker::SymbolMarkerLayoutText. However, it was returning nullptr for inside markers. It doesn't seem this was causing any issues, but this patch makes the method behave properly. The code is also simpler this way. This patch also removes LayoutNGListItem::SymbolMarkerLayoutText since it had no other caller. BUG=457718 Change-Id: I57dea247e0f8a638c251eff6d71788a5465d74b2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2022946Reviewed-by:Koji Ishii <kojii@chromium.org> Commit-Queue: Oriol Brufau <obrufau@igalia.com> Cr-Commit-Position: refs/heads/master@{#735784}
Showing
Please register or sign in to comment