Bug 1288077: Whitespace fixes, r?froydnj draft
authorThomas Zimmermann <tdz@users.sourceforge.net>
Wed, 20 Jul 2016 15:23:19 +0200
changeset 389994 b4be2f47c0e03b05f1db98afa36b874492338102
parent 389960 ed8e23b5e0c7b739e61173bb180cf3410a306679
child 389995 fdc3ecd6c2e4272cfbd63f9500fe8d142eaff8d5
push id23576
push usertdz@users.sourceforge.net
push dateWed, 20 Jul 2016 14:19:50 +0000
reviewersfroydnj
bugs1288077
milestone50.0a1
Bug 1288077: Whitespace fixes, r?froydnj MozReview-Commit-ID: DpKAsid5O3k
dom/base/nsISelectionPrivate.idl
gfx/thebes/gfxContext.h
netwerk/dns/nsIDNSService.idl
widget/nsXPLookAndFeel.cpp
xpcom/glue/nsTArray.h
--- a/dom/base/nsISelectionPrivate.idl
+++ b/dom/base/nsISelectionPrivate.idl
@@ -47,17 +47,17 @@ interface nsISelectionPrivate : nsISelec
     */
     [noscript] void endBatchChanges();
 
     DOMString  toStringWithFormat(in string formatType, in unsigned long flags, in int32_t wrapColumn);
     void  addSelectionListener(in nsISelectionListener newListener);
     void  removeSelectionListener(in nsISelectionListener listenerToRemove);
 
     /* Table selection stuff
-       We should probably move this and table-related 
+       We should probably move this and table-related
        items in nsFrameSelection  to a
        new nsITableSelection interface
     */
     const long TABLESELECTION_NONE     = 0;
     const long TABLESELECTION_CELL     = 1;
     const long TABLESELECTION_ROW      = 2;
     const long TABLESELECTION_COLUMN   = 3;
     const long TABLESELECTION_TABLE    = 4;
@@ -90,17 +90,17 @@ interface nsISelectionPrivate : nsISelec
     [noscript] void setTextRangeStyle(in nsIDOMRange range,
                       in constTextRangeStyleRef textRangeStyle);
 
     /**
      * Get the direction of the selection.
      */
     [noscript, notxpcom] nsDirection getSelectionDirection();
     [noscript, notxpcom] void setSelectionDirection(in nsDirection aDirection);
-    
+
     /**
      * Returns the type of the selection (see nsISelectionController for
      * available constants).
      */
     readonly attribute short type;
 
     /**
      * Return array of ranges intersecting with the given DOM interval.
--- a/gfx/thebes/gfxContext.h
+++ b/gfx/thebes/gfxContext.h
@@ -208,30 +208,30 @@ public:
      * resulting rectangle is the minimum device-space rectangle that
      * encloses the user-space rectangle given.
      */
     gfxRect UserToDevice(const gfxRect& rect) const;
 
     /**
      * Takes the given rect and tries to align it to device pixels.  If
      * this succeeds, the method will return true, and the rect will
-     * be in device coordinates (already transformed by the CTM).  If it 
+     * be in device coordinates (already transformed by the CTM).  If it
      * fails, the method will return false, and the rect will not be
      * changed.
      *
      * If ignoreScale is true, then snapping will take place even if
      * the CTM has a scale applied.  Snapping never takes place if
      * there is a rotation in the CTM.
      */
     bool UserToDevicePixelSnapped(gfxRect& rect, bool ignoreScale = false) const;
 
     /**
      * Takes the given point and tries to align it to device pixels.  If
      * this succeeds, the method will return true, and the point will
-     * be in device coordinates (already transformed by the CTM).  If it 
+     * be in device coordinates (already transformed by the CTM).  If it
      * fails, the method will return false, and the point will not be
      * changed.
      *
      * If ignoreScale is true, then snapping will take place even if
      * the CTM has a scale applied.  Snapping never takes place if
      * there is a rotation in the CTM.
      */
     bool UserToDevicePixelSnapped(gfxPoint& pt, bool ignoreScale = false) const;
