зеркало из https://github.com/mozilla/pjs.git
Bug 615872 Part 1 - SVG SMIL: Remove unneeded mTimedDocumentRoot member from nsSVGAnimationElement; r=dholbert; a=roc
This commit is contained in:
Родитель
b1b26cc160
Коммит
c171b51326
|
@ -82,8 +82,7 @@ NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
|
|||
#endif
|
||||
nsSVGAnimationElement::nsSVGAnimationElement(already_AddRefed<nsINodeInfo> aNodeInfo)
|
||||
: nsSVGAnimationElementBase(aNodeInfo),
|
||||
mHrefTarget(this),
|
||||
mTimedDocumentRoot(nsnull)
|
||||
mHrefTarget(this)
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
@ -282,13 +281,6 @@ nsSVGAnimationElement::BindToTree(nsIDocument* aDocument,
|
|||
// piece by piece via script)
|
||||
return NS_OK;
|
||||
|
||||
mTimedDocumentRoot = GetTimeContainer();
|
||||
if (!mTimedDocumentRoot)
|
||||
// Timed document root hasn't been created yet. This will be created when
|
||||
// the SVG parent is bound. This happens when we create SVG trees entirely
|
||||
// by script.
|
||||
return NS_OK;
|
||||
|
||||
// Add myself to the animation controller's master set of animation elements.
|
||||
if (aDocument) {
|
||||
nsSMILAnimationController *controller = aDocument->GetAnimationController();
|
||||
|
@ -326,10 +318,6 @@ nsSVGAnimationElement::UnbindFromTree(PRBool aDeep, PRBool aNullParent)
|
|||
}
|
||||
}
|
||||
|
||||
if (mTimedDocumentRoot) {
|
||||
mTimedDocumentRoot = nsnull;
|
||||
}
|
||||
|
||||
mHrefTarget.Unlink();
|
||||
mTimedElement.DissolveReferences();
|
||||
|
||||
|
|
|
@ -47,8 +47,6 @@
|
|||
#include "nsISMILAnimationElement.h"
|
||||
#include "nsSMILTimedElement.h"
|
||||
|
||||
class nsSMILTimeContainer;
|
||||
|
||||
typedef nsSVGElement nsSVGAnimationElementBase;
|
||||
|
||||
class nsSVGAnimationElement : public nsSVGAnimationElementBase,
|
||||
|
@ -130,7 +128,6 @@ protected:
|
|||
|
||||
TargetReference mHrefTarget;
|
||||
nsSMILTimedElement mTimedElement;
|
||||
nsSMILTimeContainer* mTimedDocumentRoot;
|
||||
};
|
||||
|
||||
#endif // NS_SVGANIMATIONELEMENT_H_
|
||||
|
|
Загрузка…
Ссылка в новой задаче