mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 771879 - Minor code formatting tweaks. r=roc
This commit is contained in:
parent
eea8c9dc34
commit
bd91987c75
@ -596,7 +596,6 @@ nsHTMLReflowState::InitFrameType(nsIAtom* aFrameType)
|
||||
// takes precedence over float which takes precedence over display.
|
||||
// XXXldb nsRuleNode::ComputeDisplayData should take care of this, right?
|
||||
// Make sure the frame was actually moved out of the flow, and don't
|
||||
|
||||
// just assume what the style says, because we might not have had a
|
||||
// useful float/absolute containing block
|
||||
|
||||
@ -1642,6 +1641,7 @@ CalcQuirkContainingBlockHeight(const nsHTMLReflowState* aCBReflowState)
|
||||
// Make sure not to return a negative height here!
|
||||
return NS_MAX(result, 0);
|
||||
}
|
||||
|
||||
// Called by InitConstraints() to compute the containing block rectangle for
|
||||
// the element. Handles the special logic for absolutely positioned elements
|
||||
void
|
||||
@ -1672,7 +1672,7 @@ nsHTMLReflowState::ComputeContainingBlockRectangle(nsPresContext* aPres
|
||||
nsMargin computedBorder = aContainingBlockRS->mComputedBorderPadding -
|
||||
aContainingBlockRS->mComputedPadding;
|
||||
aContainingBlockWidth = aContainingBlockRS->frame->GetRect().width -
|
||||
computedBorder.LeftRight();;
|
||||
computedBorder.LeftRight();
|
||||
NS_ASSERTION(aContainingBlockWidth >= 0,
|
||||
"Negative containing block width!");
|
||||
aContainingBlockHeight = aContainingBlockRS->frame->GetRect().height -
|
||||
|
@ -901,7 +901,7 @@ public:
|
||||
// The initial overflow area passed to FinishAndStoreOverflow. This is only set
|
||||
// on frames that Preserve3D(), and when at least one of the overflow areas
|
||||
// differs from the frame bound rect.
|
||||
NS_DECLARE_FRAME_PROPERTY(InitialOverflowProperty, DestroyOverflowAreas);
|
||||
NS_DECLARE_FRAME_PROPERTY(InitialOverflowProperty, DestroyOverflowAreas)
|
||||
|
||||
NS_DECLARE_FRAME_PROPERTY(UsedMarginProperty, DestroyMargin)
|
||||
NS_DECLARE_FRAME_PROPERTY(UsedPaddingProperty, DestroyMargin)
|
||||
@ -2975,7 +2975,7 @@ protected:
|
||||
* Input: mDirection
|
||||
* Output: mResultContent, mContentOffset
|
||||
*/
|
||||
nsresult PeekOffsetParagraph(nsPeekOffsetStruct *aPos);
|
||||
nsresult PeekOffsetParagraph(nsPeekOffsetStruct *aPos);
|
||||
|
||||
private:
|
||||
nsOverflowAreas* GetOverflowAreasProperty();
|
||||
|
@ -46,7 +46,6 @@ nsSVGTextPathFrame::Init(nsIContent* aContent,
|
||||
nsCOMPtr<nsIDOMSVGTextPathElement> textPath = do_QueryInterface(aContent);
|
||||
NS_ASSERTION(textPath, "Content is not an SVG textPath");
|
||||
|
||||
|
||||
return nsSVGTextPathFrameBase::Init(aContent, aParent, aPrevInFlow);
|
||||
}
|
||||
#endif /* DEBUG */
|
||||
|
Loading…
Reference in New Issue
Block a user