Title: [117724] trunk/Source/WebCore
Revision
117724
Author
[email protected]
Date
2012-05-20 19:44:05 -0700 (Sun, 20 May 2012)

Log Message

[BlackBerry] Implement the Screen functions to get DPI.
https://bugs.webkit.org/show_bug.cgi?id=86967

Reviewed by Antonio Gomes.

* platform/blackberry/PlatformScreenBlackBerry.cpp:
(WebCore::screenHorizontalDPI):
(WebCore::screenVerticalDPI):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (117723 => 117724)


--- trunk/Source/WebCore/ChangeLog	2012-05-21 02:41:58 UTC (rev 117723)
+++ trunk/Source/WebCore/ChangeLog	2012-05-21 02:44:05 UTC (rev 117724)
@@ -1,3 +1,14 @@
+2012-05-20  George Staikos  <[email protected]>
+
+        [BlackBerry] Implement the Screen functions to get DPI.
+        https://bugs.webkit.org/show_bug.cgi?id=86967
+
+        Reviewed by Antonio Gomes.
+
+        * platform/blackberry/PlatformScreenBlackBerry.cpp:
+        (WebCore::screenHorizontalDPI):
+        (WebCore::screenVerticalDPI):
+
 2012-05-20  Shinya Kawanaka  <[email protected]>
 
         [Refactoring] Node::shadowHost() and Node::setShadowHost() can be moved to ShadowRoot.

Modified: trunk/Source/WebCore/platform/blackberry/PlatformScreenBlackBerry.cpp (117723 => 117724)


--- trunk/Source/WebCore/platform/blackberry/PlatformScreenBlackBerry.cpp	2012-05-21 02:41:58 UTC (rev 117723)
+++ trunk/Source/WebCore/platform/blackberry/PlatformScreenBlackBerry.cpp	2012-05-21 02:44:05 UTC (rev 117724)
@@ -29,14 +29,14 @@
 
 int screenHorizontalDPI(Widget*)
 {
-    notImplemented();
-    return 0;
+    FloatSize currentPPI = BlackBerry::Platform::Graphics::Screen::primaryScreen()->pixelsPerInch(-1);
+    return currentPPI.width();
 }
 
 int screenVerticalDPI(Widget*)
 {
-    notImplemented();
-    return 0;
+    FloatSize currentPPI = BlackBerry::Platform::Graphics::Screen::primaryScreen()->pixelsPerInch(-1);
+    return currentPPI.height();
 }
 
 bool screenIsMonochrome(Widget*)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to