Add more profile labels for the separate parts of restyle processing. (Bug 790379) rs=cjones

This commit is contained in:
L. David Baron 2012-09-11 21:05:03 -07:00
parent 865c578161
commit 8127acf9cb
2 changed files with 6 additions and 0 deletions

View File

@ -119,6 +119,7 @@
#include "nsRefreshDriver.h"
#include "nsRuleProcessorData.h"
#include "sampler.h"
using namespace mozilla;
using namespace mozilla::dom;
@ -8012,6 +8013,8 @@ nsCSSFrameConstructor::ProcessRestyledFrames(nsStyleChangeList& aChangeList)
if (!count)
return NS_OK;
SAMPLE_LABEL("CSS", "ProcessRestyledFrames");
// Make sure to not rebuild quote or counter lists while we're
// processing restyles
BeginUpdate();

View File

@ -61,6 +61,7 @@
#include "nsFrameManager.h"
#include "nsRuleProcessorData.h"
#include "sampler.h"
#ifdef ACCESSIBILITY
#include "nsAccessibilityService.h"
@ -1646,6 +1647,8 @@ nsFrameManager::ComputeStyleChangeFor(nsIFrame *aFrame,
RestyleTracker& aRestyleTracker,
bool aRestyleDescendants)
{
SAMPLE_LABEL("CSS", "ComputeStyleChangeFor");
nsIContent *content = aFrame->GetContent();
if (aMinChange) {
aChangeList->AppendChange(aFrame, content, aMinChange);