Bug 596892 - fix rename of SetWindowSize message [r=mfinkle]
authorMatt Brubeck <mbrubeck@mozilla.com>
Wed, 15 Sep 2010 23:55:42 -0700
changeset 66657 84612b0bd7e398248c89a290270abe4ae1c5f0d5
parent 66656 63486a1aff869604f7a3805ed876ee946e8e0d25
child 66658 d9f10f50819a15b62e8401d73c464ec80bbfd6aa
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs596892
Bug 596892 - fix rename of SetWindowSize message [r=mfinkle]
mobile/chrome/content/bindings/browser.js
--- a/mobile/chrome/content/bindings/browser.js
+++ b/mobile/chrome/content/bindings/browser.js
@@ -339,17 +339,17 @@ let DOMEvents =  {
 DOMEvents.init();
 
 let ContentScroll =  {
   init: function() {
     addMessageListener("Content:ScrollTo", this);
     addMessageListener("Content:ScrollBy", this);
     addMessageListener("Content:SetResolution", this);
     addMessageListener("Content:SetCacheViewport", this);
-    addMessageListener("Content:SetCssViewportSize", this);
+    addMessageListener("Content:SetWindowSize", this);
 
     addEventListener("scroll", this, false);
     addEventListener("MozScrolledAreaChanged", this, false);
   },
 
   receiveMessage: function(aMessage) {
     let json = aMessage.json;
     switch (aMessage.name) {
@@ -367,17 +367,17 @@ let ContentScroll =  {
           break;
 
         let cwu = Util.getWindowUtils(content);
         cwu.setResolution(json.scale, json.scale);
         cwu.setDisplayPort(displayport.x, displayport.y, displayport.width, displayport.height);
         break;
       }
 
-      case "Content:SetCssViewportSize": {
+      case "Content:SetWindowSize": {
         let cwu = Util.getWindowUtils(content);
         cwu.setCSSViewport(json.width, json.height);
         break;
       }
     }
   },
 
   handleEvent: function(aEvent) {