No bug - Strip EOL whitespace from nsIDocument.h
authorJeff Gilbert <jgilbert@mozilla.com>
Thu, 09 Jul 2015 19:48:59 -0700
changeset 252210 a297fb998343bc14fc3dbfad911b24b564db55b8
parent 252209 30672ff57e54bb01ddd5a788045b0c90cda91f0e
child 252211 3871596b63706238072ded5a63fa7d1a8620954e
push id29028
push usercbook@mozilla.com
push dateFri, 10 Jul 2015 10:18:05 +0000
treeherdermozilla-central@f7e1f596d57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone42.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
No bug - Strip EOL whitespace from nsIDocument.h
dom/base/nsIDocument.h
--- a/dom/base/nsIDocument.h
+++ b/dom/base/nsIDocument.h
@@ -225,17 +225,17 @@ public:
    *              This MUST be null if the underlying document is an HTML
    *              document. Even in the XML case, please don't add new calls
    *              with non-null sink.
    *
    * Once this has been called, the document will return false for
    * MayStartLayout() until SetMayStartLayout(true) is called on it.  Making
    * sure this happens is the responsibility of the caller of
    * StartDocumentLoad().
-   */  
+   */
   virtual nsresult StartDocumentLoad(const char* aCommand,
                                      nsIChannel* aChannel,
                                      nsILoadGroup* aLoadGroup,
                                      nsISupports* aContainer,
                                      nsIStreamListener **aDocListener,
                                      bool aReset,
                                      nsIContentSink* aSink = nullptr) = 0;
   virtual void StopDocumentLoad() = 0;
@@ -351,18 +351,18 @@ public:
    * Return a standard name for the document's character set.
    */
   const nsCString& GetDocumentCharacterSet() const
   {
     return mCharacterSet;
   }
 
   /**
-   * Set the document's character encoding. |aCharSetID| should be canonical. 
-   * That is, callers are responsible for the charset alias resolution. 
+   * Set the document's character encoding. |aCharSetID| should be canonical.
+   * That is, callers are responsible for the charset alias resolution.
    */
   virtual void SetDocumentCharacterSet(const nsACString& aCharSetID) = 0;
 
   int32_t GetDocumentCharacterSetSource() const
   {
     return mCharacterSetSource;
   }
 
@@ -451,47 +451,47 @@ public:
    * Currently, we cannot disable bidi, because once bidi is enabled,
    * it affects a frame model irreversibly, and plays even though
    * the document no longer contains bidi data.
    */
   void SetBidiEnabled()
   {
     mBidiEnabled = true;
   }
-  
+
   /**
    * Check if the document contains (or has contained) any MathML elements.
    */
   bool GetMathMLEnabled() const
   {
     return mMathMLEnabled;
   }
-  
+
   void SetMathMLEnabled()
   {
     mMathMLEnabled = true;
   }
 
   /**
    * Ask this document whether it's the initial document in its window.
    */
   bool IsInitialDocument() const
   {
     return mIsInitialDocumentInWindow;
   }
-  
+
   /**
    * Tell this document that it's the initial document in its window.  See
    * comments on mIsInitialDocumentInWindow for when this should be called.
    */
   void SetIsInitialDocument(bool aIsInitialDocument)
   {
     mIsInitialDocumentInWindow = aIsInitialDocument;
   }
