Look for ::first-letter frames in relative positioned inlines too. b=264799 r=bzbarsky sr=dbaron

This commit is contained in:
mats.palmgren%bredband.net 2004-11-26 20:39:30 +00:00
Родитель 4df13a26fd
Коммит 6925dad5f1
2 изменённых файлов: 8 добавлений и 4 удалений

Просмотреть файл

@ -12380,7 +12380,8 @@ nsCSSFrameConstructor::WrapFramesInFirstLetterFrame(
} }
} }
else if ((nsLayoutAtoms::inlineFrame == frameType) || else if ((nsLayoutAtoms::inlineFrame == frameType) ||
(nsLayoutAtoms::lineFrame == frameType)) { (nsLayoutAtoms::lineFrame == frameType) ||
(nsLayoutAtoms::positionedInlineFrame == frameType)) {
nsIFrame* kids = frame->GetFirstChild(nsnull); nsIFrame* kids = frame->GetFirstChild(nsnull);
WrapFramesInFirstLetterFrame(aPresShell, aPresContext, aState, frame, kids, WrapFramesInFirstLetterFrame(aPresShell, aPresContext, aState, frame, kids,
aModifiedParent, aTextFrame, aModifiedParent, aTextFrame,
@ -12570,7 +12571,8 @@ nsCSSFrameConstructor::RemoveFirstLetterFrames(nsPresContext* aPresContext,
break; break;
} }
else if ((nsLayoutAtoms::inlineFrame == frameType) || else if ((nsLayoutAtoms::inlineFrame == frameType) ||
(nsLayoutAtoms::lineFrame == frameType)) { (nsLayoutAtoms::lineFrame == frameType) ||
(nsLayoutAtoms::positionedInlineFrame == frameType)) {
// Look inside child inline frame for the letter frame // Look inside child inline frame for the letter frame
RemoveFirstLetterFrames(aPresContext, aPresShell, aFrameManager, kid, RemoveFirstLetterFrames(aPresContext, aPresShell, aFrameManager, kid,
aStopLooking); aStopLooking);

Просмотреть файл

@ -12380,7 +12380,8 @@ nsCSSFrameConstructor::WrapFramesInFirstLetterFrame(
} }
} }
else if ((nsLayoutAtoms::inlineFrame == frameType) || else if ((nsLayoutAtoms::inlineFrame == frameType) ||
(nsLayoutAtoms::lineFrame == frameType)) { (nsLayoutAtoms::lineFrame == frameType) ||
(nsLayoutAtoms::positionedInlineFrame == frameType)) {
nsIFrame* kids = frame->GetFirstChild(nsnull); nsIFrame* kids = frame->GetFirstChild(nsnull);
WrapFramesInFirstLetterFrame(aPresShell, aPresContext, aState, frame, kids, WrapFramesInFirstLetterFrame(aPresShell, aPresContext, aState, frame, kids,
aModifiedParent, aTextFrame, aModifiedParent, aTextFrame,
@ -12570,7 +12571,8 @@ nsCSSFrameConstructor::RemoveFirstLetterFrames(nsPresContext* aPresContext,
break; break;
} }
else if ((nsLayoutAtoms::inlineFrame == frameType) || else if ((nsLayoutAtoms::inlineFrame == frameType) ||
(nsLayoutAtoms::lineFrame == frameType)) { (nsLayoutAtoms::lineFrame == frameType) ||
(nsLayoutAtoms::positionedInlineFrame == frameType)) {
// Look inside child inline frame for the letter frame // Look inside child inline frame for the letter frame
RemoveFirstLetterFrames(aPresContext, aPresShell, aFrameManager, kid, RemoveFirstLetterFrames(aPresContext, aPresShell, aFrameManager, kid,
aStopLooking); aStopLooking);