Skip to content

Commit

Permalink
Integrate stacking contexts into the display list
Browse files Browse the repository at this point in the history
Integrate stacking contexts into the display list by adding two new
entry types, PushStackingContext and PopStackingContext. This allows us
to eliminate the ugly offsets map that DisplayList used to contain
and seems to speed up display list construction. With this approach
we are able to also completely prune pseudo-stacking contexts from the
final display list and remove their (minimal) overhead from display
list traversal Traversing the display list is also a bit simpler now.

Additionally, this will allow easier editing of the DisplayList to
properly support scrolling roots. The push/pop entries can be
duplicated to clone complex StackingContext trees between layers.
  • Loading branch information
mrobinson committed Oct 13, 2016
1 parent b110eb3 commit be62ad7
Show file tree
Hide file tree
Showing 4 changed files with 435 additions and 479 deletions.
Loading

0 comments on commit be62ad7

Please sign in to comment.