From b3f5d9f178707d2d3f4ec96f4958d274e490b701 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Thu, 11 Jun 2009 15:30:24 -0400 Subject: [PATCH] Better build bustage fix for bug 495728 --- layout/base/nsPresContext.h | 3 +++ widget/tests/TestWinTSF.cpp | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/layout/base/nsPresContext.h b/layout/base/nsPresContext.h index bc69bb1874c..8501cdb80fd 100644 --- a/layout/base/nsPresContext.h +++ b/layout/base/nsPresContext.h @@ -69,6 +69,7 @@ #include "nsTArray.h" #include "nsAutoPtr.h" #include "nsThreadUtils.h" +#include "nsContentUtils.h" class nsImageLoader; #ifdef IBMBIDI @@ -1088,6 +1089,8 @@ struct nsAutoLayoutPhase { // Once bug 337957 is fixed this should become an NS_ASSERTION NS_WARN_IF_FALSE(mPresContext->mLayoutPhaseCount[eLayoutPhase_FrameC] == 0, "recurring into frame construction"); + NS_ASSERTION(!nsContentUtils::IsSafeToRunScript(), + "constructing frames and scripts are not blocked"); break; default: break; diff --git a/widget/tests/TestWinTSF.cpp b/widget/tests/TestWinTSF.cpp index 763ef70d21e..b93b214168c 100644 --- a/widget/tests/TestWinTSF.cpp +++ b/widget/tests/TestWinTSF.cpp @@ -58,8 +58,13 @@ // some of the includes make use of internal string types #define nsAString_h___ #define nsString_h___ +#define nsReadableUtils_h___ class nsAFlatString; class nsAFlatCString; +class nsAdoptingString; +class nsAdoptingCString; +class nsXPIDLString; +template class nsReadingIterator; #endif #include "nscore.h" @@ -94,6 +99,7 @@ class nsAFlatCString; #ifndef MOZILLA_INTERNAL_API #undef nsString_h___ #undef nsAString_h___ +#undef nsReadableUtils_h___ #endif static NS_DEFINE_CID(kAppShellCID, NS_APPSHELL_CID);