Clean up LineBoxListPainter AddURLRectsForInlineChildrenRecursively call
AddURLRectsForInlineChildrenRecursively() is currently called from within LineBoxListPainter::ShouldPaint(), which seems like an odd place since that's sounds like (and otherwise is) a predicate function. Hoist the call out of ShouldPaint() and into the callers. Since PaintBackplate() is only called in the kForcedColorsModeBackplate paint phase we can drop it in that case. Also drop the paint phase check in PaintBackplate() since it's caller already checks it. Change-Id: I4e28b126138f884dd411d0ef44ef949371173421 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2080429 Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Auto-Submit: Fredrik Söderquist <fs@opera.com> Reviewed-by:Xianzhu Wang <wangxianzhu@chromium.org> Cr-Commit-Position: refs/heads/master@{#745634}
Showing
Please register or sign in to comment