Bug 1443320 - Drop |aNotify| argument from Element::SetSMILOverrideStyleDeclaration. r=birtles
The other call site was removed in https://hg.mozilla.org/mozilla-central/rev/e8c0ffefb34f Depends on D19570 Differential Revision: https://phabricator.services.mozilla.com/D19571
This commit is contained in:
@@ -2000,21 +2000,19 @@ DeclarationBlock* Element::GetSMILOverrideStyleDeclaration() {
|
||||
}
|
||||
|
||||
nsresult Element::SetSMILOverrideStyleDeclaration(
|
||||
DeclarationBlock* aDeclaration, bool aNotify) {
|
||||
DeclarationBlock* aDeclaration) {
|
||||
Element::nsExtendedDOMSlots* slots = ExtendedDOMSlots();
|
||||
|
||||
slots->mSMILOverrideStyleDeclaration = aDeclaration;
|
||||
|
||||
if (aNotify) {
|
||||
Document* doc = GetComposedDoc();
|
||||
// Only need to request a restyle if we're in a document. (We might not
|
||||
// be in a document, if we're clearing animation effects on a target node
|
||||
// that's been detached since the previous animation sample.)
|
||||
if (doc) {
|
||||
nsCOMPtr<nsIPresShell> shell = doc->GetShell();
|
||||
if (shell) {
|
||||
shell->RestyleForAnimation(this, eRestyle_StyleAttribute_Animations);
|
||||
}
|
||||
Document* doc = GetComposedDoc();
|
||||
// Only need to request a restyle if we're in a document. (We might not
|
||||
// be in a document, if we're clearing animation effects on a target node
|
||||
// that's been detached since the previous animation sample.)
|
||||
if (doc) {
|
||||
nsCOMPtr<nsIPresShell> shell = doc->GetShell();
|
||||
if (shell) {
|
||||
shell->RestyleForAnimation(this, eRestyle_StyleAttribute_Animations);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user