Bug 43662 - Viewport "device-width" and height should not use window width and height
Summary: Viewport "device-width" and height should not use window width and height
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2010-08-06 19:07 PDT by Joseph Pecoraro
Modified: 2012-04-30 05:15 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2010-08-06 19:07:59 PDT
The window's height and width may be different than the device's height and width.
Currently the viewport uses ChromeClient::windowRect for "device-width" and height.
I think it would be better if there was a ChromeClient::deviceRect for "device-width"
and height, and add new attributes "window-width" and height to represent the
windowRect values.

See ViewportArguments:
http://trac.webkit.org/browser/trunk/WebCore/dom/ViewportArguments.cpp#L48
Comment 1 Joseph Pecoraro 2010-08-06 19:12:01 PDT
<rdar://problem/7704588>