Bug 43236

Summary: Optimize SVGResources memory usage
Product: WebKit Reporter: Nikolas Zimmermann <zimmermann>
Component: SVGAssignee: Nikolas Zimmermann <zimmermann>
Severity: Normal CC: krit, zimmermann
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Description Flags
Updated patch krit: review+

Description Nikolas Zimmermann 2010-07-30 02:43:24 PDT
marker*/clip-path/filter/fill/stroke properties can not be applied to all elements.
We should be able to reduce memory usage of the class, by grouping properties that can be applied to certain element categories like "shapes" / "text content elements" / "graphics elements" / "container elements", as the SVG specification describes.

Clipper & Filter & Masker can be grouped, MarkerStart & MarkerMid & MarkerEnd as well as Fill & Stroke.
Comment 1 Nikolas Zimmermann 2010-07-30 02:48:29 PDT
Created attachment 63039 [details]
Comment 2 Nikolas Zimmermann 2010-07-30 02:53:25 PDT
Created attachment 63041 [details]
Updated patch

Add missing ENABLE(FILTERS) guards.
Comment 3 Dirk Schulze 2010-07-30 04:00:52 PDT
Comment on attachment 63041 [details]
Updated patch

Talked about some changes on tag to clipper mapping. We don't follow the spec for defs,switch,pattern.
Comment 4 Nikolas Zimmermann 2010-07-30 04:03:05 PDT
Thanks, landed in r64345.