Bug 1139709. Address review comments. r=mats

This commit is contained in:
Robert O'Callahan 2015-03-05 17:22:26 +13:00
parent 1f0e9c4090
commit e6cf2ce6e5
3 changed files with 9 additions and 8 deletions

View File

@ -981,7 +981,7 @@ nsMathMLContainerFrame::MarkIntrinsicISizesDirty()
}
void
nsMathMLContainerFrame::UpdateIntrinsicWidth(nsRenderingContext *aRenderingContext)
nsMathMLContainerFrame::UpdateIntrinsicWidth(nsRenderingContext* aRenderingContext)
{
if (mIntrinsicWidth == NS_INTRINSIC_WIDTH_UNKNOWN) {
nsHTMLReflowMetrics desiredSize(GetWritingMode());
@ -995,7 +995,7 @@ nsMathMLContainerFrame::UpdateIntrinsicWidth(nsRenderingContext *aRenderingConte
}
/* virtual */ nscoord
nsMathMLContainerFrame::GetMinISize(nsRenderingContext *aRenderingContext)
nsMathMLContainerFrame::GetMinISize(nsRenderingContext* aRenderingContext)
{
nscoord result;
DISPLAY_MIN_WIDTH(this, result);
@ -1005,7 +1005,7 @@ nsMathMLContainerFrame::GetMinISize(nsRenderingContext *aRenderingContext)
}
/* virtual */ nscoord
nsMathMLContainerFrame::GetPrefISize(nsRenderingContext *aRenderingContext)
nsMathMLContainerFrame::GetPrefISize(nsRenderingContext* aRenderingContext)
{
nscoord result;
DISPLAY_PREF_WIDTH(this, result);
@ -1015,7 +1015,8 @@ nsMathMLContainerFrame::GetPrefISize(nsRenderingContext *aRenderingContext)
}
/* virtual */ void
nsMathMLContainerFrame::GetIntrinsicISizeMetrics(nsRenderingContext* aRenderingContext, nsHTMLReflowMetrics& aDesiredSize)
nsMathMLContainerFrame::GetIntrinsicISizeMetrics(nsRenderingContext* aRenderingContext,
nsHTMLReflowMetrics& aDesiredSize)
{
// Get child widths
nsIFrame* childFrame = mFrames.FirstChild();

View File

@ -99,8 +99,8 @@ public:
* Both GetMinISize and GetPrefISize use the intrinsic width metrics
* returned by GetIntrinsicMetrics, including ink overflow.
*/
virtual nscoord GetMinISize(nsRenderingContext *aRenderingContext) MOZ_OVERRIDE;
virtual nscoord GetPrefISize(nsRenderingContext *aRenderingContext) MOZ_OVERRIDE;
virtual nscoord GetMinISize(nsRenderingContext* aRenderingContext) MOZ_OVERRIDE;
virtual nscoord GetPrefISize(nsRenderingContext* aRenderingContext) MOZ_OVERRIDE;
/**
* Return the intrinsic horizontal metrics of the frame's content area.
@ -399,7 +399,7 @@ protected:
/**
* Recompute mIntrinsicWidth if it's not already up to date.
*/
void UpdateIntrinsicWidth(nsRenderingContext *aRenderingContext);
void UpdateIntrinsicWidth(nsRenderingContext* aRenderingContext);
nscoord mIntrinsicWidth;

View File

@ -1035,7 +1035,7 @@ nsMathMLmoFrame::MarkIntrinsicISizesDirty()
}
/* virtual */ void
nsMathMLmoFrame::GetIntrinsicISizeMetrics(nsRenderingContext *aRenderingContext,
nsMathMLmoFrame::GetIntrinsicISizeMetrics(nsRenderingContext* aRenderingContext,
nsHTMLReflowMetrics& aDesiredSize)
{
ProcessOperatorData();