Backed out changeset ae2093359899 (Bug 553359) for tsvg_opacity regression.

This commit is contained in:
Timothy Nikkel 2010-04-11 19:26:41 -05:00
Родитель b696838d2e
Коммит 54c2a7920d
3 изменённых файлов: 4 добавлений и 30 удалений

Просмотреть файл

@ -2415,12 +2415,6 @@ nsDocShell::SetItemType(PRInt32 aItemType)
// disable auth prompting for anything but content // disable auth prompting for anything but content
mAllowAuth = mItemType == typeContent; mAllowAuth = mItemType == typeContent;
nsRefPtr<nsPresContext> presContext = nsnull;
GetPresContext(getter_AddRefs(presContext));
if (presContext) {
presContext->UpdateIsChromeCache();
}
return NS_OK; return NS_OK;
} }

Просмотреть файл

@ -1335,7 +1335,6 @@ nsPresContext::SetContainer(nsISupports* aHandler)
if (mContainer) { if (mContainer) {
GetDocumentColorPreferences(); GetDocumentColorPreferences();
} }
UpdateIsChromeCacheInternal();
} }
already_AddRefed<nsISupports> already_AddRefed<nsISupports>
@ -1646,8 +1645,8 @@ nsPresContext::CountReflows(const char * aName, nsIFrame * aFrame)
} }
#endif #endif
void PRBool
nsPresContext::UpdateIsChromeCacheInternal() nsPresContext::IsChrome() const
{ {
PRBool isChrome = PR_FALSE; PRBool isChrome = PR_FALSE;
nsCOMPtr<nsISupports> container = GetContainer(); nsCOMPtr<nsISupports> container = GetContainer();
@ -1662,13 +1661,7 @@ nsPresContext::UpdateIsChromeCacheInternal()
} }
} }
} }
mIsChrome = isChrome; return isChrome;
}
void
nsPresContext::UpdateIsChromeCacheExternal()
{
UpdateIsChromeCacheInternal();
} }
/* virtual */ PRBool /* virtual */ PRBool

Просмотреть файл

@ -810,17 +810,7 @@ public:
mType == eContext_PrintPreview); } mType == eContext_PrintPreview); }
// Is this presentation in a chrome docshell? // Is this presentation in a chrome docshell?
PRBool IsChrome() const { return mIsChrome; } PRBool IsChrome() const;
virtual void UpdateIsChromeCacheExternal();
void UpdateIsChromeCacheInternal();
#ifdef _IMPL_NS_LAYOUT
void UpdateIsChromeCache()
{ UpdateIsChromeCacheInternal(); }
#else
void UpdateIsChromeCache()
{ UpdateIsChromeCacheExternal(); }
#endif
// Public API for native theme code to get style internals. // Public API for native theme code to get style internals.
virtual PRBool HasAuthorSpecifiedRules(nsIFrame *aFrame, PRUint32 ruleTypeMask) const; virtual PRBool HasAuthorSpecifiedRules(nsIFrame *aFrame, PRUint32 ruleTypeMask) const;
@ -1125,9 +1115,6 @@ protected:
unsigned mProcessingRestyles : 1; unsigned mProcessingRestyles : 1;
unsigned mProcessingAnimationStyleChange : 1; unsigned mProcessingAnimationStyleChange : 1;
// Cache whether we are chrome or not because it is expensive.
unsigned mIsChrome : 1;
#ifdef DEBUG #ifdef DEBUG
PRBool mInitialized; PRBool mInitialized;
#endif #endif