diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2014-10-10 15:13:12 -0700 |
---|---|---|
committer | Patrick Walton <pcwalton@mimiga.net> | 2014-10-13 21:40:36 -0700 |
commit | bffaad118e2e73c3fbeee4a160f2b0d7d3ff4952 (patch) | |
tree | 061604ce620c43fbbf80d6937a07ecc82e021fc3 /components/script/dom | |
parent | f350879574194bb612eac88e21d0920e9827afa7 (diff) | |
download | servo-bffaad118e2e73c3fbeee4a160f2b0d7d3ff4952.tar.gz servo-bffaad118e2e73c3fbeee4a160f2b0d7d3ff4952.zip |
layout: Rewrite clipping to be per-display-item instead of having
a separate `ClipDisplayItem`.
We push down clipping areas during absolute position calculation. This
makes display items into a flat list, improving cache locality. It
dramatically simplifies the code all around.
Because we need to push down clip rects even for absolutely-positioned
children of non-absolutely-positioned flows, this patch alters the
parallel traversal to compute absolute positions for
absolutely-positioned children at the same time it computes absolute
positions for other children. This doesn't seem to break anything either
in theory (since the overall order remains correct) or in practice. It
simplifies the parallel traversal code quite a bit.
See the relevant Gecko bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=615734
Diffstat (limited to 'components/script/dom')
0 files changed, 0 insertions, 0 deletions