Bug 596892 - fix rename of SetWindowSize message [r=mfinkle]
authorMatt Brubeck <mbrubeck@mozilla.com>
Wed, 15 Sep 2010 23:55:42 -0700
changeset 2013 2f7715f27533316ded08e9277ab813a1d026faac
parent 2012 25d089c480c8318880ac7e267f3c5524517eca57
child 2014 a15119248792bf79f02cf1165a6e96cf291526cf
push id1718
push usermbrubeck@mozilla.com
push dateThu, 16 Sep 2010 06:58:25 +0000
reviewersmfinkle
bugs596892
Bug 596892 - fix rename of SetWindowSize message [r=mfinkle]
chrome/content/bindings/browser.js
--- a/chrome/content/bindings/browser.js
+++ b/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) {