Bug 1639392 - Remove unused nsIStyleSheetLinkingElement::GetStyleSheet. r=jwatt
☠☠ backed out by a0d10a7e5c3f ☠ ☠
authorEmilio Cobos Álvarez <emilio@crisal.io>
Wed, 20 May 2020 15:39:33 +0000
changeset 531265 7c5823c53db8e9f3f759816a5492d92d296cd3e5
parent 531264 415534347ba0c79d4d7ebc27c85723363aaceec3
child 531266 cee5116fbef3b3e1f2a90461db2259fb2cfdeb8d
push id37436
push userncsoregi@mozilla.com
push dateWed, 20 May 2020 21:30:50 +0000
treeherdermozilla-central@6c10970490f3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwatt
bugs1639392
milestone78.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 1639392 - Remove unused nsIStyleSheetLinkingElement::GetStyleSheet. r=jwatt Depends on D76003 Differential Revision: https://phabricator.services.mozilla.com/D76067
dom/base/nsIStyleSheetLinkingElement.h
dom/base/nsStyleLinkElement.cpp
dom/base/nsStyleLinkElement.h
--- a/dom/base/nsIStyleSheetLinkingElement.h
+++ b/dom/base/nsIStyleSheetLinkingElement.h
@@ -122,22 +122,16 @@ class nsIStyleSheetLinkingElement : publ
    * Used to make the association between a style sheet and
    * the element that linked it to the document.
    *
    * @param aStyleSheet the style sheet associated with this
    *                    element.
    */
   virtual void SetStyleSheet(mozilla::StyleSheet* aStyleSheet) = 0;
 
-  /**
-   * Used to obtain the style sheet linked in by this element.
-   *
-   * @return the style sheet associated with this element.
-   */
-  virtual mozilla::StyleSheet* GetStyleSheet() = 0;
 
   /**
    * Initialize the stylesheet linking element. If aDontLoadStyle is
    * true the element will ignore the first modification to the
    * element that would cause a stylesheet to be loaded. Subsequent
    * modifications to the element will not be ignored.
    */
   virtual void InitStyleLinkElement(bool aDontLoadStyle) = 0;
--- a/dom/base/nsStyleLinkElement.cpp
+++ b/dom/base/nsStyleLinkElement.cpp
@@ -126,18 +126,16 @@ void nsStyleLinkElement::SetStyleSheet(S
   if (mStyleSheet) {
     nsCOMPtr<nsINode> node = do_QueryObject(this);
     if (node) {
       mStyleSheet->SetOwningNode(node);
     }
   }
 }
 
-StyleSheet* nsStyleLinkElement::GetStyleSheet() { return mStyleSheet; }
-
 void nsStyleLinkElement::InitStyleLinkElement(bool aDontLoadStyle) {
   mDontLoadStyle = aDontLoadStyle;
 }
 
 void nsStyleLinkElement::SetEnableUpdates(bool aEnableUpdates) {
   mUpdatesEnabled = aEnableUpdates;
 }
 
--- a/dom/base/nsStyleLinkElement.h
+++ b/dom/base/nsStyleLinkElement.h
@@ -37,17 +37,16 @@ class nsStyleLinkElement : public nsISty
   virtual ~nsStyleLinkElement();
 
   NS_IMETHOD QueryInterface(REFNSIID aIID, void** aInstancePtr) override = 0;
 
   mozilla::StyleSheet* GetSheet() const { return mStyleSheet; }
 
   // nsIStyleSheetLinkingElement
   void SetStyleSheet(mozilla::StyleSheet* aStyleSheet) override;
-  mozilla::StyleSheet* GetStyleSheet() override;
   void InitStyleLinkElement(bool aDontLoadStyle) override;
 
   mozilla::Result<Update, nsresult> UpdateStyleSheet(
       nsICSSLoaderObserver*) override;
 
   void SetEnableUpdates(bool aEnableUpdates) override;
   void GetCharset(nsAString& aCharset) override;