Make SVG style handling be the same as HTML-CSS (don't inherit styles). This needs to be reworked so that some styles do get inherited

This commit is contained in:
Davide P. Cervone 2012-02-25 17:27:32 -05:00
parent 3a2b03a605
commit c1fe357733
3 changed files with 4 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1023,10 +1023,9 @@
}, },
SVGgetStyles: function () { SVGgetStyles: function () {
var style = this.Get("style"); if (this.style) {
if (style) {
var span = HTML.Element("span"); var span = HTML.Element("span");
span.style.cssText = style; span.style.cssText = this.style;
this.styles = {border:SVG.getBorders(span), padding:SVG.getPadding(span)} this.styles = {border:SVG.getBorders(span), padding:SVG.getPadding(span)}
if (span.style.fontSize) {this.styles.fontSize = span.style.fontSize} if (span.style.fontSize) {this.styles.fontSize = span.style.fontSize}
if (span.style.color) {this.styles.color = span.style.color} if (span.style.color) {this.styles.color = span.style.color}