[Webkit-unassigned] [Bug 111786] Tighten up the type bounds for SVGPropertyInfo callback parameters
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Mar 12 08:19:04 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=111786
--- Comment #2 from Florin Malita <fmalita at chromium.org> 2013-03-12 08:21:30 PST ---
Several ways to approach this:
1) introduce a dedicated interface for the SVGPropertyInfo callbacks to support minimal type checking
2) templetize SVGPropertyInfo and its users (SVGAttributeToPropertyMap, etc.)
3) change SVGPropertyInfo's callback signatures to use SVGElement* and drop the lookupOrCreateWrapperForAnimatedProperty callback for SVGViewSpec (since SVGViewSpec is not inheriting from SVGElement)
I'm inclined to go with #3 because I don't think SVGPropertyInfo::lookupOrCreateWrapperForAnimatedProperty is used in the case of SVGViewSpec:
* AFAICT, the call graph for SVGPropertyInfo::lookupOrCreateWrapperForAnimatedProperty() is rooted in SVGAnimateElement:
SVGPropertyInfo::lookupOrCreateWrapperForAnimatedProperty() <- SVGAttributeToPropertyMap::animatedProperty() <- SVGAttributeToPropertyMap::animatedPropertiesForAttribute() <- SVGAnimatedTypeAnimator::findAnimatedPropertiesForAttributeName() <- SVGAnimateElement::resetAnimatedType()
* since SVGViewSpec is a synthetic construct with no corresponding DOM element, it cannot have an associated animator; an <animate> element would operate on the true viewport container (<svg>, etc.) and not on the viewspec itself.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list