diff options
| author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-06-20 13:01:08 +0200 |
|---|---|---|
| committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-06-20 13:01:08 +0200 |
| commit | 49233e234e5c787396cadb2cea33b31ae0cd65c1 (patch) | |
| tree | 5410cb9a8fd53168bb60d62c54b654d86f03c38d /Source/WebKit/chromium/src/NonCompositedContentHost.h | |
| parent | b211c645d8ab690f713515dfdc84d80b11c27d2c (diff) | |
| download | qtwebkit-49233e234e5c787396cadb2cea33b31ae0cd65c1.tar.gz | |
Imported WebKit commit 3a8c29f35d00659d2ce7a0ccdfa8304f14e82327 (http://svn.webkit.org/repository/webkit/trunk@120813)
New snapshot with Windows build fixes
Diffstat (limited to 'Source/WebKit/chromium/src/NonCompositedContentHost.h')
| -rw-r--r-- | Source/WebKit/chromium/src/NonCompositedContentHost.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/Source/WebKit/chromium/src/NonCompositedContentHost.h b/Source/WebKit/chromium/src/NonCompositedContentHost.h index 320e7c1be..9706860d7 100644 --- a/Source/WebKit/chromium/src/NonCompositedContentHost.h +++ b/Source/WebKit/chromium/src/NonCompositedContentHost.h @@ -40,30 +40,31 @@ class GraphicsContext; class IntPoint; class IntRect; class LayerChromium; -class LayerPainterChromium; } namespace WebKit { +class WebViewImpl; class NonCompositedContentHost : public WebCore::GraphicsLayerClient { WTF_MAKE_NONCOPYABLE(NonCompositedContentHost); public: - static PassOwnPtr<NonCompositedContentHost> create(PassOwnPtr<WebCore::LayerPainterChromium> contentPaint) + static PassOwnPtr<NonCompositedContentHost> create(WebViewImpl* webView) { - return adoptPtr(new NonCompositedContentHost(contentPaint)); + return adoptPtr(new NonCompositedContentHost(webView)); } virtual ~NonCompositedContentHost(); void invalidateRect(const WebCore::IntRect&); void setBackgroundColor(const WebCore::Color&); + void setOpaque(bool); void setScrollLayer(WebCore::GraphicsLayer*); - void setViewport(const WebCore::IntSize& viewportSize, const WebCore::IntSize& contentsSize, const WebCore::IntPoint& scrollPosition, float deviceScale, int layerAdjustX); + void setViewport(const WebCore::IntSize& viewportSize, const WebCore::IntSize& contentsSize, const WebCore::IntPoint& scrollPosition, const WebCore::IntPoint& scrollOrigin, float deviceScale); WebCore::GraphicsLayer* topLevelRootLayer() const { return m_graphicsLayer.get(); } void setShowDebugBorders(bool); protected: - explicit NonCompositedContentHost(PassOwnPtr<WebCore::LayerPainterChromium> contentPaint); + explicit NonCompositedContentHost(WebViewImpl*); private: // GraphicsLayerClient @@ -81,9 +82,11 @@ private: WebCore::LayerChromium* scrollLayer(); OwnPtr<WebCore::GraphicsLayer> m_graphicsLayer; - OwnPtr<WebCore::LayerPainterChromium> m_contentPaint; + WebViewImpl* m_webView; WebCore::IntSize m_viewportSize; - int m_layerAdjustX; + WebCore::IntSize m_layerAdjust; + + bool m_opaque; bool m_showDebugBorders; float m_deviceScaleFactor; }; |
