Bug 1448728 part 0 - Remove objects only used in the old style system from nsPresArena::AddSizeOfExcludingThis. r=emilio
authorXidorn Quan <me@upsuper.org>
Wed, 28 Mar 2018 10:42:07 +1100
changeset 773627 e32869c3903801dfe6d407a010525dd54b42950c
parent 773626 80f331e70605d0b9a3f277a5bc69b9521263cc6c
child 773628 420e6f921109b3568c1d7bac4ea7aefb94a85c26
push id104266
push userbmo:hsivonen@hsivonen.fi
push dateWed, 28 Mar 2018 07:33:03 +0000
reviewersemilio
bugs1448728, 1448535
milestone61.0a1
Bug 1448728 part 0 - Remove objects only used in the old style system from nsPresArena::AddSizeOfExcludingThis. r=emilio This patch was part of Bug 1448535 part 5 and reviewed there. It is split out because bug 1448728 doesn't need to be blocked by other parts of bug 1448535. MozReview-Commit-ID: C74w6FWAxMB
layout/base/nsPresArena.cpp
--- a/layout/base/nsPresArena.cpp
+++ b/layout/base/nsPresArena.cpp
@@ -198,22 +198,16 @@ nsPresArena::AddSizeOfExcludingThis(nsWi
         break;
 #define ABSTRACT_FRAME_ID(...)
 #include "nsFrameIdList.h"
 #undef FRAME_ID
 #undef ABSTRACT_FRAME_ID
       case eArenaObjectID_nsLineBox:
         aSizes.mArenaSizes.mLineBoxes += totalSize;
         break;
-      case eArenaObjectID_nsRuleNode:
-        aSizes.mArenaSizes.mRuleNodes += totalSize;
-        break;
-      case eArenaObjectID_GeckoComputedStyle:
-        aSizes.mArenaSizes.mComputedStyles += totalSize;
-        break;
 #define STYLE_STRUCT(name_) \
       case eArenaObjectID_nsStyle##name_: \
         aSizes.mArenaSizes.mGeckoStyleSizes.NS_STYLE_SIZES_FIELD(name_) += \
           totalSize; \
         break;
 #define STYLE_STRUCT_LIST_IGNORE_VARIABLES
 #include "nsStyleStructList.h"
 #undef STYLE_STRUCT