Bug 642381, part 3: Hoist Maybe into mfbt and eliminate Gecko's use of jstl. r=jorendorff,luke
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user