зеркало из https://github.com/mozilla/gecko-dev.git
[MathML] Removing unecessary #include of header files
This commit is contained in:
Родитель
5dfc8de829
Коммит
d3653d18a2
|
@ -37,8 +37,6 @@
|
|||
#include "nsIFontMetrics.h"
|
||||
#include "nsStyleUtil.h"
|
||||
|
||||
#include "nsMathMLAtoms.h"
|
||||
#include "nsMathMLParts.h"
|
||||
#include "nsMathMLmfencedFrame.h"
|
||||
|
||||
//
|
||||
|
|
|
@ -37,8 +37,6 @@
|
|||
#include "nsIFontMetrics.h"
|
||||
#include "nsStyleUtil.h"
|
||||
|
||||
#include "nsMathMLAtoms.h"
|
||||
#include "nsMathMLParts.h"
|
||||
#include "nsMathMLmfracFrame.h"
|
||||
|
||||
//
|
||||
|
@ -125,15 +123,16 @@ nsMathMLmfracFrame::Paint(nsIPresContext& aPresContext,
|
|||
nsFramePaintLayer aWhichLayer)
|
||||
{
|
||||
nsresult rv = NS_OK;
|
||||
|
||||
if (NS_FRAME_PAINT_LAYER_FOREGROUND != aWhichLayer) {
|
||||
return rv;
|
||||
}
|
||||
|
||||
/////////////
|
||||
// paint the numerator and denominator
|
||||
rv = nsMathMLContainerFrame::Paint(aPresContext, aRenderingContext,
|
||||
aDirtyRect, aWhichLayer);
|
||||
|
||||
if (NS_FRAME_PAINT_LAYER_FOREGROUND != aWhichLayer) {
|
||||
return rv;
|
||||
}
|
||||
|
||||
////////////
|
||||
// paint the fraction line
|
||||
if (NS_SUCCEEDED(rv) && 0 < mLineThickness) {
|
||||
|
|
|
@ -68,13 +68,7 @@ element. (See Section 3.3.4.)
|
|||
|
||||
/*
|
||||
TODO:
|
||||
- Take care of displaystyle=true|false and inheritered <mstyle>
|
||||
Before reflow, <mfrac> should change the font-size of the children with scriptlevel<=2
|
||||
How to do it? From the DOM interface?
|
||||
From direct CSS manipulation? In nsCSSStyleRule, there is
|
||||
nsCSSFont* ourFont;
|
||||
if (NS_OK == aDeclaration->GetData(kCSSFontSID, (nsCSSStruct**)&ourFont))
|
||||
|
||||
Units...
|
||||
- CalcLength(..) in nsCSSStyleRule.cpp is where CSS units are implemented.
|
||||
How to use that for linethickness and, in general, how to factor the use
|
||||
of units in the MathML world?
|
||||
|
|
|
@ -37,8 +37,6 @@
|
|||
#include "nsIFontMetrics.h"
|
||||
#include "nsStyleUtil.h"
|
||||
|
||||
#include "nsMathMLAtoms.h"
|
||||
#include "nsMathMLParts.h"
|
||||
#include "nsMathMLmoverFrame.h"
|
||||
|
||||
//
|
||||
|
|
|
@ -37,8 +37,6 @@
|
|||
#include "nsIFontMetrics.h"
|
||||
#include "nsStyleUtil.h"
|
||||
|
||||
#include "nsMathMLAtoms.h"
|
||||
#include "nsMathMLParts.h"
|
||||
#include "nsMathMLmpaddedFrame.h"
|
||||
|
||||
//
|
||||
|
|
|
@ -37,8 +37,6 @@
|
|||
#include "nsIFontMetrics.h"
|
||||
#include "nsStyleUtil.h"
|
||||
|
||||
#include "nsMathMLAtoms.h"
|
||||
#include "nsMathMLParts.h"
|
||||
#include "nsMathMLmphantomFrame.h"
|
||||
|
||||
//
|
||||
|
|
|
@ -37,8 +37,6 @@
|
|||
#include "nsIFontMetrics.h"
|
||||
#include "nsStyleUtil.h"
|
||||
|
||||
#include "nsMathMLAtoms.h"
|
||||
#include "nsMathMLParts.h"
|
||||
#include "nsMathMLmrootFrame.h"
|
||||
|
||||
//
|
||||
|
|
|
@ -37,8 +37,6 @@
|
|||
#include "nsIFontMetrics.h"
|
||||
#include "nsStyleUtil.h"
|
||||
|
||||
#include "nsMathMLAtoms.h"
|
||||
#include "nsMathMLParts.h"
|
||||
#include "nsMathMLmrowFrame.h"
|
||||
|
||||
//
|
||||
|
|
|
@ -37,8 +37,6 @@
|
|||
#include "nsIFontMetrics.h"
|
||||
#include "nsStyleUtil.h"
|
||||
|
||||
#include "nsMathMLAtoms.h"
|
||||
#include "nsMathMLParts.h"
|
||||
#include "nsMathMLmstyleFrame.h"
|
||||
|
||||
//
|
||||
|
|
|
@ -37,8 +37,6 @@
|
|||
#include "nsIFontMetrics.h"
|
||||
#include "nsStyleUtil.h"
|
||||
|
||||
#include "nsMathMLAtoms.h"
|
||||
#include "nsMathMLParts.h"
|
||||
#include "nsMathMLmsubFrame.h"
|
||||
|
||||
//
|
||||
|
|
|
@ -37,8 +37,6 @@
|
|||
#include "nsIFontMetrics.h"
|
||||
#include "nsStyleUtil.h"
|
||||
|
||||
#include "nsMathMLAtoms.h"
|
||||
#include "nsMathMLParts.h"
|
||||
#include "nsMathMLmsubsupFrame.h"
|
||||
|
||||
//
|
||||
|
|
|
@ -37,8 +37,6 @@
|
|||
#include "nsIFontMetrics.h"
|
||||
#include "nsStyleUtil.h"
|
||||
|
||||
#include "nsMathMLAtoms.h"
|
||||
#include "nsMathMLParts.h"
|
||||
#include "nsMathMLmsupFrame.h"
|
||||
|
||||
//
|
||||
|
|
Загрузка…
Ссылка в новой задаче