diff options
Diffstat (limited to 'WebCore/platform/graphics/win/GraphicsContextCairoWin.cpp')
-rw-r--r-- | WebCore/platform/graphics/win/GraphicsContextCairoWin.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/WebCore/platform/graphics/win/GraphicsContextCairoWin.cpp b/WebCore/platform/graphics/win/GraphicsContextCairoWin.cpp index a989c24..b2c702f 100644 --- a/WebCore/platform/graphics/win/GraphicsContextCairoWin.cpp +++ b/WebCore/platform/graphics/win/GraphicsContextCairoWin.cpp @@ -65,9 +65,15 @@ static cairo_t* createCairoContextWithHDC(HDC hdc, bool hasAlpha) } GraphicsContext::GraphicsContext(HDC dc, bool hasAlpha) - : m_common(createGraphicsContextPrivate()) - , m_data(new GraphicsContextPlatformPrivate) + : m_updatingControlTints(false) { + platformInit(dc, hasAlpha); +} + +void GraphicsContext::platformInit(HDC dc, bool hasAlpha) +{ + m_data = new GraphicsContextPlatformPrivate; + if (dc) { m_data->cr = createCairoContextWithHDC(dc, hasAlpha); m_data->m_hdc = dc; |