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 166508 6c7eb9d6e528a4bdf0156bc43016820ba41408bb
parent 166507 892e1ac9862fb1bc6022ac2b302177639a7fb8cc
child 166509 b353e78ee8e725d800918e7a1ae9a3db5c291179
push id3066
push userakeybl@mozilla.com
push dateMon, 09 Dec 2013 19:58:46 +0000
treeherdermozilla-beta@a31a0dce83aa [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