Commit 7869e236 authored by darin's avatar darin

LayoutTests:

        Reviewed by Hyatt
        
        Tests for http://bugzilla.opendarwin.org/show_bug.cgi?id=8646
        Test the window.screen.pixelDepth and window.screen.colorDepth
        
        * fast/dom/window/window-screen-properties.html: Added
        * fast/dom/window/window-screen-properties-expected.txt: Added.

WebCore:

        Reviewed by Hyatt.

        Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8646
        Correcting the value returned for window.screen.pixelDepth and
        window.screen.colorDepth
        
        * platform/mac/ScreenMac.mm
        (screenDepth): 
        Changed to return the BitsPerPixelFromDepth rather than the WindowDepth



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14678 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent c1b44a3c
2006-06-01 David Carson <dacarson@gmail.com>
Reviewed by Hyatt
Tests for http://bugzilla.opendarwin.org/show_bug.cgi?id=8646
Test the window.screen.pixelDepth and window.screen.colorDepth
* fast/dom/window/window-screen-properties.html: Added
* fast/dom/window/window-screen-properties-expected.txt: Added.
2006-06-01 Geoffrey Garen <ggaren@apple.com> 2006-06-01 Geoffrey Garen <ggaren@apple.com>
- Test for http://bugzilla.opendarwin.org/show_bug.cgi?id=9113 - Test for http://bugzilla.opendarwin.org/show_bug.cgi?id=9113
The current pixel depth returned by window.screen.pixelDepth is: 24
The current color depth returned by window.screen.colorDepth is: 24
<script>
if (window.layoutTestController)
layoutTestController.dumpAsText();
</script>
The current pixel depth returned by window.screen.pixelDepth is:
<script>
document.write(window.screen.pixelDepth);
</script>
<br>
The current color depth returned by window.screen.colorDepth is:
<script>
document.write(window.screen.colorDepth);
</script>
2006-06-01 David Carson <dacarson@gmail.com>
Reviewed by Hyatt.
Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8646
Correcting the value returned for window.screen.pixelDepth and
window.screen.colorDepth
* platform/mac/ScreenMac.mm
(screenDepth):
Changed to return the BitsPerPixelFromDepth rather than the WindowDepth
2006-06-01 Adele Peterson <adele@apple.com> 2006-06-01 Adele Peterson <adele@apple.com>
Reviewed by Maciej. Reviewed by Maciej.
......
...@@ -83,7 +83,7 @@ FloatRect scaleWidgetRectToScreen(FloatRect rect, Widget* widget) ...@@ -83,7 +83,7 @@ FloatRect scaleWidgetRectToScreen(FloatRect rect, Widget* widget)
int screenDepth(Widget* widget) int screenDepth(Widget* widget)
{ {
return [screen(widget) depth]; return NSBitsPerPixelFromDepth([screen(widget) depth]);
} }
// These methods scale between window and WebView coordinates because JavaScript/DOM operations // These methods scale between window and WebView coordinates because JavaScript/DOM operations
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment