Backed out changeset dfeab223be6d (Bug 657844) on suspicion of causing perma-orange in test_hover.html
authorDaniel Holbert <dholbert@cs.stanford.edu>
Sun, 22 May 2011 13:25:33 -0700
changeset 69986 8176003df609c330103e66bba1151b26666bd052
parent 69985 dfeab223be6d9f291c7d422109afad7e6bd04f6a
child 69987 dff0645d35fb0d1967a3dd9e2e7d062c971cf115
push idunknown
push userunknown
push dateunknown
bugs657844
milestone6.0a1
backs outdfeab223be6d9f291c7d422109afad7e6bd04f6a
Backed out changeset dfeab223be6d (Bug 657844) on suspicion of causing perma-orange in test_hover.html
layout/base/nsPresShell.cpp
mobile/app/mobile.js
--- a/layout/base/nsPresShell.cpp
+++ b/layout/base/nsPresShell.cpp
@@ -1669,17 +1669,16 @@ NS_NewPresShell(nsIPresShell** aInstance
   if (!*aInstancePtrResult)
     return NS_ERROR_OUT_OF_MEMORY;
 
   NS_ADDREF(*aInstancePtrResult);
   return NS_OK;
 }
 
 nsTHashtable<PresShell::PresShellPtrKey> *nsIPresShell::sLiveShells = 0;
-static PRBool sSynthMouseMove = PR_TRUE;
 
 NS_MEMORY_REPORTER_IMPLEMENT(LayoutPresShell,
                              "heap-used/layout/all",
                              "Memory used by layout PresShell, PresContext, "
                              "and other related areas.",
                              PresShell::SizeOfLayoutMemoryReporter,
                              nsnull)
 
@@ -1713,18 +1712,16 @@ PresShell::PresShell()
   mXResolution = 1.0;
   mYResolution = 1.0;
   mViewportOverridden = PR_FALSE;
 
   static bool registeredReporter = false;
   if (!registeredReporter) {
     NS_RegisterMemoryReporter(new NS_MEMORY_REPORTER_NAME(LayoutPresShell));
     NS_RegisterMemoryReporter(new NS_MEMORY_REPORTER_NAME(LayoutBidi));
-    nsContentUtils::AddBoolPrefVarCache("layout.reflow.synthMouseMove",
-                                        &sSynthMouseMove);
     registeredReporter = true;
   }
 
   new (this) nsFrameManager();
 
   sLiveShells->PutEntry(this);
 }
 
@@ -7853,19 +7850,17 @@ PresShell::WillDoReflow()
 }
 
 void
 PresShell::DidDoReflow(PRBool aInterruptible)
 {
   mFrameConstructor->EndUpdate();
   
   HandlePostedReflowCallbacks(aInterruptible);
-  if (sSynthMouseMove) {
-    SynthesizeMouseMove(PR_FALSE);
-  }
+  SynthesizeMouseMove(PR_FALSE);
   if (mCaret) {
     // Update the caret's position now to account for any changes created by
     // the reflow.
     mCaret->InvalidateOutsideCaret();
     mCaret->UpdateCaretPosition();
   }
 }
 
--- a/mobile/app/mobile.js
+++ b/mobile/app/mobile.js
@@ -141,17 +141,16 @@ pref("browser.sessionstore.resume_from_c
 pref("browser.sessionstore.resume_from_crash_timeout", 60); // minutes
 pref("browser.sessionstore.interval", 10000); // milliseconds
 pref("browser.sessionstore.max_tabs_undo", 5);
 
 /* these should help performance */
 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);
 pref("browser.download.folderList", 1); // Default to ~/Downloads
 pref("browser.download.manager.showAlertOnComplete", false);
 pref("browser.download.manager.showAlertInterval", 2000);
 pref("browser.download.manager.retention", 2);
 pref("browser.download.manager.showWhenStarting", false);