@@ -385,18 +385,18 @@ public:
     gfxRect GetClipExtents();
 
     /**
      * Whether the current clip is not a simple rectangle.
      */
     bool HasComplexClip() const;
 
     /**
-     * Returns true if the given rectangle is fully contained in the current clip. 
-     * This is conservative; it may return false even when the given rectangle is 
+     * Returns true if the given rectangle is fully contained in the current clip.
+     * This is conservative; it may return false even when the given rectangle is
      * fully contained by the current clip.
      */
     bool ClipContainsRect(const gfxRect& aRect);
 
      /**
       * Exports the current clip using the provided exporter.
       */
     bool ExportClip(ClipExporter& aExporter);
@@ -466,17 +466,17 @@ private:
 
   typedef mozilla::gfx::Matrix Matrix;
   typedef mozilla::gfx::DrawTarget DrawTarget;
   typedef mozilla::gfx::Color Color;
   typedef mozilla::gfx::StrokeOptions StrokeOptions;
   typedef mozilla::gfx::Float Float;
   typedef mozilla::gfx::PathBuilder PathBuilder;
   typedef mozilla::gfx::SourceSurface SourceSurface;
-  
+
   struct AzureState {
     AzureState()
       : op(mozilla::gfx::CompositionOp::OP_OVER)
       , color(0, 0, 0, 1.0f)
       , aaMode(mozilla::gfx::AntialiasMode::SUBPIXEL)
       , patternTransformChanged(false)
       , mBlendOpacity(0.0f)
     {}
@@ -557,17 +557,17 @@ public:
 
   ~gfxContextAutoSaveRestore() {
     Restore();
   }
 
   void SetContext(gfxContext *aContext) {
     NS_ASSERTION(!mContext, "Not going to call Restore() on some context!!!");
     mContext = aContext;
-    mContext->Save();    
+    mContext->Save();
   }
 
   void EnsureSaved(gfxContext *aContext) {
     MOZ_ASSERT(!mContext || mContext == aContext, "wrong context");
     if (!mContext) {
         mContext = aContext;
         mContext->Save();
     }
--- a/netwerk/dns/nsIDNSService.idl
+++ b/netwerk/dns/nsIDNSService.idl
@@ -138,17 +138,17 @@ interface nsIDNSService : nsISupports
     /**
      * if set, the query is given lower priority. Medium takes precedence
      * if both are used.
      */
     const unsigned long RESOLVE_PRIORITY_MEDIUM = (1 << 2);
     const unsigned long RESOLVE_PRIORITY_LOW    = (1 << 3);
 
     /**
-     * if set, indicates request is speculative. Speculative requests 
+     * if set, indicates request is speculative. Speculative requests
      * return errors if prefetching is disabled by configuration.
      */
     const unsigned long RESOLVE_SPECULATE = (1 << 4);
 
     /**
      * If set, only IPv4 addresses will be returned from resolve/asyncResolve.
      */
     const unsigned long RESOLVE_DISABLE_IPV6 = (1 << 5);
--- a/widget/nsXPLookAndFeel.cpp
+++ b/widget/nsXPLookAndFeel.cpp
@@ -822,17 +822,17 @@ nsXPLookAndFeel::GetColorImpl(ColorID aI
     }
 
     CACHE_COLOR(aID, aResult);
     return NS_OK;
   }
 
   return NS_ERROR_NOT_AVAILABLE;
 }
-  
+
 nsresult
 nsXPLookAndFeel::GetIntImpl(IntID aID, int32_t &aResult)
 {
   if (!sInitialized)
     Init();
 
   // Set the default values for these prefs. but allow different platforms
   // to override them in their nsLookAndFeel if desired.
--- a/xpcom/glue/nsTArray.h
+++ b/xpcom/glue/nsTArray.h
@@ -1871,17 +1871,17 @@ protected:
                          ::implementation(Elements(), aStart, aCount, aValues);
   }
 };
 
 template<typename E, class Alloc>
 template<class Item, typename ActualAlloc>
 auto
 nsTArray_Impl<E, Alloc>::ReplaceElementsAt(index_type aStart, size_type aCount,
-                                           const Item* aArray, size_type aArrayLen) -> elem_type* 
+                                           const Item* aArray, size_type aArrayLen) -> elem_type*
 {
   // Adjust memory allocation up-front to catch errors.
   if (!ActualAlloc::Successful(this->template EnsureCapacity<ActualAlloc>(
         Length() + aArrayLen - aCount, sizeof(elem_type)))) {
     return nullptr;
   }
   DestructRange(aStart, aCount);
   this->template ShiftData<ActualAlloc>(aStart, aCount, aArrayLen,