Bug 1543315 - part 7: Mark DidDoReflow() as MOZ_CAN_RUN_SCRIPT r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D27223

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Masayuki Nakano 2019-04-13 12:42:02 +00:00
Родитель 55dc8a6004
Коммит 93bae33c11
3 изменённых файлов: 8 добавлений и 7 удалений

Просмотреть файл

@ -8962,7 +8962,7 @@ void nsIPresShell::WillDoReflow() {
mLastReflowStart = GetPerformanceNowUnclamped();
}
void nsIPresShell::DidDoReflow(bool aInterruptible) {
void PresShell::DidDoReflow(bool aInterruptible) {
HandlePostedReflowCallbacks(aInterruptible);
nsCOMPtr<nsIDocShell> docShell = mPresContext->GetDocShell();

Просмотреть файл

@ -363,6 +363,13 @@ class PresShell final : public nsIPresShell,
// without interruptions.
MOZ_CAN_RUN_SCRIPT bool ProcessReflowCommands(bool aInterruptible);
/**
* Callback handler for whether reflow happened.
*
* @param aInterruptible Whether or not reflow interruption is allowed.
*/
MOZ_CAN_RUN_SCRIPT void DidDoReflow(bool aInterruptible);
/**
* Initialize cached font inflation preference values and do an initial
* computation to determine if font inflation is enabled.

Просмотреть файл

@ -1809,12 +1809,6 @@ class nsIPresShell : public nsStubDocumentObserver {
DOMHighResTimeStamp GetPerformanceNowUnclamped();
/**
* Callback handler for whether reflow happened.
*
* @param aInterruptible Whether or not reflow interruption is allowed.
*/
void DidDoReflow(bool aInterruptible);
// The callback for the mReflowContinueTimer timer.
static void sReflowContinueCallback(nsITimer* aTimer, void* aPresShell);
bool ScheduleReflowOffTimer();