Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Issue 2701103003: Let padding change always trigger layout and full paint invalidation (Closed)

Created:
3 years, 10 months ago by Xianzhu
Modified:
3 years, 10 months ago
Reviewers:
pdr.
CC:
chromium-reviews, blink-reviews, dshwang, blink-reviews-style_chromium.org, blink-reviews-paint_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Let padding change always trigger layout and full paint invalidation Previously we when padding changed, we marked for layout only, and during paint invalidation we checked for content box change if anything depends on the content box. This required us to save the previous content box for box-sizing:border-box style. Based on stat on 10k top sites, 12% of all LayoutBoxes have box-sizing:border-box style. With this CL we will save the previous content box when any background layer uses it. Less than 0.36% of LayoutBoxes need it. This reduces a lot of hash map accesses during paint invalidation and simplifies code, with a drawback that we'll fully invalidate on any padding change even if it doesn't change visual result (which seems special). BUG=685179 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2701103003 Cr-Commit-Position: refs/heads/master@{#452282} Committed: https://chromium.googlesource.com/chromium/src/+/aaea701d3ab3168a16e45bc5ab59d181a8c871bb

Patch Set 1 #

Patch Set 2 : Rebase #

Messages

Total messages: 25 (19 generated)
Xianzhu
This is the first followup of https://codereview.chromium.org/2695593005/.
3 years, 10 months ago (2017-02-21 17:11:14 UTC) #11
Xianzhu
On 2017/02/21 17:11:14, Xianzhu wrote: > This is the first followup of https://codereview.chromium.org/2695593005/. Correction: This ...
3 years, 10 months ago (2017-02-21 17:16:51 UTC) #13
Xianzhu
https://codereview.chromium.org/2707073002/ depends on this CL. Without this CL, that CL will increase percentage of LayoutBoxes ...
3 years, 10 months ago (2017-02-22 21:35:57 UTC) #19
pdr.
On 2017/02/22 at 21:35:57, wangxianzhu wrote: > https://codereview.chromium.org/2707073002/ depends on this CL. Without this CL, ...
3 years, 10 months ago (2017-02-22 21:39:26 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2701103003/20001
3 years, 10 months ago (2017-02-22 21:41:49 UTC) #22
commit-bot: I haz the power
3 years, 10 months ago (2017-02-22 23:53:50 UTC) #25
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/aaea701d3ab3168a16e45bc5ab59...

Powered by Google App Engine
This is Rietveld 408576698