Bug 642381, part 3: Hoist Maybe into mfbt and eliminate Gecko's use of jstl. r=jorendorff,luke

This commit is contained in:
Chris Jones
2011-04-28 17:48:52 -05:00
parent 0ca94e5bf8
commit e870e569fc
8 changed files with 270 additions and 139 deletions

View File

@@ -46,6 +46,7 @@
#define PL_ARENA_CONST_ALIGN_MASK (sizeof(void*)-1)
#include "plarena.h"
#include "mozilla/Util.h"
#include "nsCOMPtr.h"
#include "nsLineLayout.h"
#include "nsBlockFrame.h"
@@ -66,7 +67,6 @@
#include "nsLayoutUtils.h"
#include "nsTextFrame.h"
#include "nsCSSRendering.h"
#include "jstl.h"
#ifdef DEBUG
#undef NOISY_HORIZONTAL_ALIGN
@@ -84,6 +84,8 @@
#undef REALLY_NOISY_TRIM
#endif
using namespace mozilla;
//----------------------------------------------------------------------
#define FIX_BUG_50257
@@ -786,7 +788,7 @@ nsLineLayout::ReflowFrame(nsIFrame* aFrame,
nscoord availableSpaceOnLine = psd->mRightEdge - psd->mX;
// Setup reflow state for reflowing the frame
js::Maybe<nsHTMLReflowState> reflowStateHolder;
Maybe<nsHTMLReflowState> reflowStateHolder;
if (!isText) {
reflowStateHolder.construct(mPresContext, *psd->mReflowState,
aFrame, availSize);