mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1108429 part 3 - Add flag to indicate the existance of ruby. r=roc
--HG-- extra : source : 322ca21457397001c361db0ea766367d19b9b9a1
This commit is contained in:
parent
20e60d07f7
commit
ea6940e783
@ -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
|
||||
|
@ -578,6 +578,7 @@ protected:
|
||||
bool mHasBullet : 1;
|
||||
bool mDirtyNextLine : 1;
|
||||
bool mLineAtStart : 1;
|
||||
bool mHasRuby : 1;
|
||||
|
||||
int32_t mSpanDepth;
|
||||
#ifdef DEBUG
|
||||
|
Loading…
Reference in New Issue
Block a user