summaryrefslogtreecommitdiff
path: root/Tools/MiniBrowser
diff options
context:
space:
mode:
authorAndras Becsi <andras.becsi@digia.com>2012-12-13 20:15:30 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2012-12-13 22:07:16 +0100
commit69e9b8736f2410fc33db62b432cf5210b50331e9 (patch)
tree5d5a85c871cad42f8b95361ccb1c119371afc277 /Tools/MiniBrowser
parent5423dd08373bb58f0d469d52cde49f128b49ddf2 (diff)
downloadqtwebkit-69e9b8736f2410fc33db62b432cf5210b50331e9.tar.gz
[Qt][WK2] Fix painting on Mac with retina display
https://bugs.webkit.org/show_bug.cgi?id=104574 Reviewed by Kenneth Rohde Christiansen. Since HiDPI support has been added and enabled in Qt we ended up painting incorrectly scaled content on high-resolution screens. Because the intrinsic device pixel ratio is always taken into account by Qt when painting to high-resolution screens we should automatically obtain the scale ratio from the window in which the item is rendered instead of setting it in QML. Qt does not make it possible to override the device pixel ratio of the native window, therefore our experimental QML API for setting a custom value is of no use any more and should be removed. This patch fixes the scaling issue on Mac retina display by querying the underlying window for the device scale factor and applying it to the backing store and the scene-graph rendering of the content node. Additionally removes the experimental API and related API tests. Change-Id: I04f23059147773ca279a89ae8976ccd3d9bef292 git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137597 268f45cc-cd09-0410-ab3c-d52691b4dbfc Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'Tools/MiniBrowser')
-rw-r--r--Tools/MiniBrowser/qt/qml/BrowserWindow.qml1
1 files changed, 0 insertions, 1 deletions
diff --git a/Tools/MiniBrowser/qt/qml/BrowserWindow.qml b/Tools/MiniBrowser/qt/qml/BrowserWindow.qml
index c73308e15..e52b2f44b 100644
--- a/Tools/MiniBrowser/qt/qml/BrowserWindow.qml
+++ b/Tools/MiniBrowser/qt/qml/BrowserWindow.qml
@@ -354,7 +354,6 @@ Rectangle {
webView.loadHtml("Failed to load " + loadRequest.url, "", loadRequest.url)
}
- experimental.devicePixelRatio: 1.5
experimental.preferences.fullScreenEnabled: true
experimental.preferences.webGLEnabled: true
experimental.preferences.webAudioEnabled: true