summaryrefslogtreecommitdiff
path: root/Source/WebKit2/UIProcess/qt/QtWebPageSGNode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit2/UIProcess/qt/QtWebPageSGNode.cpp')
-rw-r--r--Source/WebKit2/UIProcess/qt/QtWebPageSGNode.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/Source/WebKit2/UIProcess/qt/QtWebPageSGNode.cpp b/Source/WebKit2/UIProcess/qt/QtWebPageSGNode.cpp
index d72980c05..7b6c1ee87 100644
--- a/Source/WebKit2/UIProcess/qt/QtWebPageSGNode.cpp
+++ b/Source/WebKit2/UIProcess/qt/QtWebPageSGNode.cpp
@@ -126,10 +126,10 @@ private:
RefPtr<LayerTreeRenderer> m_renderer;
};
-QtWebPageSGNode::QtWebPageSGNode(const QQuickItem* item)
+QtWebPageSGNode::QtWebPageSGNode()
: m_contentsNode(0)
, m_backgroundNode(new QSGSimpleRectNode)
- , m_item(item)
+ , m_devicePixelRatio(1)
{
appendChildNode(m_backgroundNode);
}
@@ -147,13 +147,6 @@ void QtWebPageSGNode::setScale(float scale)
setMatrix(matrix);
}
-qreal QtWebPageSGNode::devicePixelRatio() const
-{
- if (const QWindow* window = m_item->window())
- return window->devicePixelRatio();
- return 1;
-}
-
void QtWebPageSGNode::setRenderer(PassRefPtr<LayerTreeRenderer> renderer)
{
if (m_contentsNode && m_contentsNode->layerTreeRenderer() == renderer)