Bug 1515113. Fix compile. CLOSED TREE
authorTimothy Nikkel <tnikkel@gmail.com>
Tue, 08 Jan 2019 14:42:17 -0600
changeset 510078 8d9995ade756ad7b55037dad3b6ef514319848cb
parent 510077 1913de91fd89b55f07d5438f10d9af41a657bdb9
child 510079 9721f08cfc146910bd4f122bfd8239d21d0f8e5a
push id10547
push userffxbld-merge
push dateMon, 21 Jan 2019 13:03:58 +0000
treeherdermozilla-beta@24ec1916bffe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1515113
milestone66.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 1515113. Fix compile. CLOSED TREE
layout/base/MobileViewportManager.cpp
--- a/layout/base/MobileViewportManager.cpp
+++ b/layout/base/MobileViewportManager.cpp
@@ -164,17 +164,17 @@ MobileViewportManager::HandleEvent(dom::
   }
   return NS_OK;
 }
 
 NS_IMETHODIMP
 MobileViewportManager::Observe(nsISupports* aSubject, const char* aTopic,
                                const char16_t* aData) {
   if (!mDocument) {
-    return;
+    return NS_OK;
   }
 
   if (SameCOMIdentity(aSubject, ToSupports(mDocument)) &&
       BEFORE_FIRST_PAINT.EqualsASCII(aTopic)) {
     MVM_LOG("%p: got a before-first-paint event\n", this);
     if (!mPainted) {
       // before-first-paint message arrived before load event
       SetInitialViewport();