<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/1.5.1.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: SMIL work: performance and integration</title>
	<link>http://brian.sol1.net/svg/2005/10/16/smil-work-performance-and-integration/</link>
	<description>News about my attempts to implement SVG Declarative (SMIL) Animation in Mozilla</description>
	<pubDate>Fri, 05 Sep 2008 22:12:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=1.5.1.2</generator>

	<item>
		<title>by: Brian</title>
		<link>http://brian.sol1.net/svg/2005/10/16/smil-work-performance-and-integration/#comment-15</link>
		<pubDate>Mon, 17 Oct 2005 08:15:43 +0000</pubDate>
		<guid>http://brian.sol1.net/svg/2005/10/16/smil-work-performance-and-integration/#comment-15</guid>
					<description>No, I'm afraid not. There's still a long way to go before declarative animation is ready. Hopefully we'll have it by 2.0.</description>
		<content:encoded><![CDATA[	<p>No, I&#8217;m afraid not. There&#8217;s still a long way to go before declarative animation is ready. Hopefully we&#8217;ll have it by 2.0.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Ian</title>
		<link>http://brian.sol1.net/svg/2005/10/16/smil-work-performance-and-integration/#comment-14</link>
		<pubDate>Mon, 17 Oct 2005 08:00:10 +0000</pubDate>
		<guid>http://brian.sol1.net/svg/2005/10/16/smil-work-performance-and-integration/#comment-14</guid>
					<description>Will this be in 1.5?</description>
		<content:encoded><![CDATA[	<p>Will this be in 1.5?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Brian</title>
		<link>http://brian.sol1.net/svg/2005/10/16/smil-work-performance-and-integration/#comment-13</link>
		<pubDate>Sun, 16 Oct 2005 21:33:33 +0000</pubDate>
		<guid>http://brian.sol1.net/svg/2005/10/16/smil-work-performance-and-integration/#comment-13</guid>
					<description>Yes you're right. This part definitely needs more thought. Relying on events also means that SVG documents added entirely by script won't animate.

As for breaking scripts that add event listeners to the svg load event, this is already broken as load events are only dispatched if the onload attribute is specified. See:

http://lxr.mozilla.org/seamonkey/source/content/xml/document/src/nsXMLContentSink.cpp#1020

This will have to be reconsidered when bug 277955 is handled ('onload should respect externalResourcesRequired').

https://bugzilla.mozilla.org/show_bug.cgi?id=277955

But now that you've raised it, I'll look into other ways of starting animation.

Thanks smaug,

Brian.</description>
		<content:encoded><![CDATA[	<p>Yes you&#8217;re right. This part definitely needs more thought. Relying on events also means that SVG documents added entirely by script won&#8217;t animate.</p>
	<p>As for breaking scripts that add event listeners to the svg load event, this is already broken as load events are only dispatched if the onload attribute is specified. See:</p>
	<p><a href='http://lxr.mozilla.org/seamonkey/source/content/xml/document/src/nsXMLContentSink.cpp#1020' rel='nofollow'>http://lxr.mozilla.org/seamonkey/source/content/xml/document/src/nsXMLContentSink.cpp#1020</a></p>
	<p>This will have to be reconsidered when bug 277955 is handled (&#8217;onload should respect externalResourcesRequired&#8217;).</p>
	<p><a href='https://bugzilla.mozilla.org/show_bug.cgi?id=277955' rel='nofollow'>https://bugzilla.mozilla.org/show_bug.cgi?id=277955</a></p>
	<p>But now that you&#8217;ve raised it, I&#8217;ll look into other ways of starting animation.</p>
	<p>Thanks smaug,</p>
	<p>Brian.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: smaug</title>
		<link>http://brian.sol1.net/svg/2005/10/16/smil-work-performance-and-integration/#comment-11</link>
		<pubDate>Sun, 16 Oct 2005 11:25:44 +0000</pubDate>
		<guid>http://brian.sol1.net/svg/2005/10/16/smil-work-performance-and-integration/#comment-11</guid>
					<description>I was just browsing through the patch...
The following doesn't look right, someone may use svg.addEventListener(...) to handle
the svg load event.

+  if (aEvent-&amp;#62;message == NS_SVG_LOAD) {
+    if (mAnimationRegistry)
+      mAnimationRegistry-&amp;#62;Start();
+    if (!HasAttr(kNameSpaceID_None, nsSVGAtoms::onload))
+      return NS_OK;
+  }</description>
		<content:encoded><![CDATA[	<p>I was just browsing through the patch&#8230;<br />
The following doesn&#8217;t look right, someone may use svg.addEventListener(&#8230;) to handle<br />
the svg load event.</p>
	<p>+  if (aEvent-&gt;message == NS_SVG_LOAD) {<br />
+    if (mAnimationRegistry)<br />
+      mAnimationRegistry-&gt;Start();<br />
+    if (!HasAttr(kNameSpaceID_None, nsSVGAtoms::onload))<br />
+      return NS_OK;<br />
+  }
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
