Closed
Bug 856008
Opened 12 years ago
Closed 12 years ago
Move ContentAreaObserver out of browser.js and clean the code up a bit
Categories
(Firefox for Metro Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 23
People
(Reporter: jimm, Assigned: jimm)
References
Details
Attachments
(2 files, 1 obsolete file)
18.12 KB,
patch
|
sfoster
:
review+
|
Details | Diff | Splinter Review |
12.85 KB,
patch
|
mbrubeck
:
review+
sfoster
:
feedback+
|
Details | Diff | Splinter Review |
No description provided.
![]() |
Assignee | |
Comment 1•12 years ago
|
||
![]() |
Assignee | |
Updated•12 years ago
|
Attachment #731137 -
Attachment is patch: true
![]() |
Assignee | |
Comment 2•12 years ago
|
||
Attachment #731137 -
Attachment is obsolete: true
![]() |
Assignee | |
Comment 3•12 years ago
|
||
![]() |
Assignee | |
Comment 4•12 years ago
|
||
Comment on attachment 731138 [details] [diff] [review]
move cao out of browser.js
This is a simple move of code with an added comment header as well in the file. No functional changes.
Attachment #731138 -
Flags: review?(sfoster)
![]() |
Assignee | |
Comment 5•12 years ago
|
||
Comment on attachment 731139 [details] [diff] [review]
cleanup work
Some cleanup work and reorg of the code. One minor functional change here, I've remove the viewable-height and width classes from browsers for now. It's causing annoying shifting when the soft keyboard comes up. Form positioning will be address in follow up work.
Attachment #731139 -
Flags: review?(sfoster)
Comment 6•12 years ago
|
||
Comment on attachment 731138 [details] [diff] [review]
move cao out of browser.js
Review of attachment 731138 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good.
Attachment #731138 -
Flags: review?(sfoster) → review+
Comment 7•12 years ago
|
||
Comment on attachment 731139 [details] [diff] [review]
cleanup work
I can't claim to really understand the implications of removing those width/height rules. Forwarding to Matt.
Attachment #731139 -
Flags: review?(sfoster)
Attachment #731139 -
Flags: review?(mbrubeck)
Attachment #731139 -
Flags: feedback+
Comment 8•12 years ago
|
||
Comment on attachment 731139 [details] [diff] [review]
cleanup work
Review of attachment 731139 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/metro/base/content/ContentAreaObserver.js
@@ +141,5 @@
> + this._disatchBrowserEvent("ViewableSizeChanged");
> + },
> +
> + onBrowserCreated: function onBrowserCreated(aBrowser) {
> + aBrowser.setAttribute("class", "content-width content-height");
Let's do this instead, so we can't end up accidentally overwriting classes added elsewhere:
aBrowser.classList.add("content-width");
aBrowser.classList.add("content-height");
@@ +216,5 @@
> + _updateTabs: function _updateTabs(aWidth, aHeight) {
> + for (let idx = Browser.tabs.length - 1; idx >=0; idx--) {
> + let tab = Browser.tabs[idx];
> + let oldContentWindowWidth = tab.browser.contentWindowWidth;
> + tab.updateViewportSize(aWidth, aHeight); // contentWindowWidth may change here.
This whole function currently does nothing; I think we should just remove it (including the associated functions in browser.js, though that can be a separate patch). When we want to re-add support for <meta name=viewport> we should use the platform code instead (bug 716575).
@@ +233,5 @@
> +
> + _debugDumpDims: function _debugDumpDims() {
> + let width = parseInt(this.styles["window-width"].width);
> + let height = parseInt(this.styles["window-height"].height);
> + Util.dumpLn("window:", width, height);
You may want to remove this debug code before checkin.
Attachment #731139 -
Flags: review?(mbrubeck) → review+
Comment 9•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/85c51fb7a1ec
https://hg.mozilla.org/mozilla-central/rev/8870e8029899
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 23
Updated•11 years ago
|
OS: Windows 8 Metro → Windows 8.1
You need to log in
before you can comment on or make changes to this bug.
Description
•