Bug 1397307 - P1. Make method const. r?gerald draft
authorJean-Yves Avenard <jyavenard@mozilla.com>
Fri, 08 Sep 2017 12:49:01 +0200
changeset 665091 5928feb98da4b18a90ff041e5d4233f2f262296a
parent 664985 593158cd491002031b4527a95d9bfac79c0cdcef
child 665092 a9bbdfbe2c151acd5ceff0b3705a6b270caa77f3
push id79919
push userbmo:jyavenard@mozilla.com
push dateThu, 14 Sep 2017 22:16:27 +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;