зеркало из https://github.com/mozilla/pjs.git
Bug 473390 part 8. Move the <mathml:math> display switching out of the frame constructor and into the frame creation function. r+sr=roc
This commit is contained in:
Родитель
cec3a63e2f
Коммит
a1e67de78a
|
@ -6546,9 +6546,7 @@ nsCSSFrameConstructor::ConstructMathMLFrame(nsFrameConstructorState& aState,
|
|||
newFrame = NS_NewMathMLmrowFrame(mPresShell, aStyleContext);
|
||||
else if (aTag == nsGkAtoms::math) {
|
||||
// root <math> element
|
||||
const nsStyleDisplay* display = aStyleContext->GetStyleDisplay();
|
||||
PRBool isBlock = (NS_STYLE_DISPLAY_BLOCK == display->mDisplay);
|
||||
newFrame = NS_NewMathMLmathFrame(mPresShell, isBlock, aStyleContext);
|
||||
newFrame = NS_NewMathMLmathFrame(mPresShell, aStyleContext);
|
||||
}
|
||||
else {
|
||||
return NS_OK;
|
||||
|
|
|
@ -72,9 +72,9 @@ nsIFrame* NS_NewMathMLmactionFrame(nsIPresShell* aPresShell, nsStyleContext* aCo
|
|||
|
||||
nsIFrame* NS_NewMathMLmathBlockFrame(nsIPresShell* aPresShell, nsStyleContext* aContext, PRUint32 aFlags);
|
||||
nsIFrame* NS_NewMathMLmathInlineFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
|
||||
inline nsIFrame* NS_NewMathMLmathFrame(nsIPresShell* aPresShell, PRBool aIsBlock, nsStyleContext* aContext)
|
||||
inline nsIFrame* NS_NewMathMLmathFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
{
|
||||
return (aIsBlock)
|
||||
return (NS_STYLE_DISPLAY_BLOCK == aContext->GetStyleDisplay()->mDisplay)
|
||||
? NS_NewMathMLmathBlockFrame(aPresShell, aContext, 0)
|
||||
: NS_NewMathMLmathInlineFrame(aPresShell, aContext);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче