Bug 657844 - SynthesizeMouseMove calls should be disabled in fennec r=bzbarsky
This commit is contained in:
@@ -1675,6 +1675,7 @@ NS_NewPresShell(nsIPresShell** aInstancePtrResult)
|
|||||||
}
|
}
|
||||||
|
|
||||||
nsTHashtable<PresShell::PresShellPtrKey> *nsIPresShell::sLiveShells = 0;
|
nsTHashtable<PresShell::PresShellPtrKey> *nsIPresShell::sLiveShells = 0;
|
||||||
|
static PRBool sSynthMouseMove = PR_TRUE;
|
||||||
|
|
||||||
NS_MEMORY_REPORTER_IMPLEMENT(LayoutPresShell,
|
NS_MEMORY_REPORTER_IMPLEMENT(LayoutPresShell,
|
||||||
"explicit/layout/all",
|
"explicit/layout/all",
|
||||||
@@ -1719,6 +1720,8 @@ PresShell::PresShell()
|
|||||||
if (!registeredReporter) {
|
if (!registeredReporter) {
|
||||||
NS_RegisterMemoryReporter(new NS_MEMORY_REPORTER_NAME(LayoutPresShell));
|
NS_RegisterMemoryReporter(new NS_MEMORY_REPORTER_NAME(LayoutPresShell));
|
||||||
NS_RegisterMemoryReporter(new NS_MEMORY_REPORTER_NAME(LayoutBidi));
|
NS_RegisterMemoryReporter(new NS_MEMORY_REPORTER_NAME(LayoutBidi));
|
||||||
|
nsContentUtils::AddBoolPrefVarCache("layout.reflow.synthMouseMove",
|
||||||
|
&sSynthMouseMove, PR_TRUE);
|
||||||
registeredReporter = true;
|
registeredReporter = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -7856,7 +7859,9 @@ PresShell::DidDoReflow(PRBool aInterruptible)
|
|||||||
mFrameConstructor->EndUpdate();
|
mFrameConstructor->EndUpdate();
|
||||||
|
|
||||||
HandlePostedReflowCallbacks(aInterruptible);
|
HandlePostedReflowCallbacks(aInterruptible);
|
||||||
SynthesizeMouseMove(PR_FALSE);
|
if (sSynthMouseMove) {
|
||||||
|
SynthesizeMouseMove(PR_FALSE);
|
||||||
|
}
|
||||||
if (mCaret) {
|
if (mCaret) {
|
||||||
// Update the caret's position now to account for any changes created by
|
// Update the caret's position now to account for any changes created by
|
||||||
// the reflow.
|
// the reflow.
|
||||||
|
|||||||
@@ -146,6 +146,7 @@ pref("browser.sessionstore.max_tabs_undo", 5);
|
|||||||
pref("mozilla.widget.force-24bpp", true);
|
pref("mozilla.widget.force-24bpp", true);
|
||||||
pref("mozilla.widget.use-buffer-pixmap", true);
|
pref("mozilla.widget.use-buffer-pixmap", true);
|
||||||
pref("mozilla.widget.disable-native-theme", true);
|
pref("mozilla.widget.disable-native-theme", true);
|
||||||
|
pref("layout.reflow.synthMouseMove", false);
|
||||||
|
|
||||||
/* download manager (don't show the window or alert) */
|
/* download manager (don't show the window or alert) */
|
||||||
pref("browser.download.useDownloadDir", true);
|
pref("browser.download.useDownloadDir", true);
|
||||||
|
|||||||
Reference in New Issue
Block a user