I guess that is not even possible, as I would need to subscribe to
something like "(-min-webkit-device-pixel-ratio: 1.0)" and will only
be notified in case the evaluation of that exact expression changes.
Maybe that spec is lacking a way to subscribe to arbitrary changes in
say device-pixel-ratio.

It does feel a bit expensive, but then again we are only reevaluation
after pinch end, so I guess that would be fully OK.

Kenneth

On Fri, Mar 4, 2011 at 9:02 PM, Kenneth Rohde Christiansen
<kenneth.christian...@gmail.com> wrote:
> Hi Simon,
>
> I guess you could use the media query listener defined in
> http://dev.w3.org/csswg/cssom-view/#the-mediaquerylist-interface
>
> We support that on trunk now. This of course means that we will need
> to reevaluate the CSS when a pinch zoom ends, which we might be doing
> already given media queries such as @media all and (min-width: 200px).
>
> Cheers
> Kenneth
>
> On Fri, Mar 4, 2011 at 8:47 PM, Simon Fraser <simon.fra...@apple.com> wrote:
>> On Mar 4, 2011, at 11:24 AM, Kenneth Rohde Christiansen wrote:
>>
>>> Hey Oliver!
>>>
>>> If you are saying that device-pixel-ratio should include the user
>>> scaling, then I can push that for Qt, but I would really like seeing
>>> it supported by iOS as well for compatibility reasons. If you create a
>>> bug for that, please cc me.
>>
>> There's a problem with that, which is that the author can assume (possibly 
>> erroneously) that device-pixel-ratio doesn't change for the life of the 
>> page. However, the zoom level can change often, and there's no notification 
>> that the author can register for that will tell them when the zoom level 
>> changes, and thus when they'll need to redraw their canvas contents.
>>
>> Simon
>>
>>
>
>
>
> --
> Kenneth Rohde Christiansen
> Senior Engineer
> Application and Service Frameworks, Nokia Danmark A/S
> Phone  +45 4093 0598 / E-mail kenneth.christiansen at gmail.com
>
> http://codeposts.blogspot.com ﹆﹆﹆
>



-- 
Kenneth Rohde Christiansen
Senior Engineer
Application and Service Frameworks, Nokia Danmark A/S
Phone  +45 4093 0598 / E-mail kenneth.christiansen at gmail.com

http://codeposts.blogspot.com ﹆﹆﹆
_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to