Bug 1217230 - Set mNeedToRecomputeVisibility true only when style or layout flush. r=seth

This commit is contained in:
Hiroyuki Ikezoe
2015-10-21 16:12:00 +02:00
parent 155109f3ff
commit b00a73e6f8

View File

@@ -1571,9 +1571,10 @@ nsRefreshDriver::Tick(int64_t aNowEpoch, TimeStamp aNowTime)
presContext->NotifyFontFaceSetOnRefresh();
}
NS_RELEASE(shell);
mNeedToRecomputeVisibility = true;
}
mNeedToRecomputeVisibility = true;
if (tracingStyleFlush) {
profiler_tracing("Paint", "Styles", TRACING_INTERVAL_END);
@@ -1617,9 +1618,9 @@ nsRefreshDriver::Tick(int64_t aNowEpoch, TimeStamp aNowTime)
presContext->NotifyFontFaceSetOnRefresh();
}
NS_RELEASE(shell);
}
mNeedToRecomputeVisibility = true;
mNeedToRecomputeVisibility = true;
}
if (tracingLayoutFlush) {
profiler_tracing("Paint", "Reflow", TRACING_INTERVAL_END);