Commit 365f91eb authored by bfulgham@webkit.org's avatar bfulgham@webkit.org

009-06-16 Brent Fulgham <bfulgham@webkit.org>

        Reviewed by Xan Lopez.

        Fixes https://bugs.webkit.org/show_bug.cgi?id=26453.
        Null Cairo contextwill crash Windows Cairo build.

        Test: fast/multicol/columns-shorthand-parsing.html 


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@44734 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent fde38ba9
2009-06-16 Brent Fulgham <bfulgham@webkit.org>
Reviewed by Xan Lopez.
Test: fast/multicol/columns-shorthand-parsing.html
Fixes https://bugs.webkit.org/show_bug.cgi?id=26453.
Null Cairo contextwill crash Windows Cairo build.
* platform/graphics/win/GraphicsContextCairoWin.cpp:
(WebCore::GraphicsContextPlatformPrivate::syncContext):
Add a check for null context before attempting to
retrieve the Cairo surface.
2009-06-16 Peter Kasting <pkasting@google.com>
Reviewed by Xan Lopez.
......
......@@ -211,6 +211,9 @@ void GraphicsContextPlatformPrivate::concatCTM(const TransformationMatrix& trans
void GraphicsContextPlatformPrivate::syncContext(PlatformGraphicsContext* cr)
{
if (!cr)
return;
cairo_surface_t* surface = cairo_get_target(cr);
m_hdc = cairo_win32_surface_get_dc(surface);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment