Bug 969099 - Initialize nsPresContext::mIsChrome eagerly. r=roc

This commit is contained in:
Cameron McCormack
2014-02-07 14:08:49 +11:00
parent 31e8106ad9
commit 3d0c2f1d70
3 changed files with 7 additions and 31 deletions

View File

@@ -2896,7 +2896,7 @@ nsDocShell::SetItemType(int32_t aItemType)
nsRefPtr<nsPresContext> presContext = nullptr;
GetPresContext(getter_AddRefs(presContext));
if (presContext) {
presContext->InvalidateIsChromeCache();
presContext->UpdateIsChrome();
}
return NS_OK;