зеркало из https://github.com/mozilla/pjs.git
a=chofmann. Include time spent in ProbePseudoStyleFor() in time measurement of style resolution.
This commit is contained in:
Родитель
e5c2d7b172
Коммит
d4a69386fa
|
@ -687,6 +687,7 @@ nsIStyleContext* StyleSetImpl::ProbePseudoStyleFor(nsIPresContext* aPresContext,
|
|||
nsIStyleContext* aParentContext,
|
||||
PRBool aForceUnique)
|
||||
{
|
||||
NS_START_STOPWATCH(mStyleResolutionWatch)
|
||||
nsIStyleContext* result = nsnull;
|
||||
|
||||
NS_ASSERTION(aPseudoTag, "must have pseudo tag");
|
||||
|
@ -737,6 +738,7 @@ nsIStyleContext* StyleSetImpl::ProbePseudoStyleFor(nsIPresContext* aPresContext,
|
|||
}
|
||||
}
|
||||
|
||||
NS_STOP_STOPWATCH(mStyleResolutionWatch)
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
@ -687,6 +687,7 @@ nsIStyleContext* StyleSetImpl::ProbePseudoStyleFor(nsIPresContext* aPresContext,
|
|||
nsIStyleContext* aParentContext,
|
||||
PRBool aForceUnique)
|
||||
{
|
||||
NS_START_STOPWATCH(mStyleResolutionWatch)
|
||||
nsIStyleContext* result = nsnull;
|
||||
|
||||
NS_ASSERTION(aPseudoTag, "must have pseudo tag");
|
||||
|
@ -737,6 +738,7 @@ nsIStyleContext* StyleSetImpl::ProbePseudoStyleFor(nsIPresContext* aPresContext,
|
|||
}
|
||||
}
|
||||
|
||||
NS_STOP_STOPWATCH(mStyleResolutionWatch)
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
@ -687,6 +687,7 @@ nsIStyleContext* StyleSetImpl::ProbePseudoStyleFor(nsIPresContext* aPresContext,
|
|||
nsIStyleContext* aParentContext,
|
||||
PRBool aForceUnique)
|
||||
{
|
||||
NS_START_STOPWATCH(mStyleResolutionWatch)
|
||||
nsIStyleContext* result = nsnull;
|
||||
|
||||
NS_ASSERTION(aPseudoTag, "must have pseudo tag");
|
||||
|
@ -737,6 +738,7 @@ nsIStyleContext* StyleSetImpl::ProbePseudoStyleFor(nsIPresContext* aPresContext,
|
|||
}
|
||||
}
|
||||
|
||||
NS_STOP_STOPWATCH(mStyleResolutionWatch)
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче