<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: SMIL work: performance and integration</title>
	<atom:link href="http://brian.sol1.net/svg/2005/10/16/smil-work-performance-and-integration/feed/" rel="self" type="application/rss+xml" />
	<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>
	<lastBuildDate>Wed, 25 Mar 2009 10:41:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Brian</title>
		<link>http://brian.sol1.net/svg/2005/10/16/smil-work-performance-and-integration/comment-page-1/#comment-15</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Mon, 17 Oct 2005 08:15:43 +0000</pubDate>
		<guid isPermaLink="false">http://brian.sol1.net/svg/?p=12#comment-15</guid>
		<description>No, I&#039;m afraid not. There&#039;s still a long way to go before declarative animation is ready. Hopefully we&#039;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-page-1/#comment-14</link>
		<dc:creator>Ian</dc:creator>
		<pubDate>Mon, 17 Oct 2005 08:00:10 +0000</pubDate>
		<guid isPermaLink="false">http://brian.sol1.net/svg/?p=12#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-page-1/#comment-13</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Sun, 16 Oct 2005 21:33:33 +0000</pubDate>
		<guid isPermaLink="false">http://brian.sol1.net/svg/?p=12#comment-13</guid>
		<description>Yes you&#039;re right. This part definitely needs more thought. Relying on events also means that SVG documents added entirely by script won&#039;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 (&#039;onload should respect externalResourcesRequired&#039;).

https://bugzilla.mozilla.org/show_bug.cgi?id=277955

But now that you&#039;ve raised it, I&#039;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-page-1/#comment-11</link>
		<dc:creator>smaug</dc:creator>
		<pubDate>Sun, 16 Oct 2005 11:25:44 +0000</pubDate>
		<guid isPermaLink="false">http://brian.sol1.net/svg/?p=12#comment-11</guid>
		<description>I was just browsing through the patch...
The following doesn&#039;t look right, someone may use svg.addEventListener(...) to handle
the svg load event.

+  if (aEvent-&gt;message == NS_SVG_LOAD) {
+    if (mAnimationRegistry)
+      mAnimationRegistry-&gt;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>
