Bug 1331756 part 4: Miscellaneous whitespace cleanup in nsFrame.h - reindent args, rewrap long methods (whitespace-only, no review)
authorDaniel Holbert <dholbert@cs.stanford.edu>
Tue, 17 Jan 2017 16:27:03 -0800
changeset 374744 84b2961081b54fe08375a5102af5ce4b45f7ff11
parent 374743 dbeeb7728cde4a022994dd84c1e4c98019588c13
child 374745 e229f04d9a4f66b19a1a460f39ee7e57c72b15f1
push id6996
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 20:48:21 +0000
treeherdermozilla-beta@d89512dab048 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1331756
milestone53.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1331756 part 4: Miscellaneous whitespace cleanup in nsFrame.h - reindent args, rewrap long methods (whitespace-only, no review) MozReview-Commit-ID: 6zsFJ8om369
layout/generic/nsFrame.h
--- a/layout/generic/nsFrame.h
+++ b/layout/generic/nsFrame.h
@@ -144,88 +144,94 @@ public:
 
   // nsQueryFrame
   NS_DECL_QUERYFRAME
   void* operator new(size_t, nsIPresShell*) MOZ_MUST_OVERRIDE;
   virtual nsQueryFrame::FrameIID GetFrameId() MOZ_MUST_OVERRIDE;
 
   // nsIFrame
   void Init(nsIContent*       aContent,
-                    nsContainerFrame* aParent,
-                    nsIFrame*         aPrevInFlow) override;
+            nsContainerFrame* aParent,
+            nsIFrame*         aPrevInFlow) override;
   void DestroyFrom(nsIFrame* aDestructRoot) override;
   nsStyleContext* GetAdditionalStyleContext(int32_t aIndex) const override;
   void SetAdditionalStyleContext(int32_t aIndex,
-                                         nsStyleContext* aStyleContext) override;
+                                 nsStyleContext* aStyleContext) override;
   nscoord GetLogicalBaseline(mozilla::WritingMode aWritingMode) const override;
   const nsFrameList& GetChildList(ChildListID aListID) const override;
   void GetChildLists(nsTArray<ChildList>* aLists) const override;
 
-  nsresult HandleEvent(nsPresContext* aPresContext, 
-                                mozilla::WidgetGUIEvent* aEvent,
-                                nsEventStatus* aEventStatus) override;
+  nsresult HandleEvent(nsPresContext* aPresContext,
+                       mozilla::WidgetGUIEvent* aEvent,
+                       nsEventStatus* aEventStatus) override;
   nsresult GetContentForEvent(mozilla::WidgetEvent* aEvent,
-                                       nsIContent** aContent) override;
+                              nsIContent** aContent) override;
   nsresult GetCursor(const nsPoint&    aPoint,
-                              nsIFrame::Cursor& aCursor) override;
+                     nsIFrame::Cursor& aCursor) override;
 
   nsresult GetPointFromOffset(int32_t  inOffset,
-                                       nsPoint* outPoint) override;
+                              nsPoint* outPoint) override;
   nsresult GetCharacterRectsInRange(int32_t aInOffset,
-                                             int32_t aLength,
-                                             nsTArray<nsRect>& aOutRect) override;
+                                    int32_t aLength,
+                                    nsTArray<nsRect>& aOutRect) override;
 
   nsresult GetChildFrameContainingOffset(int32_t    inContentOffset,
-                                                  bool       inHint,
-                                                  int32_t*   outFrameContentOffset,
-                                                  nsIFrame** outChildFrame) override;
+                                         bool       inHint,
+                                         int32_t*   outFrameContentOffset,
+                                         nsIFrame** outChildFrame) override;
 
   static nsresult GetNextPrevLineFromeBlockFrame(nsPresContext* aPresContext,
-                                        nsPeekOffsetStruct *aPos, 
-                                        nsIFrame *aBlockFrame, 
-                                        int32_t aLineStart, 
-                                        int8_t aOutSideLimit
-                                        );
+                                                 nsPeekOffsetStruct *aPos, 
+                                                 nsIFrame *aBlockFrame, 
+                                                 int32_t aLineStart, 
+                                                 int8_t aOutSideLimit);
 
   nsresult CharacterDataChanged(CharacterDataChangeInfo* aInfo) override;
