Bug 1296516: Indentation nits in nsFrameManager. r=heycam

MozReview-Commit-ID: L98VVegeATX
This commit is contained in:
Emilio Cobos Álvarez 2017-03-19 12:11:34 +01:00
Родитель 6c40f8a40b
Коммит a079d79f65
1 изменённых файлов: 23 добавлений и 28 удалений

Просмотреть файл

@ -33,11 +33,12 @@ namespace mozilla {
* Node in a linked list, containing the style for an element that
* does not have a frame but whose parent does have a frame.
*/
struct UndisplayedNode {
struct UndisplayedNode
{
UndisplayedNode(nsIContent* aContent, nsStyleContext* aStyle)
: mContent(aContent),
mStyle(aStyle),
mNext(nullptr)
: mContent(aContent)
, mStyle(aStyle)
, mNext(nullptr)
{
MOZ_COUNT_CTOR(mozilla::UndisplayedNode);
}
@ -156,8 +157,7 @@ public:
/**
* Register aContent having a display:contents style context.
*/
void SetDisplayContents(nsIContent* aContent,
nsStyleContext* aStyleContext);
void SetDisplayContents(nsIContent* aContent, nsStyleContext* aStyleContext);
/**
* Change the registered style context for aContent to aStyleContext.
*/
@ -172,8 +172,7 @@ public:
* If found, then also unregister any display:contents and display:none
* style contexts for its descendants.
*/
void ClearDisplayContentsIn(nsIContent* aContent,
nsIContent* aParentContent);
void ClearDisplayContentsIn(nsIContent* aContent, nsIContent* aParentContent);
void ClearAllDisplayContentsIn(nsIContent* aParentContent);
// Functions for manipulating the frame model
@ -186,8 +185,7 @@ public:
nsIFrame* aPrevFrame,
nsFrameList& aFrameList);
void RemoveFrame(ChildListID aListID,
nsIFrame* aOldFrame);
void RemoveFrame(ChildListID aListID, nsIFrame* aOldFrame);
/*
* Notification that a frame is about to be destroyed. This allows any
@ -204,20 +202,17 @@ public:
* of aFrame.
*/
void CaptureFrameState(nsIFrame* aFrame,
nsILayoutHistoryState* aState);
void CaptureFrameState(nsIFrame* aFrame, nsILayoutHistoryState* aState);
void RestoreFrameState(nsIFrame* aFrame,
nsILayoutHistoryState* aState);
void RestoreFrameState(nsIFrame* aFrame, nsILayoutHistoryState* aState);
/*
* Add/restore state for one frame
*/
void CaptureFrameStateFor(nsIFrame* aFrame,
nsILayoutHistoryState* aState);
void CaptureFrameStateFor(nsIFrame* aFrame, nsILayoutHistoryState* aState);
void RestoreFrameStateFor(nsIFrame* aFrame, nsILayoutHistoryState* aState);
void RestoreFrameStateFor(nsIFrame* aFrame,
nsILayoutHistoryState* aState);
protected:
static nsStyleContext* GetStyleContextInMap(UndisplayedMap* aMap,
const nsIContent* aContent);