Bug 880596 part 6 - Factor out common method for adding animations and transitions...
commit45430e674951a7b914629e67079d1d36a7e083b7
authorBrian Birtles <birtles@gmail.com>
Thu, 3 Apr 2014 05:57:28 +0000 (3 14:57 +0900)
committerBrian Birtles <birtles@gmail.com>
Thu, 3 Apr 2014 05:57:28 +0000 (3 14:57 +0900)
treeff0260722c992386e5edee39c89facbc1e03c66d
parent32b1480e8c89497d5e2ccb90854042b968b30675
Bug 880596 part 6 - Factor out common method for adding animations and transitions to a layer; r=dbaron

The loops for adding animations and transitions to a layer in
nsDisplayList::AddAnimationsAndTransitionsToLayer are now identical and so can
be factored out into a common method.

Since it is not possible to implicitly convert from
nsTArray<ElementPropertyTransition> to nsTArray<ElementAnimation> despite
ElementPropertyTransition being a subclass of ElementAnimation a templated
method is used. In the future, as animations and transitions share more and more
code, we should be able to remove the need for templates.
layout/base/nsDisplayList.cpp