[PE] Make NeedsOverflowControlsClip() more accurate
Previously the function was a static function which didn't know the current paint offset so was unable to calculate the accurate pixel snapped border box rect, so used a conservative border box rect which caused some unnecessary OverflowControlsClip() whose change of existence was not updated. Now make it a method of FragmentPaintPropertyTreeBuilder to return the accurate needs, so the change of needs is covered by existing SetNeedsPaintPropertyTreeUpdate conditions. Bug: 823935 Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Change-Id: I07578033d202af3c996004a88f25711eaac245a2 Reviewed-on: https://chromium-review.googlesource.com/974167Reviewed-by:Chris Harrelson <chrishtr@chromium.org> Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Cr-Commit-Position: refs/heads/master@{#544870}
Showing
Please register or sign in to comment