-  
+
 
   /**
    * Get the bidi options for this document.
    * @see nsBidiUtils.h
    */
   uint32_t GetBidiOptions() const
   {
     return mBidiOptions;
@@ -682,17 +682,17 @@ public:
 
   /**
    * Set the parent document of this document.
    */
   void SetParentDocument(nsIDocument* aParent)
   {
     mParentDocument = aParent;
   }
-  
+
   /**
    * Are plugins allowed in this document ?
    */
   virtual nsresult GetAllowPlugins (bool* aAllowPlugins) = 0;
 
   /**
    * Set the sub document for aContent to aSubDoc.
    */
@@ -833,17 +833,17 @@ public:
   // Get the canonical <body> element, or return null if there isn't one (e.g.
   // if the root isn't <html> or if the <body> isn't there)
   mozilla::dom::HTMLBodyElement* GetBodyElement();
   // Get the canonical <head> element, or return null if there isn't one (e.g.
   // if the root isn't <html> or if the <head> isn't there)
   Element* GetHeadElement() {
     return GetHtmlChildElement(nsGkAtoms::head);
   }
-  
+
   /**
    * Accessors to the collection of stylesheets owned by this document.
    * Style sheets are ordered, most significant last.
    */
 
   /**
    * These exists to allow us to on-demand load user-agent style sheets that
    * would otherwise be loaded by nsDocumentViewer::CreateStyleSet. This allows
@@ -868,25 +868,25 @@ public:
 
   /**
    * Get the number of (document) stylesheets
    *
    * @return the number of stylesheets
    * @throws no exceptions
    */
   virtual int32_t GetNumberOfStyleSheets() const = 0;
-  
+
   /**
    * Get a particular stylesheet
    * @param aIndex the index the stylesheet lives at.  This is zero-based
    * @return the stylesheet at aIndex.  Null if aIndex is out of range.
    * @throws no exceptions
    */
   virtual nsIStyleSheet* GetStyleSheetAt(int32_t aIndex) const = 0;
-  
+
   /**
    * Insert a sheet at a particular spot in the stylesheet list (zero-based)
    * @param aSheet the sheet to insert
    * @param aIndex the index to insert at.  This index will be
    *   adjusted for the "special" sheets.
    * @throws no exceptions
    */
   virtual void InsertStyleSheetAt(nsIStyleSheet* aSheet, int32_t aIndex) = 0;
@@ -920,17 +920,17 @@ public:
    */
   virtual void RemoveStyleSheet(nsIStyleSheet* aSheet) = 0;
 
   /**
    * Notify the document that the applicable state of the sheet changed
    * and that observers should be notified and style sets updated
    */
   virtual void SetStyleSheetApplicableState(nsIStyleSheet* aSheet,
-                                            bool aApplicable) = 0;  
+                                            bool aApplicable) = 0;
 
   enum additionalSheetType {
     eAgentSheet,
     eUserSheet,
     eAuthorSheet,
     SheetTypeCount
   };
 
@@ -1024,17 +1024,17 @@ public:
     return mWindow ? mWindow->GetOuterWindow() : GetWindowInternal();
   }
 
   bool IsInBackgroundWindow() const
   {
     nsPIDOMWindow* outer = mWindow ? mWindow->GetOuterWindow() : nullptr;
     return outer && outer->IsBackground();
   }
