[Webkit-unassigned] [Bug 68098] ValueAuto and ValueMediumDPI are the same for all platforms.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 15 14:40:39 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=68098





--- Comment #7 from Kenneth Rohde Christiansen <kenneth at webkit.org>  2011-09-15 14:40:39 PST ---
(In reply to comment #6)
> (In reply to comment #5)
> > (From update of attachment 107521 [details] [details])
> > View in context: https://bugs.webkit.org/attachment.cgi?id=107521&action=review
> > 
> > > Source/WebCore/ChangeLog:8
> > > +        Not all platforms should have the same default value for the
> > > +        targetDensityDPI. Added an optional parameter to allow
> > > +        platforms to override the default auto value.
> > 
> > The default value is set to 160 for a reason. The reason being that that is what the original iOS used. Android even went as far as specifying what they call -density independent pixels- DIPS, which are specified as pixels at 160 DPI.
> > 
> > Our devices (N9, N950) have a default DPI of 240 and we do not need this modification.
> > 
> > Changing to another default is just going to break all pages designed with 160 in mind (most mobile pages), so I do not see how this is going to help with anything. 
> > 
> > So so far I am not convinced this is the right thing to do.
> 
> Most mobile pages don't know or care about target density.  They code to a layout width, which is 320px for most sites.
> 
> In order for a device to display 320px at a density of 160DPI then that device must be at least 2 inches wide(screen width).  computeViewportAttributes will calculate a layout width smaller than 320px if a device's screen width is less than 2 inches.
> 
> This change allows each platform/device to specify its own default if needed.

This would be good to add as a comment in the code and in the ChangeLog. This explains a lot.

I don't like the argument name much, what about something like maximumDPI instead? Would something like that be possible?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list