On Saturday 2015-03-21 11:27 -0700, Patrick Walton wrote:
> 2. *Avoid going through style recalculation for transitions.* Style
> recalculation (including CSS selector matching and layout object
> construction) fundamentally has to access the DOM. But there is no need to
> actually do this to update style objects for CSS transitions. My
> work-in-progress transitions branch implements a "back door" that allows
> style to be updated without going through style recalculation if we know in
> advance which properties are to be updated. Coupled with (1) above, this
> allows these transitions to be fully dissociated from the main thread.

For what it's worth, in Gecko I made it so that ticking of
transitions doesn't do selector matching (which is fundamentally the
bit that needs to touch the DOM) in
https://bugzilla.mozilla.org/show_bug.cgi?id=1087536

But we still rebuild style data from the style rules using the
normal codepaths; we're just making a fast substitution into the
list of matched style rules (i.e., the path in the rule tree).

-David

-- 
𝄞   L. David Baron                         http://dbaron.org/   𝄂
𝄢   Mozilla                          https://www.mozilla.org/   𝄂
             Before I built a wall I'd ask to know
             What I was walling in or walling out,
             And to whom I was like to give offense.
               - Robert Frost, Mending Wall (1914)

Attachment: signature.asc
Description: Digital signature

_______________________________________________
dev-servo mailing list
dev-servo@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-servo

Reply via email to