Closed Bug 395155 Opened 13 years ago Closed 13 years ago

Changing CSS text inside <svg:style> has no effect

Categories

(Core :: SVG, defect, minor)

defect
Not set
minor

Tracking

()

RESOLVED FIXED

People

(Reporter: jruderman, Assigned: longsonr)

References

(Blocks 1 open bug)

Details

(Keywords: testcase)

Attachments

(2 files)

Attached image testcase 2
Changing the CSS text inside <svg:style> fails to update the document's rendering.
c.f. bug 367612 and bug 383137
Assignee: nobody → longsonr
Attached patch patchSplinter Review
Attachment #279890 - Flags: review?(tor)
OS: Mac OS X → All
Hardware: PC → All
Attachment #279890 - Flags: review?(tor) → review+
Attachment #279890 - Flags: superreview?(roc)
+  if (nsContentUtils::IsInSameAnonymousTree(this, aContent)) {
+    UpdateStyleSheetInternal(nsnull);
+  }

This is just an optimization, right? Why do you think it's worth having?
It comes from bug 383137. I don't know if you can do the same in SVG but it seemed  safer just to do the same thing too just in case.
Attachment #279890 - Flags: superreview?(roc) → superreview+
Ugh, that is not M8 approval, just general approval, so don't check in until the freeze is over.
checked in.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.