Skip to content

Commit

Permalink
Bug 1518374 - Mark GetKeyframes and GetTargetComputedStyle as const; …
Browse files Browse the repository at this point in the history
…r=hiro

Depends on D15899

Differential Revision: https://phabricator.services.mozilla.com/D15900

--HG--
extra : moz-landing-system : lando
  • Loading branch information
birtles committed Jan 8, 2019
1 parent 3ce2f15 commit 8285a17
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dom/animation/KeyframeEffect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ void KeyframeEffect::RequestRestyle(
}
}

already_AddRefed<ComputedStyle> KeyframeEffect::GetTargetComputedStyle() {
already_AddRefed<ComputedStyle> KeyframeEffect::GetTargetComputedStyle() const {
if (!GetRenderedDocument()) {
return nullptr;
}
Expand Down Expand Up @@ -995,7 +995,7 @@ void KeyframeEffect::GetProperties(
}

void KeyframeEffect::GetKeyframes(JSContext*& aCx, nsTArray<JSObject*>& aResult,
ErrorResult& aRv) {
ErrorResult& aRv) const {
MOZ_ASSERT(aResult.IsEmpty());
MOZ_ASSERT(!aRv.Failed());

Expand Down
4 changes: 2 additions & 2 deletions dom/animation/KeyframeEffect.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class KeyframeEffect : public AnimationEffect {
void SetTarget(const Nullable<ElementOrCSSPseudoElement>& aTarget);

void GetKeyframes(JSContext*& aCx, nsTArray<JSObject*>& aResult,
ErrorResult& aRv);
ErrorResult& aRv) const;
void GetProperties(nsTArray<AnimationPropertyDetails>& aProperties,
ErrorResult& aRv) const;

Expand Down Expand Up @@ -361,7 +361,7 @@ class KeyframeEffect : public AnimationEffect {
// context. That's because calling GetComputedStyle when we are in the process
// of building a ComputedStyle may trigger various forms of infinite
// recursion.
already_AddRefed<ComputedStyle> GetTargetComputedStyle();
already_AddRefed<ComputedStyle> GetTargetComputedStyle() const;

// A wrapper for marking cascade update according to the current
// target and its effectSet.
Expand Down

0 comments on commit 8285a17

Please sign in to comment.