diff --git a/layout/generic/nsFontInflationData.cpp b/layout/generic/nsFontInflationData.cpp index 27aec4dcc97..0a629e2a19f 100644 --- a/layout/generic/nsFontInflationData.cpp +++ b/layout/generic/nsFontInflationData.cpp @@ -235,6 +235,7 @@ nsFontInflationData::UpdateWidth(const nsHTMLReflowState &aReflowState) mTextDirty = true; } + mNCAWidth = newNCAWidth; mTextThreshold = newTextThreshold; mInflationEnabled = mTextAmount >= mTextThreshold; } diff --git a/layout/generic/nsFontInflationData.h b/layout/generic/nsFontInflationData.h index ede8aadd487..bf0a30f5569 100644 --- a/layout/generic/nsFontInflationData.h +++ b/layout/generic/nsFontInflationData.h @@ -64,6 +64,10 @@ public: return mInflationEnabled; } + nscoord EffectiveWidth() const { + return mNCAWidth; + } + private: nsFontInflationData(nsIFrame* aBFCFrame); @@ -94,6 +98,7 @@ private: } nsIFrame *mBFCFrame; + nscoord mNCAWidth; nscoord mTextAmount, mTextThreshold; bool mInflationEnabled; // for this BFC bool mTextDirty;