summaryrefslogtreecommitdiff
path: root/Source/WebKit2/UIProcess/qt/QtWebPageSGNode.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit2/UIProcess/qt/QtWebPageSGNode.h')
-rw-r--r--Source/WebKit2/UIProcess/qt/QtWebPageSGNode.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/WebKit2/UIProcess/qt/QtWebPageSGNode.h b/Source/WebKit2/UIProcess/qt/QtWebPageSGNode.h
index 830c6d64f..49c4c5000 100644
--- a/Source/WebKit2/UIProcess/qt/QtWebPageSGNode.h
+++ b/Source/WebKit2/UIProcess/qt/QtWebPageSGNode.h
@@ -33,17 +33,20 @@ namespace WebKit {
class ContentsSGNode;
class CoordinatedGraphicsScene;
+class WebPageProxy;
class QtWebPageSGNode final : public QSGTransformNode {
public:
- QtWebPageSGNode();
+ QtWebPageSGNode(WebPageProxy&);
void setBackground(const QRectF&, const QColor&);
void setScale(float);
void setCoordinatedGraphicsScene(PassRefPtr<CoordinatedGraphicsScene>);
qreal devicePixelRatio() const { return m_devicePixelRatio; }
void setDevicePixelRatio(qreal devicePixelRatio) { m_devicePixelRatio = devicePixelRatio; }
+ const WebPageProxy& page() const { return m_page; }
private:
+ Ref<WebPageProxy> m_page;
ContentsSGNode* m_contentsNode;
QSGSimpleRectNode* m_backgroundNode;
qreal m_devicePixelRatio;