Bug 1283302: Sets the default value for nglayout.initialpaint.delay to 5ms on desktop (stays 250 ms on Android) per user research conclusions. r=tn

MozReview-Commit-ID: LWfmMoBcbnL
This commit is contained in:
Jet Villegas 2016-08-25 18:57:56 -07:00
Родитель bf70c9b8f7
Коммит 08cf6c2481
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -67,9 +67,13 @@ typedef nsClassHashtable<nsUint64HashKey, mozilla::CSSIntRegion> VisibleRegions;
} // namespace mozilla
// 250ms. This is actually pref-controlled, but we use this value if we fail
// This is actually pref-controlled, but we use this value if we fail
// to get the pref for any reason.
#ifdef MOZ_WIDGET_ANDROID
#define PAINTLOCK_EVENT_DELAY 250
#else
#define PAINTLOCK_EVENT_DELAY 5
#endif
class PresShell final : public nsIPresShell,
public nsStubDocumentObserver,