2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* ***** BEGIN LICENSE BLOCK *****
|
|
|
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
* 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
* the License. You may obtain a copy of the License at
|
|
|
|
* http://www.mozilla.org/MPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* License.
|
|
|
|
*
|
|
|
|
* The Original Code is mozilla.org code.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is
|
|
|
|
* Netscape Communications Corporation.
|
|
|
|
* Portions created by the Initial Developer are Copyright (C) 2002
|
|
|
|
* the Initial Developer. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
|
|
|
* Brian Ryner <bryner@brianryner.com> (Original Author)
|
|
|
|
*
|
|
|
|
* Alternatively, the contents of this file may be used under the terms of
|
|
|
|
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
|
|
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
* in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
* of those above. If you wish to allow use of your version of this file only
|
|
|
|
* under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
* use your version of this file under the terms of the MPL, indicate your
|
|
|
|
* decision by deleting the provisions above and replace them with the notice
|
|
|
|
* and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
* the provisions above, a recipient may use your version of this file under
|
|
|
|
* the terms of any one of the MPL, the GPL or the LGPL.
|
|
|
|
*
|
|
|
|
* ***** END LICENSE BLOCK ***** */
|
|
|
|
|
|
|
|
// This defines a common base class for nsITheme implementations, to reduce
|
|
|
|
// code duplication.
|
|
|
|
|
|
|
|
#include "prtypes.h"
|
2011-06-02 05:56:50 -07:00
|
|
|
#include "nsAlgorithm.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
#include "nsIAtom.h"
|
|
|
|
#include "nsCOMPtr.h"
|
|
|
|
#include "nsString.h"
|
|
|
|
#include "nsMargin.h"
|
2011-10-14 11:11:22 -07:00
|
|
|
#include "nsGkAtoms.h"
|
2010-10-20 04:26:32 -07:00
|
|
|
#include "nsEventStates.h"
|
2010-11-13 00:19:38 -08:00
|
|
|
#include "nsTArray.h"
|
|
|
|
#include "nsITimer.h"
|
2012-03-07 07:29:21 -08:00
|
|
|
#include "nsClassHashtable.h"
|
|
|
|
#include "nsIObserver.h"
|
|
|
|
#include "mozilla/TimeStamp.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2010-11-13 00:19:38 -08:00
|
|
|
class nsIContent;
|
2007-03-22 10:30:00 -07:00
|
|
|
class nsIFrame;
|
|
|
|
class nsIPresShell;
|
|
|
|
class nsPresContext;
|
|
|
|
|
2012-03-07 07:29:21 -08:00
|
|
|
class nsNativeTheme :
|
|
|
|
public nsITimerCallback,
|
|
|
|
public nsIObserver
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
2012-03-07 07:29:42 -08:00
|
|
|
protected:
|
2012-03-07 07:29:21 -08:00
|
|
|
typedef mozilla::TimeStamp TimeStamp;
|
|
|
|
typedef mozilla::TimeDuration TimeDuration;
|
|
|
|
|
2010-11-13 00:19:38 -08:00
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSITIMERCALLBACK
|
2012-03-07 07:29:21 -08:00
|
|
|
NS_DECL_NSIOBSERVER
|
2010-11-13 00:19:38 -08:00
|
|
|
|
2008-01-12 20:13:50 -08:00
|
|
|
enum ScrollbarButtonType {
|
|
|
|
eScrollbarButton_UpTop = 0,
|
|
|
|
eScrollbarButton_Down = 1 << 0,
|
|
|
|
eScrollbarButton_Bottom = 1 << 1
|
|
|
|
};
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
enum TreeSortDirection {
|
|
|
|
eTreeSortDirection_Descending,
|
|
|
|
eTreeSortDirection_Natural,
|
|
|
|
eTreeSortDirection_Ascending
|
|
|
|
};
|
|
|
|
|
|
|
|
nsNativeTheme();
|
|
|
|
|
2011-04-21 10:35:52 -07:00
|
|
|
// Returns the content state (hover, focus, etc), see nsEventStateManager.h
|
2010-10-20 04:26:32 -07:00
|
|
|
nsEventStates GetContentState(nsIFrame* aFrame, PRUint8 aWidgetType);
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
// Returns whether the widget is already styled by content
|
|
|
|
// Normally called from ThemeSupportsWidget to turn off native theming
|
|
|
|
// for elements that are already styled.
|
2011-09-28 23:19:26 -07:00
|
|
|
bool IsWidgetStyled(nsPresContext* aPresContext, nsIFrame* aFrame,
|
2007-03-22 10:30:00 -07:00
|
|
|
PRUint8 aWidgetType);
|
|
|
|
|
|
|
|
// Accessors to widget-specific state information
|
|
|
|
|
2010-10-20 04:26:32 -07:00
|
|
|
bool IsDisabled(nsIFrame* aFrame, nsEventStates aEventStates);
|
2010-09-27 18:25:18 -07:00
|
|
|
|
2008-11-27 14:14:54 -08:00
|
|
|
// RTL chrome direction
|
2011-09-28 23:19:26 -07:00
|
|
|
bool IsFrameRTL(nsIFrame* aFrame);
|
2008-11-27 14:14:54 -08:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
// button:
|
2011-09-28 23:19:26 -07:00
|
|
|
bool IsDefaultButton(nsIFrame* aFrame) {
|
2011-10-14 11:11:22 -07:00
|
|
|
return CheckBooleanAttr(aFrame, nsGkAtoms::_default);
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
bool IsButtonTypeMenu(nsIFrame* aFrame);
|
2009-08-10 14:23:50 -07:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
// checkbox:
|
2011-09-28 23:19:26 -07:00
|
|
|
bool IsChecked(nsIFrame* aFrame) {
|
2011-10-17 07:59:28 -07:00
|
|
|
return GetCheckedOrSelected(aFrame, false);
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// radiobutton:
|
2011-09-28 23:19:26 -07:00
|
|
|
bool IsSelected(nsIFrame* aFrame) {
|
2011-10-17 07:59:28 -07:00
|
|
|
return GetCheckedOrSelected(aFrame, true);
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
bool IsFocused(nsIFrame* aFrame) {
|
2011-10-14 11:11:22 -07:00
|
|
|
return CheckBooleanAttr(aFrame, nsGkAtoms::focused);
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
2008-01-12 20:13:50 -08:00
|
|
|
|
|
|
|
// scrollbar button:
|
|
|
|
PRInt32 GetScrollbarButtonType(nsIFrame* aFrame);
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
// tab:
|
2011-09-28 23:19:26 -07:00
|
|
|
bool IsSelectedTab(nsIFrame* aFrame) {
|
2011-10-14 11:11:22 -07:00
|
|
|
return CheckBooleanAttr(aFrame, nsGkAtoms::selected);
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
2008-11-27 14:16:13 -08:00
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
bool IsNextToSelectedTab(nsIFrame* aFrame, PRInt32 aOffset);
|
2011-08-08 08:38:57 -07:00
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
bool IsBeforeSelectedTab(nsIFrame* aFrame) {
|
2011-08-08 08:38:57 -07:00
|
|
|
return IsNextToSelectedTab(aFrame, -1);
|
|
|
|
}
|
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
bool IsAfterSelectedTab(nsIFrame* aFrame) {
|
2011-08-08 08:38:57 -07:00
|
|
|
return IsNextToSelectedTab(aFrame, 1);
|
|
|
|
}
|
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
bool IsLeftToSelectedTab(nsIFrame* aFrame) {
|
2011-08-08 08:38:57 -07:00
|
|
|
return IsFrameRTL(aFrame) ? IsAfterSelectedTab(aFrame) : IsBeforeSelectedTab(aFrame);
|
|
|
|
}
|
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
bool IsRightToSelectedTab(nsIFrame* aFrame) {
|
2011-08-08 08:38:57 -07:00
|
|
|
return IsFrameRTL(aFrame) ? IsBeforeSelectedTab(aFrame) : IsAfterSelectedTab(aFrame);
|
|
|
|
}
|
|
|
|
|
2009-03-13 05:23:26 -07:00
|
|
|
// button / toolbarbutton:
|
2011-09-28 23:19:26 -07:00
|
|
|
bool IsCheckedButton(nsIFrame* aFrame) {
|
2011-10-14 11:11:22 -07:00
|
|
|
return CheckBooleanAttr(aFrame, nsGkAtoms::checked);
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
2008-01-12 20:13:50 -08:00
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
bool IsSelectedButton(nsIFrame* aFrame) {
|
2011-10-14 11:11:22 -07:00
|
|
|
return CheckBooleanAttr(aFrame, nsGkAtoms::checked) ||
|
|
|
|
CheckBooleanAttr(aFrame, nsGkAtoms::selected);
|
2011-08-08 07:42:45 -07:00
|
|
|
}
|
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
bool IsOpenButton(nsIFrame* aFrame) {
|
2011-10-14 11:11:22 -07:00
|
|
|
return CheckBooleanAttr(aFrame, nsGkAtoms::open);
|
2009-03-13 05:23:26 -07:00
|
|
|
}
|
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
bool IsPressedButton(nsIFrame* aFrame);
|
2011-08-08 07:42:45 -07:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
// treeheadercell:
|
|
|
|
TreeSortDirection GetTreeSortDirection(nsIFrame* aFrame);
|
2011-09-28 23:19:26 -07:00
|
|
|
bool IsLastTreeHeaderCell(nsIFrame* aFrame);
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
// tab:
|
2011-09-28 23:19:26 -07:00
|
|
|
bool IsBottomTab(nsIFrame* aFrame);
|
|
|
|
bool IsFirstTab(nsIFrame* aFrame);
|
2007-12-21 03:17:01 -08:00
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
bool IsHorizontal(nsIFrame* aFrame);
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
// progressbar:
|
2011-09-28 23:19:26 -07:00
|
|
|
bool IsIndeterminateProgress(nsIFrame* aFrame, nsEventStates aEventStates);
|
|
|
|
bool IsVerticalProgress(nsIFrame* aFrame);
|
Back out bug 514437, bug 567872, bug 568825, bug 633209, bug 633913, bug 634086, bug 634088, bug 634549, bug 634551, bug 638176, bug 641517, bug 641905, bug 641942, bug 642127, and bug 642667 to undo the performance regression tracked by bug 655860.
2011-05-09 15:48:39 -07:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
// textfield:
|
2011-09-28 23:19:26 -07:00
|
|
|
bool IsReadOnly(nsIFrame* aFrame) {
|
2011-10-14 11:11:22 -07:00
|
|
|
return CheckBooleanAttr(aFrame, nsGkAtoms::readonly);
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
2009-01-12 11:23:51 -08:00
|
|
|
// menupopup:
|
2011-09-28 23:19:26 -07:00
|
|
|
bool IsSubmenu(nsIFrame* aFrame, bool* aLeftOfParent);
|
2009-01-12 11:23:51 -08:00
|
|
|
|
2011-06-24 14:00:46 -07:00
|
|
|
// True if it's not a menubar item or menulist item
|
2011-09-28 23:19:26 -07:00
|
|
|
bool IsRegularMenuItem(nsIFrame *aFrame);
|
2011-06-24 14:00:46 -07:00
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
bool IsMenuListEditable(nsIFrame *aFrame);
|
2011-07-01 03:20:45 -07:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
nsIPresShell *GetPresShell(nsIFrame* aFrame);
|
2008-03-26 22:36:20 -07:00
|
|
|
PRInt32 CheckIntAttr(nsIFrame* aFrame, nsIAtom* aAtom, PRInt32 defaultValue);
|
2011-09-28 23:19:26 -07:00
|
|
|
bool CheckBooleanAttr(nsIFrame* aFrame, nsIAtom* aAtom);
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
bool GetCheckedOrSelected(nsIFrame* aFrame, bool aCheckSelected);
|
|
|
|
bool GetIndeterminate(nsIFrame* aFrame);
|
2010-11-13 00:19:38 -08:00
|
|
|
|
2011-08-08 07:42:45 -07:00
|
|
|
nsIFrame* GetAdjacentSiblingFrameWithSameAppearance(nsIFrame* aFrame,
|
2011-09-28 23:19:26 -07:00
|
|
|
bool aNextSibling);
|
2011-08-08 07:42:45 -07:00
|
|
|
|
2012-03-07 07:29:21 -08:00
|
|
|
// Queue a themed element for a redraw after a set interval.
|
|
|
|
bool QueueAnimatedContentForRefresh(nsIContent* aContent,
|
|
|
|
PRUint32 aMinimumFrameRate);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Simple two phase animations on themed widgets - 'Fades' transition from
|
|
|
|
* a base state to a highlighted state and back to the base state, at which
|
|
|
|
* point data associated with the fade is freed.
|
|
|
|
*
|
|
|
|
* Important notes:
|
|
|
|
*
|
|
|
|
* Consumers are responsible for triggering refresh calls by calling
|
|
|
|
* QueueAnimatedContentRefreshForFade on each redraw.
|
|
|
|
*
|
|
|
|
* Consumers are also responsible for switching fade transitions from
|
|
|
|
* FADE_IN/FADE_IN_FINISHED to FADE_OUT through calls to QACRFF. Failing
|
|
|
|
* to do so keeps content / fade data stored in mAnimatedFadesList until
|
|
|
|
* the content's underlying frame is destroyed or the application closes.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Fade states
|
|
|
|
typedef enum FadeState {
|
|
|
|
FADE_NOTACTIVE = 0, // Fade state not found, fade complete
|
|
|
|
FADE_IN = 1, // Fading in
|
|
|
|
FADE_IN_FINISHED = 2, // Fade-in is finished, waiting for fade-out
|
|
|
|
FADE_OUT = 3, // Fading out
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* QueueAnimatedContentRefreshForFade - creates a new fade or requests a
|
|
|
|
* refresh on an existing fade in progress.
|
|
|
|
*
|
|
|
|
* aContent The themed content element the animation is associated
|
|
|
|
* with.
|
|
|
|
* aFadeDirection The current direction of the fade. Valid values are
|
|
|
|
* FADE_IN or FADE_OUT.
|
|
|
|
* aMinimumFrameRate The minimum frame rate requested (30 is typical). Value
|
|
|
|
* is passed to QueueAnimatedContentForRefresh to trigger a
|
|
|
|
* refresh.
|
|
|
|
* aMilliseconds Duration of the fade-in or fade-out transition.
|
|
|
|
* aUserData Generic consumer data storage for state across rendering
|
|
|
|
* of individual frames. Updated on every call.
|
|
|
|
*/
|
|
|
|
bool
|
|
|
|
QueueAnimatedContentRefreshForFade(nsIContent* aContent,
|
|
|
|
FadeState aFadeDirection,
|
|
|
|
PRUint32 aMinimumFrameRate,
|
|
|
|
PRUint32 aMilliseconds,
|
|
|
|
PRUint32 aUserData = 0);
|
|
|
|
|
|
|
|
// Max ticks returned by FadeData->GetTicks().
|
|
|
|
#define TICK_MAX 100.0
|
|
|
|
|
|
|
|
// Internal data structure for storing fade data
|
|
|
|
class FadeData
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
/*
|
|
|
|
* FadeData()
|
|
|
|
* aTimeout now + duration
|
|
|
|
* aState FADE_IN or FADE_OUT
|
|
|
|
* aUserData intial value for user data
|
|
|
|
*/
|
|
|
|
FadeData(TimeStamp aTimeout, FadeState aState, PRUint32 aUserData) :
|
|
|
|
mTimeout(aTimeout),
|
|
|
|
mStartTime(TimeStamp::Now()),
|
|
|
|
mState(aState),
|
|
|
|
mUserData(aUserData) {
|
|
|
|
}
|
|
|
|
~FadeData() {}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Reset - resets the to a new timeout value and direction.
|
|
|
|
* aTimeout msec(now) + duration
|
|
|
|
* aState FADE_IN or FADE_OUT
|
|
|
|
*/
|
|
|
|
void Reset(TimeDuration aTimeout, FadeState aState) {
|
|
|
|
NS_ASSERTION((aState == FADE_IN || aState == FADE_OUT),
|
|
|
|
"Bad fade direction.");
|
|
|
|
mStartTime = TimeStamp::Now();
|
|
|
|
mTimeout = TimeStamp::Now() + aTimeout;
|
|
|
|
mState = aState;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* GetTicks - returns the number of ticks in this animation where
|
|
|
|
* ticks >= 0 && ticks <= TICK_MAX. FADE_IN has increasing ticks,
|
|
|
|
* FADE_OUT decreasing.
|
|
|
|
*/
|
|
|
|
PRUint32 GetTicks() {
|
|
|
|
TimeStamp now = TimeStamp::Now();
|
|
|
|
if (now >= mTimeout) {
|
|
|
|
return (mState == FADE_OUT ? 0 : (PRUint32)TICK_MAX);
|
|
|
|
}
|
|
|
|
TimeDuration diff = now - mStartTime;
|
|
|
|
PRUint32 tick =
|
|
|
|
(PRUint32)ceil((diff / (mTimeout - mStartTime)) * TICK_MAX);
|
|
|
|
// we want ticks to ascend and descend according to the direction.
|
|
|
|
if (mState == FADE_OUT) {
|
|
|
|
tick = (PRUint32)abs(tick - TICK_MAX);
|
|
|
|
}
|
|
|
|
return tick;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* TimeoutUsed - for fades that have not completes, returns the
|
|
|
|
* amount of time used thus far in the current transition in msec.
|
|
|
|
*/
|
|
|
|
TimeDuration TimeoutUsed() {
|
|
|
|
TimeDuration used = TimeStamp::Now() - mStartTime;
|
|
|
|
TimeDuration totalTime = mTimeout - mStartTime;
|
|
|
|
return NS_MIN(used, totalTime);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Misc. data getters/setters
|
|
|
|
*/
|
|
|
|
TimeStamp GetTimeout() { return mTimeout; }
|
|
|
|
FadeState GetState() { return mState; }
|
|
|
|
void FadeInFinished() { mState = FADE_IN_FINISHED; }
|
|
|
|
PRUint32 GetUserData() { return mUserData; }
|
|
|
|
void SetUserData(PRUint32 aUserData) { mUserData = aUserData; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
TimeStamp mTimeout;
|
|
|
|
TimeStamp mStartTime;
|
|
|
|
FadeState mState;
|
|
|
|
PRUint32 mUserData;
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* nsNativeTheme fade data helpers
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Retrieves the FadeData object associated with this content, or null.
|
|
|
|
FadeData* GetFade(nsIContent* aContent);
|
|
|
|
// Retrieves the current fade state or FADE_NOTACTIVE.
|
|
|
|
FadeState GetFadeState(nsIContent* aContent);
|
|
|
|
// Retrieves the current tick count for a fade transition or 0. Ticks
|
|
|
|
// range from 0 -> TICK_MAX. For FADE_IN transitions ticks increase,
|
|
|
|
// for FADE_OUT transitions ticks decrease.
|
|
|
|
PRUint32 GetFadeTicks(nsIContent* aContent);
|
|
|
|
// Retrieves the alpha value (0->1) corresponding to the current tick
|
|
|
|
// count for a fade transition, or 0.
|
|
|
|
double GetFadeAlpha(nsIContent* aContent);
|
|
|
|
// Get/set consumer data. Valid across each call to QACRFF.
|
|
|
|
PRUint32 GetFadeUserData(nsIContent* aContent);
|
|
|
|
void SetFadeUserData(nsIContent* aContent, PRUint32 aUserData);
|
|
|
|
// Cancel an active fade and free its resources.
|
|
|
|
void CancelFade(nsIContent* aContent);
|
|
|
|
// Mark a fade as FADE_IN_FINISHED.
|
|
|
|
void FinishFadeIn(nsIContent* aContent);
|
|
|
|
|
2010-11-13 00:19:38 -08:00
|
|
|
private:
|
2012-03-07 07:29:21 -08:00
|
|
|
nsresult InitFadeList();
|
|
|
|
|
2010-11-13 00:19:38 -08:00
|
|
|
PRUint32 mAnimatedContentTimeout;
|
|
|
|
nsCOMPtr<nsITimer> mAnimatedContentTimer;
|
2012-03-07 07:29:21 -08:00
|
|
|
// Render refresh list - nsIContent contains the content
|
|
|
|
// that will be invalidated when mAnimatedContentTimer fires.
|
|
|
|
// Cleared on every call to mAnimatedContentTimer Notify.
|
2010-11-13 00:19:38 -08:00
|
|
|
nsAutoTArray<nsCOMPtr<nsIContent>, 20> mAnimatedContentList;
|
2012-03-07 07:29:21 -08:00
|
|
|
// Fade list data - nsISupportsHashKey contains the nsIContent
|
|
|
|
// associated with an active fade.
|
|
|
|
nsClassHashtable<nsISupportsHashKey, FadeData> mAnimatedFadesList;
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|