[Qt] Remove setDeviceSize methods
authorKenneth Rohde Christiansen <kenneth@webkit.org>
Tue, 28 Sep 2010 00:31:09 +0000 (00:31 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Wed, 6 Oct 2010 14:36:27 +0000 (16:36 +0200)
commitb2d63cf26fad312ca53ba30506e2ea4e7d448042
treef490a8ba78dff7c46e281d670d0b454995f34df4
parent1d5ee2c5565361725819b721a785ca51ba77be49
[Qt] Remove setDeviceSize methods

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

Reviewed by Antonio Gomes.

Remove our setDeviceHeight() API and obtain it automatically from the
system. Also for testing purposes, make it possible to override the
values via two newly introduced environment variables.

* Api/qgraphicswebview.cpp:
* Api/qgraphicswebview.h:
* Api/qwebpage.cpp:
(getintenv):
(queryDeviceSizeForScreenContainingWidget):
(QWebPage::viewportConfigurationForSize):
* WebCoreSupport/PageClientQt.cpp:
(WebCore::PageClientQGraphicsWidget::windowRect):
* symbian/eabi/QtWebKitu.def:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@68457 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKit/qt/Api/qgraphicswebview.cpp
WebKit/qt/Api/qgraphicswebview.h
WebKit/qt/Api/qwebpage.cpp
WebKit/qt/ChangeLog
WebKit/qt/WebCoreSupport/PageClientQt.cpp
WebKit/qt/symbian/eabi/QtWebKitu.def