SMIL:CSS Animation: Difference between revisions

Line 16: Line 16:


=== Implementing <code>getOverrideStyle()</code> ===
=== Implementing <code>getOverrideStyle()</code> ===
Note that Gecko doesn't currently implement <code>getOverrideStyle()</code>.  Here's a basic outline of how we'd implement this:
Note that Gecko doesn't currently implement <code>getOverrideStyle()</code>.  Here's a basic outline of how we could implement this:
*# Add a new <code>nsICSSStyleRule</code> member variable on each <code>nsStyledElement</code>, which is used as a backing store for the override style.
# Add a new <code>nsICSSStyleRule</code> member variable on each <code>nsStyledElement</code>, which is used as a backing store for the override style.
*# Internally, this should mostly behave like SVG's content style rule.  (See  mContentStyleRule in [http://mxr.mozilla.org/seamonkey/source/content/svg/content/src/nsSVGElement.h nsSVGElement.h] and [http://mxr.mozilla.org/seamonkey/source/content/svg/content/src/nsSVGElement.cpp nsSVGElement.cpp] )
# Internally, this should mostly behave like SVG's content style rule.  (See  mContentStyleRule in [http://mxr.mozilla.org/seamonkey/source/content/svg/content/src/nsSVGElement.h nsSVGElement.h] and [http://mxr.mozilla.org/seamonkey/source/content/svg/content/src/nsSVGElement.cpp nsSVGElement.cpp] )
Confirmed users
490

edits