Closed
Bug 602322
Opened 15 years ago
Closed 15 years ago
Implement GetDPI on Android
Categories
(Core Graveyard :: Widget: Android, defect)
Tracking
(fennec2.0b2+)
RESOLVED
FIXED
mozilla2.0b7
| Tracking | Status | |
|---|---|---|
| fennec | 2.0b2+ | --- |
People
(Reporter: mbrubeck, Assigned: mbrubeck)
References
Details
(Whiteboard: [not-fennec-11])
Attachments
(1 file, 1 obsolete file)
|
3.93 KB,
patch
|
mbrubeck
:
review+
|
Details | Diff | Splinter Review |
Bug 537890 introduced a new nsIWidget::GetDPI method, which is useful for implementing device-independent UI with physical units like mozmm.
Android is currently using the default implementation from nsBaseWidget, which always returns 96.0. Here's a patch to retrieve the correct value from the OS instead.
Attachment #481335 -
Flags: review?(mwu)
Updated•15 years ago
|
Attachment #481335 -
Flags: review?(mwu) → review+
| Assignee | ||
Comment 1•15 years ago
|
||
We will need this to properly support different Android screens (bug 590777).
Note for future reference: android.util.displayMetrics.density might be useful too; it closely matches the use case for our "zoom.dpiScale" pref.
Blocks: 590777
tracking-fennec: --- → ?
Updated•15 years ago
|
tracking-fennec: ? → 2.0b2+
| Assignee | ||
Comment 2•15 years ago
|
||
Note: This patch works in chrome, but in the content process it always returns the default value of 96.
Assignee: nobody → mbrubeck
Status: NEW → ASSIGNED
| Assignee | ||
Comment 3•15 years ago
|
||
After testing this more and learning more about the new DPI system, I am ready to check this in. This will only affect physical units like mozmm (which we are not currently using in Fennec chrome). Standard CSS units like mm and px are not affected.
Attachment #481335 -
Attachment is obsolete: true
Attachment #481544 -
Flags: review+
| Assignee | ||
Updated•15 years ago
|
Keywords: checkin-needed
Comment 4•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b8
Updated•15 years ago
|
Target Milestone: mozilla2.0b8 → mozilla2.0b7
Updated•14 years ago
|
Whiteboard: [not-fennec-11]
Updated•4 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•