[Webkit-unassigned] [Bug 102199] New: PlatformPathCairo.cpp is calling cairo_image_surface_create during static initialization

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 14 02:07:57 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=102199

           Summary: PlatformPathCairo.cpp is calling
                    cairo_image_surface_create during static
                    initialization
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Platform
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: yannick.poirier at inverto.tv


Created an attachment (id=174116)
 --> (https://bugs.webkit.org/attachment.cgi?id=174116&action=review)
PlatformPathCairo.cpp patch

In PlatformPathCairo.cpp, gPathSurface is initialized before we execute main :

static cairo_surface_t* gPathSurface = getPathSurface(); 

But if we are using cairo library with some specific backend, 
the cairo backend might need to be initialized before we are allowed to call cairo_image_surface_create() else it crashes. 

I've attached a patch to fix it.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list