Bug 1311673 - Remove ImageDocument::ImageResizingEnabled. r=smaug
authorEdgar Chen <echen@mozilla.com>
Thu, 03 Nov 2016 11:34:16 +0800
changeset 351321 cb5e3d3e959672fa10ca619dd8ab7c6f58da161c
parent 351320 33b4d8c005c4e68c11a10a366719593c6b40819e
child 351322 3eee70f71e8573c621bd5e05e838f552531e46c0
push id6795
push userjlund@mozilla.com
push dateMon, 23 Jan 2017 14:19:46 +0000
treeherdermozilla-esr52@76101b503191 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1311673
milestone52.0a1
Bug 1311673 - Remove ImageDocument::ImageResizingEnabled. r=smaug
dom/html/ImageDocument.cpp
dom/html/ImageDocument.h
dom/html/nsIImageDocument.idl
dom/webidl/ImageDocument.webidl
--- a/dom/html/ImageDocument.cpp
+++ b/dom/html/ImageDocument.cpp
@@ -286,23 +286,16 @@ ImageDocument::OnPageShow(bool aPersiste
   }
   RefPtr<ImageDocument> kungFuDeathGrip(this);
   UpdateSizeFromLayout();
 
   MediaDocument::OnPageShow(aPersisted, aDispatchStartTarget);
 }
 
 NS_IMETHODIMP
-ImageDocument::GetImageResizingEnabled(bool* aImageResizingEnabled)
-{
-  *aImageResizingEnabled = ImageResizingEnabled();
-  return NS_OK;
-}
-
-NS_IMETHODIMP
 ImageDocument::GetImageIsOverflowing(bool* aImageIsOverflowing)
 {
   *aImageIsOverflowing = ImageIsOverflowing();
   return NS_OK;
 }
 
 NS_IMETHODIMP
 ImageDocument::GetImageIsResized(bool* aImageIsResized)
--- a/dom/html/ImageDocument.h
+++ b/dom/html/ImageDocument.h
@@ -51,20 +51,16 @@ public:
   friend class ImageListener;
 
   void DefaultCheckOverflowing() { CheckOverflowing(mResizeImageByDefault); }
 
   // WebIDL API
   virtual JSObject* WrapNode(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
     override;
 
-  bool ImageResizingEnabled() const
-  {
-    return true;
-  }
   bool ImageIsOverflowing() const
   {
     return mImageIsOverflowingHorizontally || mImageIsOverflowingVertically;
   }
   bool ImageIsResized() const
   {
     return mImageIsResized;
   }
--- a/dom/html/nsIImageDocument.idl
+++ b/dom/html/nsIImageDocument.idl
@@ -9,19 +9,16 @@
  * @status UNDER_DEVELOPMENT
  */
 
 interface imgIRequest;
 
 [scriptable, uuid(87c27f98-37dc-4b64-a8cd-92003624bcee)]
 interface nsIImageDocument : nsISupports {
 
-  /* Whether the pref for image resizing has been set. */
-  readonly attribute boolean imageResizingEnabled;
-
   /* Whether the image is overflowing visible area. */
   readonly attribute boolean imageIsOverflowing;
 
   /* Whether the image has been resized to fit visible area. */
   readonly attribute boolean imageIsResized;
 
   /* The image request being displayed in the content area */
   readonly attribute imgIRequest imageRequest;
--- a/dom/webidl/ImageDocument.webidl
+++ b/dom/webidl/ImageDocument.webidl
@@ -6,19 +6,16 @@
  * The origin of this IDL file is:
  * dom/html/public/nsIImageDocument.idl
  */
 
 interface imgIRequest;
 
 [ChromeOnly, OverrideBuiltins]
 interface ImageDocument : HTMLDocument {
-  /* Whether the pref for image resizing has been set. */
-  readonly attribute boolean imageResizingEnabled;
-
   /* Whether the image is overflowing visible area. */
   readonly attribute boolean imageIsOverflowing;
 
   /* Whether the image has been resized to fit visible area. */
   readonly attribute boolean imageIsResized;
 
   /* The image request being displayed in the content area */
   [Throws]