-  nsresult AttributeChanged(int32_t         aNameSpaceID,
-                                     nsIAtom*        aAttribute,
-                                     int32_t         aModType) override;
+  nsresult AttributeChanged(int32_t  aNameSpaceID,
+                            nsIAtom* aAttribute,
+                            int32_t aModType) override;
   nsSplittableType GetSplittableType() const override;
   nsIFrame* GetPrevContinuation() const override;
   void SetPrevContinuation(nsIFrame*) override;
   nsIFrame* GetNextContinuation() const override;
   void SetNextContinuation(nsIFrame*) override;
   nsIFrame* GetPrevInFlowVirtual() const override;
   void SetPrevInFlow(nsIFrame*) override;
   nsIFrame* GetNextInFlowVirtual() const override;
   void SetNextInFlow(nsIFrame*) override;
   nsIAtom* GetType() const override;
 
-  nsresult GetSelectionController(nsPresContext *aPresContext, nsISelectionController **aSelCon) override;
+  nsresult GetSelectionController(nsPresContext *aPresContext,
+                                  nsISelectionController **aSelCon) override;
 
-  FrameSearchResult PeekOffsetNoAmount(bool aForward, int32_t* aOffset) override;
+  FrameSearchResult PeekOffsetNoAmount(bool aForward,
+                                       int32_t* aOffset) override;
   FrameSearchResult PeekOffsetCharacter(bool aForward, int32_t* aOffset,
-                                     bool aRespectClusters = true) override;
-  FrameSearchResult PeekOffsetWord(bool aForward, bool aWordSelectEatSpace, bool aIsKeyboardSelect,
-                                int32_t* aOffset, PeekWordState *aState) override;
+                                        bool aRespectClusters = true) override;
+  FrameSearchResult PeekOffsetWord(bool aForward, bool aWordSelectEatSpace,
+                                   bool aIsKeyboardSelect,
+                                   int32_t* aOffset,
+                                   PeekWordState *aState) override;
   /**
    * Check whether we should break at a boundary between punctuation and
    * non-punctuation. Only call it at a punctuation boundary
    * (i.e. exactly one of the previous and next characters are punctuation).
    * @param aForward true if we're moving forward in content order
    * @param aPunctAfter true if the next character is punctuation
    * @param aWhitespaceAfter true if the next character is whitespace
    */
   bool BreakWordBetweenPunctuation(const PeekWordState* aState,
-                                     bool aForward,
-                                     bool aPunctAfter, bool aWhitespaceAfter,
-                                     bool aIsKeyboardSelect);
+                                   bool aForward,
+                                   bool aPunctAfter, bool aWhitespaceAfter,
+                                   bool aIsKeyboardSelect);
 
-  nsresult CheckVisibility(nsPresContext* aContext, int32_t aStartIndex, int32_t aEndIndex, bool aRecurse, bool *aFinished, bool *_retval) override;
+  nsresult CheckVisibility(nsPresContext* aContext,
+                           int32_t aStartIndex, int32_t aEndIndex,
+                           bool aRecurse, bool *aFinished,
+                           bool *_retval) override;
 
   nsresult GetOffsets(int32_t &aStart, int32_t &aEnd) const override;
   void ChildIsDirty(nsIFrame* aChild) override;
 
 #ifdef ACCESSIBILITY
   mozilla::a11y::AccType AccessibleType() override;
 #endif
 
