Closed Bug 221531 Opened 22 years ago Closed 22 years ago

clean up selector matching code

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dbaron, Assigned: dbaron)

Details

Attachments

(2 files)

I have a patch with some cleanup in SelectorMatchesTree and SelectorMatches.
Attached patch patch (diff -u)Splinter Review
The changes are: * remove extra |if| around loop, and convert it from |while| to |for|. * remove extra test for |result| * rename |curdata| -> |prevdata| and |newdata| -> |data|. * use |IsContentOfType| instead of |GetTag|
Attachment #132845 - Flags: superreview?(bzbarsky)
Attachment #132845 - Flags: review?(bzbarsky)
Comment on attachment 132845 [details] [diff] [review] patch (diff -uw) >Index: nsCSSStyleSheet.cpp >+ // For the appropriate content (whether parent or previous sibling) >+ // to check next, if we don't already have a RuleProcessorData > // for it, create one. "If we don't already have a RuleProcessorData for the next appropriate content (whether parent or previous sibling), create one." r+sr=bzbarsky with that.
Attachment #132845 - Flags: superreview?(bzbarsky)
Attachment #132845 - Flags: superreview+
Attachment #132845 - Flags: review?(bzbarsky)
Attachment #132845 - Flags: review+
Fix checked in to trunk, 2003-10-13 14:54 -0700.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Seems like this might have pushed up Tp slightly ... is that possible?
I don't see any noticeable change on btek, and I doubt it would have.
Something pushed btek from mostly below 1000ms to mostly above 1000ms and I thought it might have been this patch, but it's so noisy that it's hard to tell.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: