Bug 11987 - ASSERT while loading SVG map
Summary: ASSERT while loading SVG map
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P1 Normal
Assignee: Eric Seidel (no email)
URL: http://svg-whiz.com/svg/map/world-iso...
Keywords: NeedsReduction
Depends on:
Reported: 2006-12-26 14:09 PST by Eric Seidel (no email)
Modified: 2006-12-26 21:23 PST (History)
0 users

See Also:

fix (50.87 KB, patch)
2006-12-26 19:55 PST, Eric Seidel (no email)
oliver: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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]

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.