Closed Bug 186943 Opened 22 years ago Closed 17 years ago

the css-loader shouldn't deal with parsers

Categories

(Core :: DOM: CSS Object Model, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla1.5alpha

People

(Reporter: sicking, Assigned: bzbarsky)

References

Details

The css-loader currently has two callback mechanisms for when a stylesheet is
loaded; it unblocks an nsIParser and it notifies an nsICSSLoaderObserver. This
seems unneccesary.

A better way might be to only have the nsICSSLoaderObserver-notification. The
contentsink can then implement this interface and unblocks the parser. This
seems like a cleaner separation.

I'm planning on doing some work for XSLT that should make this easier, i'll post
the bugnumber for that work here once i have a bug.
I'd rather just fix bug 84582
Depends on: 84582
of course that would be even nicer :)

note to self: if we do this one before that we should also change
NS_ERROR_HTMLPARSER_BLOCK to something like NS_ERROR_CSS_LOAD_NOT_FINISHED, or
an outparam
i'm using bug 186835 for the XSLT changes that partly paves the way for fixing
this bug.
OS: Windows 98 → All
Priority: -- → P3
Hardware: PC → All
Target Milestone: --- → mozilla1.5alpha
Depends on: 186835
Fixed by checkin for bug 84582.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.