Bug 1108429 part 3 - Add flag to indicate the existance of ruby. r=roc

--HG--
extra : source : 322ca21457397001c361db0ea766367d19b9b9a1
This commit is contained in:
Xidorn Quan 2014-12-13 11:48:30 +11:00
parent 7ecd0b6372
commit 00f5895dae
2 changed files with 6 additions and 1 deletions

View File

@ -77,7 +77,8 @@ nsLineLayout::nsLineLayout(nsPresContext* aPresContext,
mInFirstLetter(false),
mHasBullet(false),
mDirtyNextLine(false),
mLineAtStart(false)
mLineAtStart(false),
mHasRuby(false)
{
MOZ_ASSERT(aOuterReflowState, "aOuterReflowState must not be null");
NS_ASSERTION(aFloatManager || aOuterReflowState->frame->GetType() ==
@ -1084,6 +1085,9 @@ nsLineLayout::ReflowFrame(nsIFrame* aFrame,
// nonempty leaf content has been placed
mLineAtStart = false;
}
if (nsGkAtoms::rubyFrame == frameType) {
mHasRuby = true;
}
}
// Place the frame, updating aBounds with the final size and

View File

@ -578,6 +578,7 @@ protected:
bool mHasBullet : 1;
bool mDirtyNextLine : 1;
bool mLineAtStart : 1;
bool mHasRuby : 1;
int32_t mSpanDepth;
#ifdef DEBUG