Bug 1397307 - P1. Make method const. r=gerald
authorJean-Yves Avenard <jyavenard@mozilla.com>
Fri, 08 Sep 2017 12:49:01 +0200
changeset 665549 c60b5da550ea3b664a9a81fb5dd9708bf7491657
parent 665548 1536fa69bad4d6ee7f1f4c265fab57504f6263d9
child 665550 70899b90b6fe4a1be0650318a14ad40bcb604948
push id80115
push userbmo:eoger@fastmail.com
push dateFri, 15 Sep 2017 18:29:01 +0000
reviewersgerald
bugs1397307
milestone57.0a1
Bug 1397307 - P1. Make method const. r=gerald MozReview-Commit-ID: 2UrTZroXpRG
dom/media/MediaInfo.h
--- a/dom/media/MediaInfo.h
+++ b/dom/media/MediaInfo.h
@@ -292,17 +292,17 @@ public:
     gfx::IntRect imageRect = ImageRect();
     imageRect.x = (imageRect.x * aWidth) / mImage.width;
     imageRect.y = (imageRect.y * aHeight) / mImage.height;
     imageRect.SetWidth((aWidth * imageRect.Width()) / mImage.width);
     imageRect.SetHeight((aHeight * imageRect.Height()) / mImage.height);
     return imageRect;
   }
 
-  Rotation ToSupportedRotation(int32_t aDegree)
+  Rotation ToSupportedRotation(int32_t aDegree) const
   {
     switch (aDegree) {
       case 90:
         return kDegree_90;
       case 180:
         return kDegree_180;
       case 270:
         return kDegree_270;