[mobile2] Set browser.xml viewport properties in setCssViewportSize.

--HG--
extra : rebase_source : 83cc69ceac9caea7f6f0d525ecf570bdb4cb3fb3
This commit is contained in:
Matt Brubeck 2010-09-07 11:40:44 -07:00
parent 89912269ab
commit e1fc47029e
2 changed files with 2 additions and 4 deletions

View File

@ -405,8 +405,6 @@ let ContentScroll = {
sendAsyncMessage("MozScrolledAreaChanged", {
width: width,
height: height,
viewportWidth: content.innerWidth,
viewportHeight: content.innerHeight
});
break;

View File

@ -159,8 +159,6 @@
case "MozScrolledAreaChanged":
this._widthInCSSPx = aMessage.json.width;
this._heightInCSSPx = aMessage.json.height;
this._viewportWidthInCSSPx = aMessage.json.viewportWidth;
this._viewportHeightInCSSPx = aMessage.json.viewportHeight;
this._updateCacheViewport();
break;
}
@ -488,6 +486,8 @@
<parameter name="height"/>
<body>
<![CDATA[
this._viewportWidthInCSSPx = width;
this._viewportHeightInCSSPx = height;
this.messageManager.sendAsyncMessage("Content:SetCssViewportSize", {
width: width,
height: height