[FragmentItem] Fix text snap-to-pixel behavior
This patch matches text snap-to-pixel to the current behavior. Legacy and |NGPaintFragment| snaps the top of the padding box of the parent box. Before this patch, |NGFragmentItem| snaps the top of the content box. This makes different snapping behavior for fractional paddings. This patch adds |parent_offset| to compute the same snapping behavior, because |NGPaintFragment| has both the offset to parent and the offset to container block but |NGFragmentItem| only has the latter. Fixes ~12 tests. Note, the snapping behavior will need to be revisited. Bug: 982194 Change-Id: If2b52c3ae986d5ff06dc993016ad2eb0ff66de39 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2024133Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#736251}
Showing
Please register or sign in to comment