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:
Hiroyuki Ikezoe
2019-02-13 04:44:34 +00:00
parent 1beb97313e
commit 0936ca2256
3 changed files with 14 additions and 17 deletions

View File

@@ -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);
}
}