[Webkit-unassigned] [Bug 42973] (color:8) media query does not evaluate to true for 32bpp displays on Windows

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 26 06:35:15 PDT 2010


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





--- Comment #1 from Adam Roben (aroben) <aroben at apple.com>  2010-07-26 06:35:14 PST ---
The screenDepthPerComponent function is what is used to evaluate this media query: <http://trac.webkit.org/browser/trunk/WebCore/platform/win/PlatformScreenWin.cpp?rev=52791#L74>

The problem (as in bug 42972) is that deviceInfo.bmBitsPerPel is returning 32, rather than 24. 32 / 3 == 10 (with integer truncation), which is why (color:10) is evaluating to true.

Once we fix bug 42972, we could change screenDepthPerComponent to call through to screenDepth, rather than calling deviceInfoForWidget directly.

-- 
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