diff options
| author | Simon Hausmann <simon.hausmann@digia.com> | 2012-10-15 16:08:57 +0200 |
|---|---|---|
| committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-10-15 16:08:57 +0200 |
| commit | 5466563f4b5b6b86523e3f89bb7f77e5b5270c78 (patch) | |
| tree | 8caccf7cd03a15207cde3ba282c88bf132482a91 /Tools/WebKitTestRunner/efl/PlatformWebViewEfl.cpp | |
| parent | 33b26980cb24288b5a9f2590ccf32a949281bb79 (diff) | |
| download | qtwebkit-5466563f4b5b6b86523e3f89bb7f77e5b5270c78.tar.gz | |
Imported WebKit commit 0dc6cd75e1d4836eaffbb520be96fac4847cc9d2 (http://svn.webkit.org/repository/webkit/trunk@131300)
WebKit update which introduces the QtWebKitWidgets module that contains the WK1
widgets based API. (In fact it renames QtWebKit to QtWebKitWidgets while we're
working on completing the entire split as part of
https://bugs.webkit.org/show_bug.cgi?id=99314
Diffstat (limited to 'Tools/WebKitTestRunner/efl/PlatformWebViewEfl.cpp')
| -rw-r--r-- | Tools/WebKitTestRunner/efl/PlatformWebViewEfl.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Tools/WebKitTestRunner/efl/PlatformWebViewEfl.cpp b/Tools/WebKitTestRunner/efl/PlatformWebViewEfl.cpp index 0bdb236dd..06187a066 100644 --- a/Tools/WebKitTestRunner/efl/PlatformWebViewEfl.cpp +++ b/Tools/WebKitTestRunner/efl/PlatformWebViewEfl.cpp @@ -28,11 +28,9 @@ using namespace WebKit; namespace WTR { -static bool useX11Window = false; - static Ecore_Evas* initEcoreEvas() { - Ecore_Evas* ecoreEvas = useX11Window ? ecore_evas_new(0, 0, 0, 800, 600, 0) : ecore_evas_buffer_new(800, 600); + Ecore_Evas* ecoreEvas = ecore_evas_new(0, 0, 0, 800, 600, 0); if (!ecoreEvas) return 0; @@ -76,16 +74,18 @@ void PlatformWebView::focus() WKRect PlatformWebView::windowFrame() { - Evas_Coord x, y, width, height; - evas_object_geometry_get(m_view, &x, &y, &width, &height); + int x, y, width, height; + + Ecore_Evas* ee = ecore_evas_ecore_evas_get(evas_object_evas_get(m_view)); + ecore_evas_request_geometry_get(ee, &x, &y, &width, &height); return WKRectMake(x, y, width, height); } void PlatformWebView::setWindowFrame(WKRect frame) { - evas_object_move(m_view, frame.origin.x, frame.origin.y); - resizeTo(frame.size.width, frame.size.height); + Ecore_Evas* ee = ecore_evas_ecore_evas_get(evas_object_evas_get(m_view)); + ecore_evas_move_resize(ee, frame.origin.x, frame.origin.y, frame.size.width, frame.size.height); } void PlatformWebView::addChromeInputField() |
