Closed Bug 249172 Opened 21 years ago Closed 21 years ago

DashMatchCompare should take a comparator parameter

Categories

(Core :: CSS Parsing and Computation, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla1.8alpha2

People

(Reporter: dbaron, Assigned: dbaron)

Details

Attachments

(1 file, 1 obsolete file)

Using comparators more often in DashMatchCompare and AttrMatchesValue makes the code simpler.
Attached patch patch (obsolete) — Splinter Review
I've had this in my tree for ages.
Status: NEW → ASSIGNED
Priority: -- → P3
Target Milestone: --- → mozilla1.8alpha2
Attachment #151994 - Flags: superreview?(bryner)
Attachment #151994 - Flags: review?(bryner)
Comment on attachment 151994 [details] [diff] [review] patch I've had it in my tree for ages, but now that I look at it I did part of it backwards.
Attachment #151994 - Flags: superreview?(bryner)
Attachment #151994 - Flags: review?(bryner)
Attached patch patchSplinter Review
Don't make language stuff case sensitive this time.
Attachment #151994 - Attachment is obsolete: true
Attachment #151995 - Flags: superreview?(bryner)
Attachment #151995 - Flags: review?(bryner)
Attachment #151995 - Flags: superreview?(bryner)
Attachment #151995 - Flags: superreview+
Attachment #151995 - Flags: review?(bryner)
Attachment #151995 - Flags: review+
Fix checked in to trunk, 2004-07-06 16:29 -0700. (There was one additional chunk at the beginning of the patch that I forgot to untangle from another patch, but it was pretty simple.)
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Codesize numbers from luna: libgklayout.so Total: -360 (+664/-1024) Code: -361 (+0/+0) Data: +1 (+664/-1024) -360 (+664/-1024) text (DATA) -360 (+664/-1024) UNDEF:libgklayout.so:text +412 ValueIncludes(nsString const&, nsString const&, nsStringComparator const&) +204 DashMatchCompare(nsAString const&, nsAString const&, nsStringComparator const&) +47 SelectorMatches(RuleProcessorData&, nsCSSSelector*, int, nsIAtom*, signed char) +1 .nosyms.text -177 AttrMatchesValue(nsAttrSelector const*, nsString const&) -234 DashMatchCompare(nsAString const&, nsAString const&, int) -613 ValueIncludes(nsString const&, nsString const&, int)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: