summaryrefslogtreecommitdiffstats
path: root/Source/WebKit2/Shared/WebGraphicsContext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit2/Shared/WebGraphicsContext.cpp')
-rw-r--r--Source/WebKit2/Shared/WebGraphicsContext.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/WebKit2/Shared/WebGraphicsContext.cpp b/Source/WebKit2/Shared/WebGraphicsContext.cpp
index 3d319e4..72220b3 100644
--- a/Source/WebKit2/Shared/WebGraphicsContext.cpp
+++ b/Source/WebKit2/Shared/WebGraphicsContext.cpp
@@ -26,15 +26,19 @@
#include "config.h"
#include "WebGraphicsContext.h"
+#if PLATFORM(GTK)
+#include <WebCore/PlatformContextCairo.h>
+#endif
+
using namespace WebCore;
namespace WebKit {
WebGraphicsContext::WebGraphicsContext(GraphicsContext* graphicsContext)
-#if PLATFORM(CG)
+#if USE(CG)
: m_platformContext(graphicsContext->platformContext())
#elif PLATFORM(GTK)
- : m_platformContext(graphicsContext->platformContext())
+ : m_platformContext(graphicsContext->platformContext()->cr())
#endif
{
}