Back out 84ac0004679c (bug 673112) for browser-chrome failures on a CLOSED TREE
authorPhil Ringnalda <philringnalda@gmail.com>
Tue, 16 Aug 2011 21:09:37 -0700
changeset 75373 4533e6c94fe790043a1ebdbb7de1bd1a75bddacb
parent 75372 84ac0004679c056b92a641b39b698e34d0dde475
child 75406 dcb25d71220d814454b68aba05c761c91b265992
push id1262
push userphilringnalda@gmail.com
push dateWed, 17 Aug 2011 04:10:29 +0000
treeherdermozilla-inbound@4533e6c94fe7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs673112
milestone8.0a1
backs out84ac0004679c056b92a641b39b698e34d0dde475
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Back out 84ac0004679c (bug 673112) for browser-chrome failures on a CLOSED TREE
mobile/chrome/content/bindings/browser.js
--- a/mobile/chrome/content/bindings/browser.js
+++ b/mobile/chrome/content/bindings/browser.js
@@ -613,26 +613,21 @@ let ContentScroll =  {
         break;
       }
 
       case "MozScrolledAreaChanged": {
         let doc = aEvent.originalTarget;
         if (content != doc.defaultView) // We are only interested in root scroll pane changes
           return;
 
-        // Send event only after painting to make sure content views in the parent process have
-        // been updated.
-        addEventListener("MozAfterPaint", function afterPaint() {
-          sendAsyncMessage("MozScrolledAreaChanged", {
-            width: aEvent.width,
-            height: aEvent.height,
-            left: aEvent.x
-          });
-          removeEventListener("MozAfterPaint", afterPaint, false);
-        }, false);
+        sendAsyncMessage("MozScrolledAreaChanged", {
+          width: aEvent.width,
+          height: aEvent.height,
+          left: aEvent.x
+        });
 
         break;
       }
     }
   },
 
   sendScroll: function sendScroll() {
     let scrollOffset = this.getScrollOffset(content);