diff --git a/mozilla/layout/generic/nsLineLayout.h b/mozilla/layout/generic/nsLineLayout.h index e2fa3a169a6..7ca298d9e62 100644 --- a/mozilla/layout/generic/nsLineLayout.h +++ b/mozilla/layout/generic/nsLineLayout.h @@ -70,6 +70,7 @@ public: mTotalPlacedFrames = 0; mColumn = 0; mSkipLeadingWS = PR_TRUE; + mBRFrame = nsnull; #ifdef NS_DEBUG mPlacedFrames.Clear(); #endif @@ -92,6 +93,14 @@ public: return mTotalPlacedFrames; } + void SetBRFrame(nsIFrame* aFrame) { + mBRFrame = aFrame; + } + + nsIFrame* GetBRFrame() const { + return mBRFrame; + } + // -------------------------------------------------- // Reset the text-run information in preparation for a FindTextRuns @@ -145,6 +154,8 @@ public: PRBool mSkipLeadingWS; protected: + nsIFrame* mBRFrame; + PRInt32 mTotalPlacedFrames; #ifdef NS_DEBUG nsVoidArray mPlacedFrames; diff --git a/mozilla/layout/html/base/src/nsLineLayout.h b/mozilla/layout/html/base/src/nsLineLayout.h index e2fa3a169a6..7ca298d9e62 100644 --- a/mozilla/layout/html/base/src/nsLineLayout.h +++ b/mozilla/layout/html/base/src/nsLineLayout.h @@ -70,6 +70,7 @@ public: mTotalPlacedFrames = 0; mColumn = 0; mSkipLeadingWS = PR_TRUE; + mBRFrame = nsnull; #ifdef NS_DEBUG mPlacedFrames.Clear(); #endif @@ -92,6 +93,14 @@ public: return mTotalPlacedFrames; } + void SetBRFrame(nsIFrame* aFrame) { + mBRFrame = aFrame; + } + + nsIFrame* GetBRFrame() const { + return mBRFrame; + } + // -------------------------------------------------- // Reset the text-run information in preparation for a FindTextRuns @@ -145,6 +154,8 @@ public: PRBool mSkipLeadingWS; protected: + nsIFrame* mBRFrame; + PRInt32 mTotalPlacedFrames; #ifdef NS_DEBUG nsVoidArray mPlacedFrames;