@@ -250,19 +256,19 @@ public:
 
   bool IsEmpty() override;
   bool IsSelfEmpty() override;
 
   void MarkIntrinsicISizesDirty() override;
   nscoord GetMinISize(nsRenderingContext *aRenderingContext) override;
   nscoord GetPrefISize(nsRenderingContext *aRenderingContext) override;
   void AddInlineMinISize(nsRenderingContext *aRenderingContext,
-                                 InlineMinISizeData *aData) override;
+                         InlineMinISizeData *aData) override;
   void AddInlinePrefISize(nsRenderingContext *aRenderingContext,
-                                  InlinePrefISizeData *aData) override;
+                          InlinePrefISizeData *aData) override;
   IntrinsicISizeOffsetData IntrinsicISizeOffsets() override;
   mozilla::IntrinsicSize GetIntrinsicSize() override;
   nsSize GetIntrinsicRatio() override;
 
   mozilla::LogicalSize
   ComputeSize(nsRenderingContext*         aRenderingContext,
               mozilla::WritingMode        aWM,
               const mozilla::LogicalSize& aCBSize,
@@ -342,39 +348,39 @@ public:
    * them), whereas a change in its height might not.
    * (ReflowInput::ShouldReflowAllKids may be helpful in deciding whether
    * to reflow all the children, but for some frame types it might result in
    * over-reflow.)
    *
    * Note: if it's only the overflow rect(s) of a frame that need to be
    * updated, then UpdateOverflow should be called instead of Reflow.
    */
-  void Reflow(nsPresContext*           aPresContext,
-                      ReflowOutput&     aDesiredSize,
-                      const ReflowInput& aReflowInput,
-                      nsReflowStatus&          aStatus) override;
-  void DidReflow(nsPresContext*           aPresContext,
-                         const ReflowInput* aReflowInput,
-                         nsDidReflowStatus        aStatus) override;
+  void Reflow(nsPresContext*     aPresContext,
+              ReflowOutput&      aDesiredSize,
+              const ReflowInput& aReflowInput,
+              nsReflowStatus&    aStatus) override;
+  void DidReflow(nsPresContext*     aPresContext,
+                 const ReflowInput* aReflowInput,
+                 nsDidReflowStatus  aStatus) override;
 
   /**
    * NOTE: aStatus is assumed to be already-initialized. The reflow statuses of
    * any reflowed absolute children will be merged into aStatus; aside from
    * that, this method won't modify aStatus.
    */
-  void ReflowAbsoluteFrames(nsPresContext*           aPresContext,
-                            ReflowOutput&     aDesiredSize,
+  void ReflowAbsoluteFrames(nsPresContext*     aPresContext,
+                            ReflowOutput&      aDesiredSize,
                             const ReflowInput& aReflowInput,
-                            nsReflowStatus&          aStatus,
-                            bool                     aConstrainBSize = true);
-  void FinishReflowWithAbsoluteFrames(nsPresContext*           aPresContext,
-                                      ReflowOutput&     aDesiredSize,
+                            nsReflowStatus&    aStatus,
+                            bool               aConstrainBSize = true);
+  void FinishReflowWithAbsoluteFrames(nsPresContext*     aPresContext,
+                                      ReflowOutput&      aDesiredSize,
                                       const ReflowInput& aReflowInput,
-                                      nsReflowStatus&          aStatus,
-                                      bool                     aConstrainBSize = true);
+                                      nsReflowStatus&    aStatus,
+                                      bool aConstrainBSize = true);
 
   /*
    * If this frame is dirty, marks all absolutely-positioned children of this
    * frame dirty. If this frame isn't dirty, or if there are no
    * absolutely-positioned children, does nothing.
    *
    * It's necessary to use PushDirtyBitToAbsoluteFrames() when you plan to
    * reflow this frame's absolutely-positioned children after the dirty bit on
@@ -725,17 +731,17 @@ public:
    * Called to dump out regression data that describes the layout
    * of the frame and its children, and so on. The format of the
    * data is dictated to be XML (using a specific DTD); the
    * specific kind of data dumped is up to the frame itself, with
    * the caveat that some base types are defined.
    * For more information, see XXX.
    */
   nsresult DumpRegressionData(nsPresContext* aPresContext,
-                                       FILE* out, int32_t aIndent) override;
+                              FILE* out, int32_t aIndent) override;
 
   /**
    * See if style tree verification is enabled. To enable style tree
    * verification add "styleverifytree:1" to your MOZ_LOG
    * environment variable (any non-zero debug level will work). Or,
    * call SetVerifyStyleTreeEnable with true.
    */
   static bool GetVerifyStyleTreeEnable();