Bug 1341985 - GetAnimationCollection() takes const Element*. r=birtles

MozReview-Commit-ID: BPVROi9Ewzc

--HG--
extra : rebase_source : 599efa0aead37874e4e1c43ab793476d4adfe41d
This commit is contained in:
Hiroyuki Ikezoe 2017-03-10 11:53:19 +09:00
Родитель 96240dbfc8
Коммит 495625f374
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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