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 75407 4533e6c94fe790043a1ebdbb7de1bd1a75bddacb
parent 75406 84ac0004679c056b92a641b39b698e34d0dde475
child 75408 dcb25d71220d814454b68aba05c761c91b265992
push id2
push userbsmedberg@mozilla.com
push dateFri, 19 Aug 2011 14:38:13 +0000
bugs673112
milestone8.0a1
backs out84ac0004679c056b92a641b39b698e34d0dde475
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);