Bug 1061028 - IsInlineFrame() is a synonym for IsFrameOfType(nsIFrame::eLineParticipant) so it matches text frames too, which are not nsContainerFrames. r=roc

This commit is contained in:
Mats Palmgren 2014-09-03 14:14:01 -04:00
parent e1bc38b5d4
commit 7667ee1d12

View File

@ -10549,12 +10549,15 @@ nsCSSFrameConstructor::RemoveFirstLetterFrames(nsPresContext* aPresContext,
break;
}
else if (IsInlineFrame(kid)) {
// Look inside child inline frame for the letter frame
RemoveFirstLetterFrames(aPresContext, aPresShell,
static_cast<nsContainerFrame*>(kid),
aBlockFrame, aStopLooking);
if (*aStopLooking) {
break;
nsContainerFrame* kidAsContainerFrame = do_QueryFrame(kid);
if (kidAsContainerFrame) {
// Look inside child inline frame for the letter frame.
RemoveFirstLetterFrames(aPresContext, aPresShell,
kidAsContainerFrame,
aBlockFrame, aStopLooking);
if (*aStopLooking) {
break;
}
}
}
prevSibling = kid;