Closed Bug 70995 Opened 24 years ago Closed 24 years ago

static copy of a parsed selectors unused in StyleRule

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: glazou, Assigned: glazou)

References

Details

Attachments

(1 file)

Implementing new selectors, I saw yesterday that we still (a) build the string image of a parsed selector (b) still keep it in nsCSSStyleRule.mSourceString !! This causes many useless AppendToString and consumes memory. Patch for bug 52381 introduced dynamic building of nsCSSSelector::ToString... Proposing tomorrow morning an optimization patch
Accepting assignment Related bugs : bug 51944, bug 53448, bug 52381
Status: NEW → ASSIGNED
Patch proposed above. Cc:ing David Baron. need r= ?
r=hewitt
sr=attinasi - very nice savings, Daniel. Why didn't I see that???
checked in :-)
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
This problem has also been discussed in bug 42953 and is not limited to selectors.
Blocks: 71668
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: