From 49233e234e5c787396cadb2cea33b31ae0cd65c1 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Wed, 20 Jun 2012 13:01:08 +0200 Subject: Imported WebKit commit 3a8c29f35d00659d2ce7a0ccdfa8304f14e82327 (http://svn.webkit.org/repository/webkit/trunk@120813) New snapshot with Windows build fixes --- Source/WebKit/chromium/src/NonCompositedContentHost.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'Source/WebKit/chromium/src/NonCompositedContentHost.h') 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 create(PassOwnPtr contentPaint) + static PassOwnPtr 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 contentPaint); + explicit NonCompositedContentHost(WebViewImpl*); private: // GraphicsLayerClient @@ -81,9 +82,11 @@ private: WebCore::LayerChromium* scrollLayer(); OwnPtr m_graphicsLayer; - OwnPtr 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; }; -- cgit v1.2.1