Title: [161343] trunk/Source/WebCore
- Revision
- 161343
- Author
- [email protected]
- Date
- 2014-01-06 07:07:34 -0800 (Mon, 06 Jan 2014)
Log Message
[Nix] Adding screenRect implementation to PlatformScreenNix
https://bugs.webkit.org/show_bug.cgi?id=126231
Reviewed by Csaba Osztrogonác.
No new tests needed.
* platform/nix/PlatformScreenNix.cpp:
(WebCore::screenRect):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (161342 => 161343)
--- trunk/Source/WebCore/ChangeLog 2014-01-06 14:27:54 UTC (rev 161342)
+++ trunk/Source/WebCore/ChangeLog 2014-01-06 15:07:34 UTC (rev 161343)
@@ -1,5 +1,17 @@
2014-01-06 Thiago de Barros Lacerda <[email protected]>
+ [Nix] Adding screenRect implementation to PlatformScreenNix
+ https://bugs.webkit.org/show_bug.cgi?id=126231
+
+ Reviewed by Csaba Osztrogonác.
+
+ No new tests needed.
+
+ * platform/nix/PlatformScreenNix.cpp:
+ (WebCore::screenRect):
+
+2014-01-06 Thiago de Barros Lacerda <[email protected]>
+
[Nix] Adding missing platform #ifs to WebCore files
https://bugs.webkit.org/show_bug.cgi?id=126227
Modified: trunk/Source/WebCore/platform/nix/PlatformScreenNix.cpp (161342 => 161343)
--- trunk/Source/WebCore/platform/nix/PlatformScreenNix.cpp 2014-01-06 14:27:54 UTC (rev 161342)
+++ trunk/Source/WebCore/platform/nix/PlatformScreenNix.cpp 2014-01-06 15:07:34 UTC (rev 161343)
@@ -26,8 +26,12 @@
#include "config.h"
#include "PlatformScreen.h"
+#include "Chrome.h"
+#include "ChromeClient.h"
#include "FloatRect.h"
+#include "HostWindow.h"
#include "NotImplemented.h"
+#include "ScrollView.h"
#include "Widget.h"
#include <wtf/text/CString.h>
#include <wtf/text/WTFString.h>
@@ -64,10 +68,9 @@
return false;
}
-FloatRect screenRect(Widget*)
+FloatRect screenRect(Widget* widget)
{
- notImplemented();
- return FloatRect(0, 0, 1024, 768);
+ return static_cast<Chrome*>(widget->root()->hostWindow())->client().screenRect();
}
FloatRect screenAvailableRect(Widget* widget)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes