mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
46dbfe26be
commit
e6e294d232
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user