Bug 139442 - [SVG Masking] Resources specified by url in -webkit-mask-image should use the cached resources system
Summary: [SVG Masking] Resources specified by url in -webkit-mask-image should use the...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
Keywords: AdobeTracked
Depends on: 129682 139092 139294
Blocks: 95389
  Show dependency treegraph
Reported: 2014-12-09 03:59 PST by Radu Stavila
Modified: 2022-07-14 13:32 PDT (History)
7 users (show)

See Also:


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