Bug 1314027 - r=mstange
authorTobias Schneider <schneider@jancona.com>
Wed, 02 Nov 2016 00:25:10 -0700
changeset 347551 9beb0764b238011e6b35a06185978fb01957c2d2
parent 347550 2cae9cfcf54dbe7ac217bf7cb03568b92ac17ea2
child 347552 6dca348b9b1d4d09bf42ca3bf5633d255a392cd7
push id10298
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:33:03 +0000
treeherdermozilla-aurora@7e29173b1641 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmstange
bugs1314027
milestone52.0a1
Bug 1314027 - r=mstange
dom/base/DOMIntersectionObserver.cpp
--- a/dom/base/DOMIntersectionObserver.cpp
+++ b/dom/base/DOMIntersectionObserver.cpp
@@ -236,18 +236,18 @@ EdgeInclusiveIntersection(const nsRect& 
     return Nothing();
   }
   return Some(nsRect(left, top, right - left, bottom - top));
 }
 
 void
 DOMIntersectionObserver::Update(nsIDocument* aDocument, DOMHighResTimeStamp time)
 {
-  Element* root;
-  nsIFrame* rootFrame;
+  Element* root = nullptr;
+  nsIFrame* rootFrame = nullptr;
   nsRect rootRect;
 
   if (mRoot) {
     root = mRoot;
     rootFrame = root->GetPrimaryFrame();
     if (rootFrame) {
       if (rootFrame->GetType() == nsGkAtoms::scrollFrame) {
         nsIScrollableFrame* scrollFrame = do_QueryFrame(rootFrame);