Bug 1443205: followup: Fix a typo from the previous patch. r=me
authorEmilio Cobos Álvarez <emilio@crisal.io>
Tue, 06 Mar 2018 11:04:20 +0100
changeset 461735 7a38746fc555b6a9ec1c0ea09864dd14b5b8823f
parent 461734 6bf29a26a10daad2756b8eb795b4b1a1c95a2da3
child 461738 6e462b0ef1692b12f6156be7877de8be0473a4c2
push id1683
push usersfraser@mozilla.com
push dateThu, 26 Apr 2018 16:43:40 +0000
treeherdermozilla-release@5af6cb21869d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1443205
milestone60.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 1443205: followup: Fix a typo from the previous patch. r=me MozReview-Commit-ID: Iv3sGbJUin8
layout/style/nsMediaFeatures.cpp
--- a/layout/style/nsMediaFeatures.cpp
+++ b/layout/style/nsMediaFeatures.cpp
@@ -346,17 +346,17 @@ GetDisplayMode(nsIDocument* aDocument, c
 {
   nsIDocument* rootDocument = TopDocument(aDocument);
 
   nsCOMPtr<nsISupports> container = rootDocument->GetContainer();
   if (nsCOMPtr<nsIBaseWindow> baseWindow = do_QueryInterface(container)) {
     nsCOMPtr<nsIWidget> mainWidget;
     baseWindow->GetMainWidget(getter_AddRefs(mainWidget));
     if (mainWidget && mainWidget->SizeMode() == nsSizeMode_Fullscreen) {
-      aResult.SetEnumValue(StyleDisplayMode::Standalone);
+      aResult.SetEnumValue(StyleDisplayMode::Fullscreen);
       return;
     }
   }
 
   static_assert(nsIDocShell::DISPLAY_MODE_BROWSER == static_cast<int32_t>(StyleDisplayMode::Browser) &&
                 nsIDocShell::DISPLAY_MODE_MINIMAL_UI == static_cast<int32_t>(StyleDisplayMode::MinimalUi) &&
                 nsIDocShell::DISPLAY_MODE_STANDALONE == static_cast<int32_t>(StyleDisplayMode::Standalone) &&
                 nsIDocShell::DISPLAY_MODE_FULLSCREEN == static_cast<int32_t>(StyleDisplayMode::Fullscreen),