ifdef CSS animations so that the feature can be backed out by flipping the switches in configure.in and then reverting the changes to the following four files appropriately: nsIDOMCSS2Properties.idl, nsIDOMCSSRule.idl, property_database.js, test_transitions_computed_values.html. (Bug 435442, patch 15) r=bzbarsky
This commit is contained in:
@@ -66,7 +66,9 @@
|
||||
#include "nsStyleSet.h"
|
||||
#include "nsCSSStyleSheet.h" // XXX for UA sheet loading hack, can this go away please?
|
||||
#include "nsIDOMCSSStyleSheet.h" // for Pref-related rule management (bugs 22963,20760,31816)
|
||||
#ifdef MOZ_CSS_ANIMATIONS
|
||||
#include "nsAnimationManager.h"
|
||||
#endif
|
||||
#include "nsINameSpaceManager.h" // for Pref-related rule management (bugs 22963,20760,31816)
|
||||
#include "nsIServiceManager.h"
|
||||
#include "nsFrame.h"
|
||||
@@ -4790,11 +4792,13 @@ PresShell::FlushPendingNotifications(mozFlushType aType)
|
||||
mFrameConstructor->ProcessPendingRestyles();
|
||||
}
|
||||
|
||||
#ifdef MOZ_CSS_ANIMATIONS
|
||||
// Dispatch any 'animationstart' events those (or earlier) restyles
|
||||
// queued up.
|
||||
if (!mIsDestroying) {
|
||||
mPresContext->AnimationManager()->DispatchEvents();
|
||||
}
|
||||
#endif
|
||||
|
||||
// Process whatever XBL constructors those restyles queued up. This
|
||||
// ensures that onload doesn't fire too early and that we won't do extra
|
||||
@@ -5113,7 +5117,9 @@ nsIPresShell::ReconstructStyleDataInternal()
|
||||
|
||||
if (mPresContext) {
|
||||
mPresContext->RebuildUserFontSet();
|
||||
#ifdef MOZ_CSS_ANIMATIONS
|
||||
mPresContext->AnimationManager()->KeyframesListIsDirty();
|
||||
#endif
|
||||
}
|
||||
|
||||
Element* root = mDocument->GetRootElement();
|
||||
|
||||
Reference in New Issue
Block a user