From 9ea43da1140fde5c5d67db26920690f581630b50 Mon Sep 17 00:00:00 2001 From: "reed@reedloden.com" Date: Thu, 18 Oct 2007 18:33:52 -0700 Subject: [PATCH] Fixing bustage from landing of bug 397510. --- layout/generic/nsTextFrameThebes.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/layout/generic/nsTextFrameThebes.cpp b/layout/generic/nsTextFrameThebes.cpp index fe3fadbf362..61dea577da9 100644 --- a/layout/generic/nsTextFrameThebes.cpp +++ b/layout/generic/nsTextFrameThebes.cpp @@ -602,6 +602,9 @@ public: mMaxTextLength = 0; mDoubleByteText = PR_FALSE; } + void ResetLineBreaker() { + mLineBreaker.Reset(); + } void AccumulateRunInfo(nsTextFrame* aFrame); void BuildTextRunForFrames(void* aTextBuffer); void AssignTextRun(gfxTextRun* aTextRun); @@ -962,7 +965,7 @@ BuildTextRuns(gfxContext* aContext, nsTextFrame* aForFrame, // Note that we must already have finished the textrun for aForFrame, // because we've seen the end of a textrun in a line after the line // containing aForFrame. - mLineBreaker.Reset(); + scanner.ResetLineBreaker(); return; } }