Closed Bug 903902 Opened 11 years ago Closed 11 years ago

[System] Remove unnecessary DEVICE_RATIO from window_manager.js

Categories

(Firefox OS Graveyard :: Gaia::System, defect)

x86
macOS
defect
Not set
normal

Tracking

(blocking-b2g:hd+, b2g-v1.1hd fixed)

VERIFIED FIXED
blocking-b2g hd+
Tracking Status
b2g-v1.1hd --- fixed

People

(Reporter: gduan, Assigned: gduan)

Details

Attachments

(1 file)

Regression of bug 893710. It's no necessary to multiply deviceRatio with iframe's width and height for screenshot in window_manager.js, so this bug is to remove it in case for any side effect and confusion.
Attached file PR to v1.1.0hd
This patch is to fix regression of bug 893710. It's no necessary to multiply deviceRatio for iframe's offsetWidth and offsetHeight in css pixel. I also took some screenshots with/without changes, the resolutions are the same.
Attachment #788741 - Flags: review?(alive)
The iframe's offsetWidth and offsetHeight are already 320 and 533 in window_manager.js, so it should be unnecessary for window_manager.js.
blocking-b2g: --- → hd?
Assignee: nobody → gduan
HD+ for regression on the branch.
blocking-b2g: hd? → hd+
Attachment #788741 - Flags: review?(alive) → review+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
[2013/10/21 Helix Testing] Gaia: c829a2042594b6c3a4899ee27979799a0f301534 Gecko: http://hg.mozilla.org/releases/mozilla-b2g18_v1_1_0_hd/rev/f7c657f6d019 BuildID 20131015042201 Version 18.0
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: