From fa0cddb6fb10cbebdcbe61a478f1cbab882a3628 Mon Sep 17 00:00:00 2001 From: Eric Rahm Date: Sat, 27 Feb 2016 11:12:08 -0800 Subject: [PATCH] Bug 1251770 - Remove remaining references to MOZILLA_XPCOMRT_API from layout. r=dbaron --- layout/base/RestyleTracker.cpp | 8 ++++---- layout/base/RestyleTracker.h | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/layout/base/RestyleTracker.cpp b/layout/base/RestyleTracker.cpp index ca64068a6cec..dc38bba6b2fb 100644 --- a/layout/base/RestyleTracker.cpp +++ b/layout/base/RestyleTracker.cpp @@ -58,7 +58,7 @@ RestyleTracker::Document() const { struct RestyleEnumerateData : RestyleTracker::Hints { RefPtr mElement; -#if defined(MOZ_ENABLE_PROFILER_SPS) && !defined(MOZILLA_XPCOMRT_API) +#if defined(MOZ_ENABLE_PROFILER_SPS) UniquePtr mBacktrace; #endif }; @@ -253,7 +253,7 @@ RestyleTracker::DoProcessRestyles() data->mRestyleHint, MarkerTracingType::START))); } -#if defined(MOZ_ENABLE_PROFILER_SPS) && !defined(MOZILLA_XPCOMRT_API) +#if defined(MOZ_ENABLE_PROFILER_SPS) Maybe profilerRAII; if (profiler_feature_active("restyle")) { profilerRAII.emplace("Paint", "Styles", Move(data->mBacktrace)); @@ -333,7 +333,7 @@ RestyleTracker::DoProcessRestyles() // We can move data since we'll be clearing mPendingRestyles after // we finish enumerating it. restyle->mRestyleHintData = Move(data->mRestyleHintData); -#if defined(MOZ_ENABLE_PROFILER_SPS) && !defined(MOZILLA_XPCOMRT_API) +#if defined(MOZ_ENABLE_PROFILER_SPS) restyle->mBacktrace = Move(data->mBacktrace); #endif @@ -361,7 +361,7 @@ RestyleTracker::DoProcessRestyles() index++, count); LOG_RESTYLE_INDENT(); -#if defined(MOZ_ENABLE_PROFILER_SPS) && !defined(MOZILLA_XPCOMRT_API) +#if defined(MOZ_ENABLE_PROFILER_SPS) Maybe profilerRAII; if (profiler_feature_active("restyle")) { profilerRAII.emplace("Paint", "Styles", Move(currentRestyle->mBacktrace)); diff --git a/layout/base/RestyleTracker.h b/layout/base/RestyleTracker.h index 33bf4a6b7bee..2652fde2d695 100644 --- a/layout/base/RestyleTracker.h +++ b/layout/base/RestyleTracker.h @@ -19,7 +19,7 @@ #include "GeckoProfiler.h" #include "mozilla/Maybe.h" -#if defined(MOZ_ENABLE_PROFILER_SPS) && !defined(MOZILLA_XPCOMRT_API) +#if defined(MOZ_ENABLE_PROFILER_SPS) #include "ProfilerBacktrace.h" #endif @@ -315,7 +315,7 @@ public: // that we called AddPendingRestyle for and found the element this is // the RestyleData for as its nearest restyle root. nsTArray> mDescendants; -#if defined(MOZ_ENABLE_PROFILER_SPS) && !defined(MOZILLA_XPCOMRT_API) +#if defined(MOZ_ENABLE_PROFILER_SPS) UniquePtr mBacktrace; #endif }; @@ -452,7 +452,7 @@ RestyleTracker::AddPendingRestyleToTable(Element* aElement, if (!existingData) { RestyleData* rd = new RestyleData(aRestyleHint, aMinChangeHint, aRestyleHintData); -#if defined(MOZ_ENABLE_PROFILER_SPS) && !defined(MOZILLA_XPCOMRT_API) +#if defined(MOZ_ENABLE_PROFILER_SPS) if (profiler_feature_active("restyle")) { rd->mBacktrace.reset(profiler_get_backtrace()); }