зеркало из https://github.com/mozilla/gecko-dev.git
Bug 657844 - SynthesizeMouseMove calls should be disabled in fennec r=bzbarsky
This commit is contained in:
Родитель
96428c2089
Коммит
a5bf01c86e
|
@ -1675,6 +1675,7 @@ NS_NewPresShell(nsIPresShell** aInstancePtrResult)
|
|||
}
|
||||
|
||||
nsTHashtable<PresShell::PresShellPtrKey> *nsIPresShell::sLiveShells = 0;
|
||||
static PRBool sSynthMouseMove = PR_TRUE;
|
||||
|
||||
NS_MEMORY_REPORTER_IMPLEMENT(LayoutPresShell,
|
||||
"explicit/layout/all",
|
||||
|
@ -1719,6 +1720,8 @@ PresShell::PresShell()
|
|||
if (!registeredReporter) {
|
||||
NS_RegisterMemoryReporter(new NS_MEMORY_REPORTER_NAME(LayoutPresShell));
|
||||
NS_RegisterMemoryReporter(new NS_MEMORY_REPORTER_NAME(LayoutBidi));
|
||||
nsContentUtils::AddBoolPrefVarCache("layout.reflow.synthMouseMove",
|
||||
&sSynthMouseMove, PR_TRUE);
|
||||
registeredReporter = true;
|
||||
}
|
||||
|
||||
|
@ -7856,7 +7859,9 @@ PresShell::DidDoReflow(PRBool aInterruptible)
|
|||
mFrameConstructor->EndUpdate();
|
||||
|
||||
HandlePostedReflowCallbacks(aInterruptible);
|
||||
SynthesizeMouseMove(PR_FALSE);
|
||||
if (sSynthMouseMove) {
|
||||
SynthesizeMouseMove(PR_FALSE);
|
||||
}
|
||||
if (mCaret) {
|
||||
// Update the caret's position now to account for any changes created by
|
||||
// the reflow.
|
||||
|
|
|
@ -146,6 +146,7 @@ pref("browser.sessionstore.max_tabs_undo", 5);
|
|||
pref("mozilla.widget.force-24bpp", true);
|
||||
pref("mozilla.widget.use-buffer-pixmap", true);
|
||||
pref("mozilla.widget.disable-native-theme", true);
|
||||
pref("layout.reflow.synthMouseMove", false);
|
||||
|
||||
/* download manager (don't show the window or alert) */
|
||||
pref("browser.download.useDownloadDir", true);
|
||||
|
|
Загрузка…
Ссылка в новой задаче