зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
55dc8a6004
Коммит
93bae33c11
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче