Bug 67225 - Plug-ins have to use JavaScript to find out the current device scale factor
Summary: Plug-ins have to use JavaScript to find out the current device scale factor
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Plug-ins (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac (Intel) OS X 10.7
: P2 Normal
Assignee: Anders Carlsson
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2011-08-30 13:47 PDT by Adam Roben (:aroben)
Modified: 2011-10-25 15:59 PDT (History)
4 users (show)

See Also:


Attachments
Patch (24.70 KB, patch)
2011-10-25 15:48 PDT, Anders Carlsson
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Roben (:aroben) 2011-08-30 13:47:51 PDT
In order to find out the current device scale factor, plug-ins have to use JavaScript to determine the window.devicePixelRatio value. It would be much nicer if we had a simple NPAPI-style API for them to use instead.
Comment 1 Radar WebKit Bug Importer 2011-08-30 13:48:23 PDT
<rdar://problem/10048258>
Comment 2 Anders Carlsson 2011-10-25 15:48:13 PDT
Created attachment 112416 [details]
Patch
Comment 3 Anders Carlsson 2011-10-25 15:59:37 PDT
Committed r98403: <http://trac.webkit.org/changeset/98403>