зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1341985 - GetAnimationCollection() takes const Element*. r=birtles
MozReview-Commit-ID: BPVROi9Ewzc --HG-- extra : rebase_source : 599efa0aead37874e4e1c43ab793476d4adfe41d
This commit is contained in:
Родитель
96240dbfc8
Коммит
495625f374
|
@ -1639,7 +1639,7 @@ public:
|
|||
bool HasPointerLock() const { return GetBoolFlag(ElementHasPointerLock); }
|
||||
void SetPointerLock() { SetBoolFlag(ElementHasPointerLock); }
|
||||
void ClearPointerLock() { ClearBoolFlag(ElementHasPointerLock); }
|
||||
bool MayHaveAnimations() { return GetBoolFlag(ElementHasAnimations); }
|
||||
bool MayHaveAnimations() const { return GetBoolFlag(ElementHasAnimations); }
|
||||
void SetMayHaveAnimations() { SetBoolFlag(ElementHasAnimations); }
|
||||
void SetHasValidDir() { SetBoolFlag(NodeHasValidDirAttribute); }
|
||||
void ClearHasValidDir() { ClearBoolFlag(NodeHasValidDirAttribute); }
|
||||
|
|
|
@ -40,7 +40,7 @@ AnimationCollection<AnimationType>::PropertyDtor(void* aObject,
|
|||
template <class AnimationType>
|
||||
/* static */ AnimationCollection<AnimationType>*
|
||||
AnimationCollection<AnimationType>::GetAnimationCollection(
|
||||
dom::Element *aElement,
|
||||
const dom::Element *aElement,
|
||||
CSSPseudoElementType aPseudoType)
|
||||
{
|
||||
if (!aElement->MayHaveAnimations()) {
|
||||
|
|
|
@ -67,7 +67,7 @@ public:
|
|||
// Get the collection of animations for the given |aElement| and
|
||||
// |aPseudoType|.
|
||||
static AnimationCollection<AnimationType>*
|
||||
GetAnimationCollection(dom::Element* aElement,
|
||||
GetAnimationCollection(const dom::Element* aElement,
|
||||
CSSPseudoElementType aPseudoType);
|
||||
|
||||
// Given the frame |aFrame| with possibly animated content, finds its
|
||||
|
|
Загрузка…
Ссылка в новой задаче