Closed Bug 287389 Opened 20 years ago Closed 20 years ago

SVG should not munge ua.css at build time

Categories

(Core :: SVG, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: bzbarsky, Assigned: tor)

References

Details

Attachments

(1 file, 1 obsolete file)

Right now, if SVG is enabled we end up munging ua.css as we build. This causes the issues mentioned in bug 266930, at least. Worse, it means that svg.css is loaded at all times, which means it participates in style resolution for all pages. I'm not so convinced we want the performance hit on HTML pages just from turning on SVG at build time. What SVG _should_ be doing is the same thing as what MathML does -- dynamically adding the SVG sheet to the "catalog sheets" as needed....
Attached patch switch to catalog style sheet (obsolete) (deleted) — Splinter Review
Attachment #178492 - Flags: review?(bzbarsky)
Comment on attachment 178492 [details] [diff] [review] switch to catalog style sheet >Index: content/base/src/nsDocument.cpp >+nsDocument::EnsureCatalogStyleSheet(const char *aStyleSheetURI) >+ if (cssLoader && NS_SUCCEEDED(cssLoader->GetEnabled(&enabled)) && enabled) { ... >+ } I think you want to close out this if _much_ later. As things stand, if cssLoader is null or disabled, you'll load the sheet...
Attachment #178492 - Flags: review?(bzbarsky) → review-
Attached patch fix nesting (deleted) — Splinter Review
Assignee: general → tor
Attachment #178492 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #178541 - Flags: review?(bzbarsky)
Comment on attachment 178541 [details] [diff] [review] fix nesting r+sr=bzbarsky
Attachment #178541 - Flags: superreview+
Attachment #178541 - Flags: review?(bzbarsky)
Attachment #178541 - Flags: review+
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Shouldn't you cvs remove layout/svg/base/src/install-svg-css.pl as well? (sr=dbaron on that if you want it)
install-svg-css.pl removed.
shouldn't nsIDocument get a new IID?
Erm..... yes, it should. tor, could you please rev the iid?
Updated iid.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: