[webkit-dev] Delaying Applying CSS Effects
keyar at chromium.org
Wed Jul 25 12:38:55 PDT 2012
For the SVGResoruceCache route, how would I specify that some element
depends on another element with id x, where x does not exist in the DOM yet?
I have noticed SVGDocumentExtensions::addPendingResource which sounds like
what I want, but it only excepts SVGStyleElements.
On Tue, Jul 24, 2012 at 7:43 PM, Dirk Schulze <krit at webkit.org> wrote:
> In SVG we have SVGResourcesCache which takes care of that.
> On Jul 24, 2012, at 3:56 PM, Dean Jackson wrote:
> > On 25/07/2012, at 6:09 AM, Keyar Hood <keyar at chromium.org> wrote:
> >> I am working on https://bugs.webkit.org/show_bug.cgi?id=90405
> >> The problem is that when doing SVG filters in CSS using URL references,
> if the target SVG filter is after the element that the filter is to be
> applied to (the filtered element), then the filter will not be applied.
> >> Looking at the code, a getElementByID() call is made when looking for
> the target SVG filter. However, this does not work when the target SVG
> filter is after the filtered element. I believe this is because the DOM
> element for the target SVG filter does not exist yet.
> >> I am wondering if there is some way to delay resolving these CSS
> effects until after the DOM has finished loading.
> > Your analysis sounds right. I think we'll have to do exactly that: delay
> calling buildFilterEffectRenderer until the document has loaded.
> > Dean
> > _______________________________________________
> > webkit-dev mailing list
> > webkit-dev at lists.webkit.org
> > http://lists.webkit.org/mailman/listinfo/webkit-dev
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-dev