зеркало из https://github.com/mozilla/gecko-dev.git
Bug 945074 - Give continuing nsFirstLetterFrame child a style context that inherits from what the nsFirstLetterFrame inherits from. r=dbaron
This commit is contained in:
Родитель
dd64672e33
Коммит
a99245716d
|
@ -376,7 +376,9 @@ nsFirstLetterFrame::DrainOverflowFrames(nsPresContext* aPresContext)
|
|||
if (kidContent) {
|
||||
NS_ASSERTION(kidContent->IsNodeOfType(nsINode::eTEXT),
|
||||
"should contain only text nodes");
|
||||
sc = aPresContext->StyleSet()->ResolveStyleForNonElement(mStyleContext);
|
||||
nsStyleContext* parentSC = prevInFlow ? mStyleContext->GetParent() :
|
||||
mStyleContext;
|
||||
sc = aPresContext->StyleSet()->ResolveStyleForNonElement(parentSC);
|
||||
kid->SetStyleContext(sc);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче