Bug 139442

Summary: [SVG Masking] Resources specified by url in -webkit-mask-image should use the cached resources system
Product: WebKit Reporter: Radu Stavila <stavila>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bfulgham, koivisto, krit, mihnea, sabouhallawa, simon.fraser, WebkitBugTracker
Priority: P2 Keywords: AdobeTracked
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 129682, 139092, 139294    
Bug Blocks: 95389    

Description Radu Stavila 2014-12-09 03:59:54 PST
The first version of the masking implementation for <mask> elements defined in SVG does not cache the used resources (see CachedSVGDocument::canReuse). The reason for this was the need to be notified when the SVG document loaded in order to check if a valid <mask> element can be find inside it and, if not, switch to using normal images. If the document was retrieved from cache, this notification would not fire (MaskImageOperation::notifyFinished). An improvement to this implementation would be to find a way around this.