Round the block offset of symbol markers
This patch rounds the block offset of symbol markers in the same way as we do for text. Symbol markers should have the same block offset, as they are aligned to the baseline using the primary font. Using the same logic helps FragmentItem support because it has slightly different way to handle offsets of inline boxes. Legacy rounds the marker box position in |ListMarkerPainter:: Paint()|, but LayoutNG skips this function and directly calls |PaintSymbol()|. Bug: 982194 Change-Id: I78bcf89f5637fa39c8e03edaa2057a8088d89f3d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2024589Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#735870}
Showing
Please register or sign in to comment