Closed Bug 108321 Opened 23 years ago Closed 23 years ago

~30% of HTMLContentSink::AddAttributes() spent in the component manager.

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jst, Assigned: jst)

Details

Attachments

(1 file)

For every HTML element that has attributes we use the component manager to
create the nsHTMLAttributes object that holds the attributes in stead of just
simply calling NS_NewHTMLAttributes(), duh!

Patch coming up that fixes the performance problems and cleans up
nsHTMLStyleSheet.cpp quite a bit.
Waterson, dp, reviews?
PRInt32 nameSpace;
styledContent->GetNameSpaceID(nameSpace);
if (kNameSpaceID_HTML == nameSpace) {

Change the above to IsContentOfType.  

sr=hyatt
Comment on attachment 56378 [details] [diff] [review]
Don't use the component manager to create the attributes holder, and clean things up a bit...

r=dbaron
Attachment #56378 - Flags: review+
Fix checked in.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Component: DOM: HTML → DOM: Core & HTML
QA Contact: stummala → general
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: