Bug 11987

Summary: ASSERT while loading SVG map
Product: WebKit Reporter: Eric Seidel (no email) <eric>
Component: SVGAssignee: Eric Seidel (no email) <eric>
Status: RESOLVED FIXED    
Severity: Normal Keywords: NeedsReduction
Priority: P1    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
URL: http://svg-whiz.com/svg/map/world-iso.svgz
Attachments:
Description Flags
fix oliver: review+

Description Eric Seidel (no email) 2006-12-26 14:09:33 PST
ASSERT while loading SVG map

ASSERTION FAILED: !color().hasAlpha()
(/Stuff/Projects/WebKit/WebCore/platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp:58 virtual bool WebCore::SVGPaintServerSolid::setup(WebCore::GraphicsContext*&, const WebCore::RenderObject*, WebCore::SVGPaintTargetType, bool) const)
zsh: segmentation fault  run-safari

Should be simple to fix.  I have not investigated yet.
Comment 1 Eric Seidel (no email) 2006-12-26 19:55:20 PST
Created attachment 12051 [details]
fix

The bug was that invalid colors were sneaking through the SVG CSS code (they still are) and tripping an assert down in the SVG painting code.  Now we're catching invalid colors in the SVGPaintServer code and defaulting back to no color.  Better would be to catch the invalid colors in the CSS code, but that would have been a much larger code change.