From 8324509a8cc616d206abd76ea646300c6ca04ae6 Mon Sep 17 00:00:00 2001 From: Xidorn Quan Date: Wed, 28 Mar 2018 10:57:35 +1100 Subject: [PATCH] Bug 1448728 followup - Move ServoComputedValuesMallocEnclosingSizeOf to ComputedStyle.cpp. --- layout/style/ComputedStyle.cpp | 2 ++ layout/style/ComputedStyle.h | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/style/ComputedStyle.cpp b/layout/style/ComputedStyle.cpp index 64c3d4640b8f..83057105a109 100644 --- a/layout/style/ComputedStyle.cpp +++ b/layout/style/ComputedStyle.cpp @@ -448,6 +448,8 @@ ComputedStyle::GetCachedLazyPseudoStyle(CSSPseudoElementType aPseudo) const return mCachedInheritingStyles.Lookup(nsCSSPseudoElements::GetPseudoAtom(aPseudo)); } +MOZ_DEFINE_MALLOC_ENCLOSING_SIZE_OF(ServoComputedValuesMallocEnclosingSizeOf) + void ComputedStyle::AddSizeOfIncludingThis(nsWindowSizes& aSizes, size_t* aCVsSize) const diff --git a/layout/style/ComputedStyle.h b/layout/style/ComputedStyle.h index ea9a5b36f396..dce4cb468a2c 100644 --- a/layout/style/ComputedStyle.h +++ b/layout/style/ComputedStyle.h @@ -34,8 +34,6 @@ extern "C" { void Gecko_ComputedStyle_Destroy(mozilla::ComputedStyle*); } -MOZ_DEFINE_MALLOC_ENCLOSING_SIZE_OF(ServoComputedValuesMallocEnclosingSizeOf) - /** * A ComputedStyle represents the computed style data for an element. The * computed style data are stored in a set of structs (see nsStyleStruct.h) that