Bug 403004. Let the text-transform style setting loop cross non-fluid continuation boundaries. r+sr=bz
authorroc+@cs.cmu.edu
Thu, 08 Nov 2007 15:37:34 -0800
changeset 7695 70e74269874560254aa6f50dfaaaf0a0f6fd2c79
parent 7694 d8d26c32fd6fa37e3bdfdaab533bb7f519bdd477
child 7696 0475f4bfd0838cb0d85c41743e20431513c389cb
push idunknown
push userunknown
push dateunknown
bugs403004
milestone1.9b2pre
Bug 403004. Let the text-transform style setting loop cross non-fluid continuation boundaries. r+sr=bz
layout/generic/nsTextFrameThebes.cpp
--- a/layout/generic/nsTextFrameThebes.cpp
+++ b/layout/generic/nsTextFrameThebes.cpp
@@ -1507,17 +1507,17 @@ BuildTextRunsScanner::BuildTextRunForFra
   }
   nsTArray<nsStyleContext*> styles;
   if (transformingFactory) {
     iter.SetOriginalOffset(0);
     for (i = 0; i < mMappedFlows.Length(); ++i) {
       MappedFlow* mappedFlow = &mMappedFlows[i];
       nsTextFrame* f;
       for (f = mappedFlow->mStartFrame; f != mappedFlow->mEndFrame;
-           f = static_cast<nsTextFrame*>(f->GetNextInFlow())) {
+           f = static_cast<nsTextFrame*>(f->GetNextContinuation())) {
         PRUint32 offset = iter.GetSkippedOffset();
         iter.AdvanceOriginal(f->GetContentLength());
         PRUint32 end = iter.GetSkippedOffset();
         nsStyleContext* sc = f->GetStyleContext();
         PRUint32 j;
         for (j = offset; j < end; ++j) {
           styles.AppendElement(sc);
         }