[FragmentItem] Avoid excessive marking line boxes dirty
This patch changes marking lines dirty only when |HasInlineFragments|, not when |FirstTextBox|, which is always nullptr with LayoutNG. |DirtyLinesFromChangedChild| is supposed to do nothing for |NGPaintFragment|, but actually marks items dirty when |FragmentItem| is enabled. Also code for |InlineTextBox| was moved to inside of an if block not to run at all for LayoutNG. Bug: 982194 Change-Id: Icd933a1c3b6ad76b9437900bf104fc526d332dce Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2237491 Commit-Queue: Yoshifumi Inoue <yosin@chromium.org> Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#776875}
Showing
Please register or sign in to comment