-  
+
   /**
    * Return the inner window used as the script compilation scope for
    * this document. If you're not absolutely sure you need this, use
    * GetWindow().
    */
   nsPIDOMWindow* GetInnerWindow() const
   {
     return mRemovedFromDocShell ? nullptr : mWindow;
@@ -1055,17 +1055,17 @@ public:
   uint64_t InnerWindowID() const
   {
     nsPIDOMWindow *window = GetInnerWindow();
     return window ? window->WindowID() : 0;
   }
 
   /**
    * Get the script loader for this document
-   */ 
+   */
   virtual nsScriptLoader* ScriptLoader() = 0;
 
   /**
    * Add/Remove an element to the document's id and name hashes
    */
   virtual void AddToIdTable(Element* aElement, nsIAtom* aId) = 0;
   virtual void RemoveFromIdTable(Element* aElement, nsIAtom* aId) = 0;
   virtual void AddToNameTable(Element* aElement, nsIAtom* aName) = 0;
@@ -1154,17 +1154,17 @@ public:
 
   /**
    * Exits documents out of DOM fullscreen mode.
    *
    * If aDocument is null, all fullscreen documents in all browser windows
    * exit fullscreen.
    *
    * If aDocument is non null, all documents from aDocument's fullscreen root
-   * to the fullscreen leaf exit fullscreen. 
+   * to the fullscreen leaf exit fullscreen.
    *
    * Note that the fullscreen leaf is the bottom-most document which is
    * fullscreen, it may have non-fullscreen child documents. The fullscreen
    * root is normally the chrome document.
    *
    * If aRunAsync is true, fullscreen is executed asynchronously.
    *
    * Note if aDocument is not fullscreen this function has no effect, even if
@@ -1469,17 +1469,17 @@ public:
 
   /**
    * Notify the document that its associated ContentViewer is no longer
    * the current viewer for the docshell. The document might still
    * be rendered in "zombie state" until the next document is ready.
    * The document should save form control state.
    */
   virtual void RemovedFromDocShell() = 0;
-  
+
   /**
    * Get the layout history state that should be used to save and restore state
    * for nodes in this document.  This may return null; if that happens state
    * saving and restoration is not possible.
    */
   virtual already_AddRefed<nsILayoutHistoryState> GetLayoutHistoryState() const = 0;
 
   /**
@@ -1578,17 +1578,17 @@ public:
   }
 
   /**
    * Get the compatibility mode for this document
    */
   nsCompatibility GetCompatibilityMode() const {
     return mCompatMode;
   }
-  
+
   /**
    * Check whether we've ever fired a DOMTitleChanged event for this
    * document.
    */
   bool HaveFiredDOMTitleChange() const {
     return mHaveFiredTitleChange;
   }
 
@@ -1712,17 +1712,17 @@ public:
    * will be null if this document is not an external resource.  Otherwise,
    * GetDisplayDocument() will return a non-null document, and
    * GetDisplayDocument()->GetDisplayDocument() is guaranteed to be null.
    */
   nsIDocument* GetDisplayDocument() const
   {
     return mDisplayDocument;
   }
-  
+
   /**
    * Set the display document for this document.  aDisplayDocument must not be
    * null.
    */
   void SetDisplayDocument(nsIDocument* aDisplayDocument)
   {
     NS_PRECONDITION(!GetShell() &&
                     !GetContainer() &&
@@ -1754,17 +1754,17 @@ public:
       NS_PRECONDITION(aObserver, "Must have observer");
       mObservers.AppendElement(aObserver);
     }
 
     const nsTArray< nsCOMPtr<nsIObserver> > & Observers() {
       return mObservers;
     }
   protected:
-    nsAutoTArray< nsCOMPtr<nsIObserver>, 8 > mObservers;    
+    nsAutoTArray< nsCOMPtr<nsIObserver>, 8 > mObservers;
   };
 
   /**
    * Request an external resource document for aURI.  This will return the
    * resource document if available.  If one is not available yet, it will
    * start loading as needed, and the pending load object will be returned in
    * aPendingLoad so that the caller can register an observer to wait for the
    * load.  If this function returns null and doesn't return a pending load,
@@ -2164,19 +2164,19 @@ public:
   virtual nsresult GetStateObject(nsIVariant** aResult) = 0;
 
   virtual nsDOMNavigationTiming* GetNavigationTiming() const = 0;
 
   virtual nsresult SetNavigationTiming(nsDOMNavigationTiming* aTiming) = 0;
 
   virtual Element* FindImageMap(const nsAString& aNormalizedMapName) = 0;
 
-  // Add aLink to the set of links that need their status resolved. 
+  // Add aLink to the set of links that need their status resolved.
   void RegisterPendingLinkUpdate(mozilla::dom::Link* aLink);
-  
+
   // Remove aLink from the set of links that need their status resolved.
   // This function must be called when links are removed from the document.
   void UnregisterPendingLinkUpdate(mozilla::dom::Link* aElement);
 
   // Update state on links in mLinksToUpdate.  This function must
   // be called prior to selector matching.
   void FlushPendingLinkUpdates();
 
@@ -2198,17 +2198,17 @@ public:
 #undef DOCUMENT_WARNING
   bool HasWarnedAbout(DocumentWarnings aWarning) const;
   void WarnOnceAbout(DocumentWarnings aWarning,
                      bool asError = false,
                      const char16_t **aParams = nullptr,
                      uint32_t aParamsLength = 0) const;
 
   virtual void PostVisibilityUpdateEvent() = 0;
-  
+
   bool IsSyntheticDocument() const { return mIsSyntheticDocument; }
 
   void SetNeedLayoutFlush() {
     mNeedLayoutFlush = true;
     if (mDisplayDocument) {
       mDisplayDocument->SetNeedLayoutFlush();
     }
   }
@@ -2703,17 +2703,17 @@ protected:
   // This flag is only set in XMLDocument, for e.g. documents used in XBL. We
   // don't want animations to play in such documents, so we need to store the
   // flag here so that we can check it in nsDocument::GetAnimationController.
   bool mLoadedAsInteractiveData;
 
   // If true, whoever is creating the document has gotten it to the
   // point where it's safe to start layout on it.
   bool mMayStartLayout;
-  
+
   // True iff we've ever fired a DOMTitleChanged event for this document
   bool mHaveFiredTitleChange;
 
   // True iff IsShowing() should be returning true
   bool mIsShowing;
 
   // True iff the document "page" is not hidden (i.e. currently in the
   // bfcache)
@@ -2722,17 +2722,17 @@ protected:
   // True if our content viewer has been removed from the docshell
   // (it may still be displayed, but in zombie state). Form control data
   // has been saved.
   bool mRemovedFromDocShell;
 
   // True iff DNS prefetch is allowed for this document.  Note that if the
   // document has no window, DNS prefetch won't be performed no matter what.
   bool mAllowDNSPrefetch;
-  
+
   // True when this document is a static clone of a normal document
   bool mIsStaticDocument;
 
   // True while this document is being cloned to a static document.
   bool mCreatingStaticClone;
 
   // True iff the document is being unlinked or deleted.
   bool mInUnlinkOrDeletion;
@@ -2870,17 +2870,17 @@ protected:
 
   // The channel that failed to load and resulted in an error page.
   // This only applies to error pages. Might be null.
   nsCOMPtr<nsIChannel> mFailedChannel;
 
   // if this document is part of a multipart document,
   // the ID can be used to distinguish it from the other parts.
   uint32_t mPartID;
-  
+
   // Cycle collector generation in which we're certain that this document
   // won't be collected
   uint32_t mMarkedCCGeneration;
 
   nsIPresShell* mPresShell;
 
   nsCOMArray<nsINode> mSubtreeModifiedTargets;
   uint32_t            mSubtreeModifiedDepth;
@@ -3019,18 +3019,18 @@ NS_NewImageDocument(nsIDocument** aInsta
 nsresult
 NS_NewVideoDocument(nsIDocument** aInstancePtrResult);
 
 // Note: it's the caller's responsibility to create or get aPrincipal as needed
 // -- this method will not attempt to get a principal based on aDocumentURI.
 // Also, both aDocumentURI and aBaseURI must not be null.
 nsresult
 NS_NewDOMDocument(nsIDOMDocument** aInstancePtrResult,
-                  const nsAString& aNamespaceURI, 
-                  const nsAString& aQualifiedName, 
+                  const nsAString& aNamespaceURI,
+                  const nsAString& aQualifiedName,
                   nsIDOMDocumentType* aDoctype,
                   nsIURI* aDocumentURI,
                   nsIURI* aBaseURI,
                   nsIPrincipal* aPrincipal,
                   bool aLoadedAsData,
                   nsIGlobalObject* aEventObject,
                   DocumentFlavor aFlavor);