Bug 937227 - Zero-initialize fields in nsWindowSizes. r=njn, a=bajaj
authorNathan Froyd <froydnj@mozilla.com>
Mon, 11 Nov 2013 14:18:49 -0500
changeset 167460 6c7eb9d6e528a4bdf0156bc43016820ba41408bb
parent 167459 892e1ac9862fb1bc6022ac2b302177639a7fb8cc
child 167461 b353e78ee8e725d800918e7a1ae9a3db5c291179
push id428
push userbbajaj@mozilla.com
push dateTue, 28 Jan 2014 00:16:25 +0000
treeherdermozilla-release@cd72a7ff3a75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnjn, bajaj
bugs937227
milestone27.0a2
Bug 937227 - Zero-initialize fields in nsWindowSizes. r=njn, a=bajaj
dom/base/nsWindowMemoryReporter.h
--- a/dom/base/nsWindowMemoryReporter.h
+++ b/dom/base/nsWindowMemoryReporter.h
@@ -42,16 +42,18 @@ class nsWindowSizes {
   macro(Other, mPropertyTablesSize) \
 
 public:
   nsWindowSizes(mozilla::MallocSizeOf aMallocSizeOf)
     :
       #define ZERO_SIZE(kind, mSize)  mSize(0),
       FOR_EACH_SIZE(ZERO_SIZE)
       #undef ZERO_SIZE
+      mDOMEventTargetsCount(0),
+      mDOMEventListenersCount(0),
       mArenaStats(),
       mMallocSizeOf(aMallocSizeOf)
   {}
 
   void addToTabSizes(nsTabSizes *sizes) const {
     #define ADD_TO_TAB_SIZES(kind, mSize) sizes->add(nsTabSizes::kind, mSize);
     FOR_EACH_SIZE(ADD_TO_TAB_SIZES)
     #undef ADD_TO_TAB_SIZES