зеркало из https://github.com/mozilla/gecko-dev.git
9bf9d338f9
When display style is changed from 'none' to other in animation-only restyle we need to resolve descendant elements' style that were in the display:none subtree. Three possible ways to resolve the descendant elements' style; 1) Traversing unstyled elements in animation-only restyle We can't simply traverse unstyled elements in the animation-only restyle since when we decided to traverse the unstyled elements we don't know yet the elements will be initially styled or are in display:none subtree. It will result that the new elements are styled in animation-only restyle, it's undesirable. 2) Creating a SequentialTask and resolve the descendants' style with ServoStyleSet::StyleNewSubtree() We can't resolve the descendants' styles with ServoStyleSet::StyleNewSubtree() in SequentialTask since at the moment we are still in servo traversal (i.e. sInServoTraversal is true). That means AutoSetInServoTraversal fails in PrepareAndTraverseSubtree(). 3) Creating a SequentialTask and set restyle subtree hint and defer descendants' restyle in a subsequent normal traversal Note that, when we process throttled animations flush, we don't process normal traversal so the descendants will not be traversed until normal restyle happens but it will not be a big problem since it's really rare that user clicks display animation element just at the right moment when display property changes from none to other. Also, if it will be really a problem, we should process *only* transform animations on the compositor, it's ideally right thing to do. Display property never runs on the compositor. This patch takes the third approach. MozReview-Commit-ID: Krxa3kkdIq4 --HG-- extra : rebase_source : 33e9db953f21168c76716329568191625bd15896 |
||
---|---|---|
.. | ||
483584-1.svg | ||
483584-2.svg | ||
523188-1.svg | ||
525099-1.svg | ||
526536-1.svg | ||
526875-1.svg | ||
526875-2.svg | ||
529387-1-helper.svg | ||
529387-1.xhtml | ||
531550-1.svg | ||
537157-1.svg | ||
541297-1.svg | ||
547333-1.svg | ||
548899-1.svg | ||
551620-1.svg | ||
554141-1.svg | ||
554202-1.svg | ||
554202-2.svg | ||
555026-1.svg | ||
556841-1.svg | ||
572938-1.svg | ||
572938-2.svg | ||
572938-3.svg | ||
572938-4.svg | ||
588287-1.svg | ||
588287-2.svg | ||
590425-1.html | ||
592477-1.xhtml | ||
594653-1.svg | ||
596796-1.svg | ||
605345-1.svg | ||
606101-1.svg | ||
608295-1.html | ||
608549-1.svg | ||
611927-1.svg | ||
615002-1.svg | ||
615872-1.svg | ||
641388-1.html | ||
641388-2.html | ||
650732-1.svg | ||
665334-1.svg | ||
669225-1.svg | ||
669225-2.svg | ||
670313-1.svg | ||
678822-1.svg | ||
678847-1.svg | ||
678938-1.svg | ||
690994-1.svg | ||
691337-1.svg | ||
691337-2.svg | ||
697640-1.svg | ||
699325-1.svg | ||
709907-1.svg | ||
720103-1.svg | ||
1010681-1.svg | ||
1375596-1.svg | ||
crashtests.list |