mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1010681 part 6 - Remove PassesConditionProcessingTests from SVGAnimationElement; r=longsonr
This method was originally exposed so that the animation compositor could test if an animation should be skipped when sampling but now that we perform this testing within the SVGAnimationElement itself it is no longer needed.
This commit is contained in:
parent
e6a15688b8
commit
d1b0b06dea
@ -64,12 +64,6 @@ SVGAnimationElement::Init()
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
bool
|
||||
SVGAnimationElement::PassesConditionalProcessingTests()
|
||||
{
|
||||
return SVGTests::PassesConditionalProcessingTests();
|
||||
}
|
||||
|
||||
const nsAttrValue*
|
||||
SVGAnimationElement::GetAnimAttr(nsIAtom* aName) const
|
||||
{
|
||||
@ -313,9 +307,11 @@ SVGAnimationElement::AfterSetAttr(int32_t aNamespaceID, nsIAtom* aName,
|
||||
SVGAnimationElementBase::AfterSetAttr(aNamespaceID, aName, aValue,
|
||||
aNotify);
|
||||
|
||||
if (SVGTests::IsConditionalProcessingAttribute(aName) &&
|
||||
mTimedElement.SetIsDisabled(!PassesConditionalProcessingTests())) {
|
||||
AnimationNeedsResample();
|
||||
if (SVGTests::IsConditionalProcessingAttribute(aName)) {
|
||||
bool isDisabled = !SVGTests::PassesConditionalProcessingTests();
|
||||
if (mTimedElement.SetIsDisabled(isDisabled)) {
|
||||
AnimationNeedsResample();
|
||||
}
|
||||
}
|
||||
|
||||
if (aNamespaceID != kNameSpaceID_XLink || aName != nsGkAtoms::href)
|
||||
|
@ -58,7 +58,6 @@ public:
|
||||
virtual nsresult AfterSetAttr(int32_t aNamespaceID, nsIAtom* aName,
|
||||
const nsAttrValue* aValue, bool aNotify) MOZ_OVERRIDE;
|
||||
|
||||
bool PassesConditionalProcessingTests();
|
||||
const nsAttrValue* GetAnimAttr(nsIAtom* aName) const;
|
||||
bool GetAnimAttr(nsIAtom* aAttName, nsAString& aResult) const;
|
||||
bool HasAnimAttr(nsIAtom* aAttName) const;
|
||||
|
Loading…
Reference in New Issue
Block a user