Backed out changeset 41d45871d805 (bug 1180125)

This commit is contained in:
Carsten "Tomcat" Book 2015-07-29 17:32:21 +02:00
parent bf173a58e8
commit 4862dc6ee3
7 changed files with 15 additions and 33 deletions

View File

@ -360,7 +360,6 @@ nsPresContext::LastRelease()
NS_IMPL_CYCLE_COLLECTION_CLASS(nsPresContext)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN(nsPresContext)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mAnimationManager);
NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mDocument);
// NS_IMPL_CYCLE_COLLECTION_TRAVERSE_RAWPTR(mDeviceContext); // not xpcom
NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mEventManager);
@ -373,7 +372,6 @@ NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN(nsPresContext)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN(nsPresContext)
NS_IMPL_CYCLE_COLLECTION_UNLINK(mAnimationManager);
NS_IMPL_CYCLE_COLLECTION_UNLINK(mDocument);
NS_IMPL_CYCLE_COLLECTION_UNLINK(mDeviceContext); // worth bothering?
// NS_RELEASE(tmp->mLanguage); // an atom

View File

@ -185,6 +185,12 @@ CommonAnimationManager::GetAnimationsForCompositor(const nsIFrame* aFrame,
return collection;
}
/*
* nsISupports implementation
*/
NS_IMPL_ISUPPORTS(CommonAnimationManager, nsIStyleRuleProcessor)
nsRestyleHint
CommonAnimationManager::HasStateDependentStyle(StateRuleProcessorData* aData)
{

View File

@ -44,6 +44,9 @@ class CommonAnimationManager : public nsIStyleRuleProcessor,
public:
explicit CommonAnimationManager(nsPresContext *aPresContext);
// nsISupports
NS_DECL_ISUPPORTS
// nsIStyleRuleProcessor (parts)
virtual nsRestyleHint HasStateDependentStyle(StateRuleProcessorData* aData) override;
virtual nsRestyleHint HasStateDependentStyle(PseudoElementStateRuleProcessorData* aData) override;

View File

@ -31,8 +31,6 @@ using mozilla::dom::AnimationPlayState;
using mozilla::dom::KeyframeEffectReadOnly;
using mozilla::dom::CSSAnimation;
////////////////////////// CSSAnimation ////////////////////////////
JSObject*
CSSAnimation::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
@ -303,26 +301,6 @@ CSSAnimation::PseudoTypeAsString(nsCSSPseudoElements::Type aPseudoType)
}
}
////////////////////////// nsAnimationManager ////////////////////////////
NS_IMPL_CYCLE_COLLECTION_CLASS(nsAnimationManager)
NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN(nsAnimationManager)
tmp->mPendingEvents.Clear();
NS_IMPL_CYCLE_COLLECTION_UNLINK_END
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN(nsAnimationManager)
for (AnimationEventInfo& info : tmp->mPendingEvents) {
ImplCycleCollectionTraverse(cb, info.mElement, "mPendingEvents.mElement");
}
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
NS_IMPL_CYCLE_COLLECTING_ADDREF(nsAnimationManager)
NS_IMPL_CYCLE_COLLECTING_RELEASE(nsAnimationManager)
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(nsAnimationManager)
NS_INTERFACE_MAP_ENTRY(nsIStyleRuleProcessor)
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIStyleRuleProcessor)
NS_INTERFACE_MAP_END
void
nsAnimationManager::MaybeUpdateCascadeResults(AnimationCollection* aCollection)
{

View File

@ -248,9 +248,6 @@ public:
{
}
NS_DECL_CYCLE_COLLECTION_CLASS(nsAnimationManager)
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
void MaybeUpdateCascadeResults(mozilla::AnimationCollection* aCollection);
// nsIStyleRuleProcessor (parts)

View File

@ -74,7 +74,9 @@ ElementPropertyTransition::CurrentValuePortion() const
.GetValue(computedTiming.mProgress);
}
////////////////////////// CSSTransition ////////////////////////////
/*****************************************************************************
* CSSTransition *
*****************************************************************************/
JSObject*
CSSTransition::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
@ -174,9 +176,9 @@ CSSTransition::HasLowerCompositeOrderThan(const Animation& aOther) const
nsCSSProps::GetStringValue(otherTransition->TransitionProperty());
}
////////////////////////// nsTransitionManager ////////////////////////////
NS_IMPL_ISUPPORTS(nsTransitionManager, nsIStyleRuleProcessor)
/*****************************************************************************
* nsTransitionManager *
*****************************************************************************/
void
nsTransitionManager::StyleContextChanged(dom::Element *aElement,

View File

@ -182,8 +182,6 @@ public:
{
}
NS_DECL_ISUPPORTS
typedef mozilla::AnimationCollection AnimationCollection;
/**