Closed Bug 1815558 Opened 1 year ago Closed 1 year ago

Tweak nsAttrValue::Equals.

Categories

(Core :: Layout, defect)

defect

Tracking

()

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

No description provided.

To avoid an unconditional string copy when comparing case-insensitively
(by using nsDependentAtomString).

Since the string path is not much different than the generic code-path,
just use that elsewhere.

This shows up in selector matching.

Not sure if you think this is worth it, it might be in some cases where
we have pre-atomized stuff in the container.

Depends on D169142

I saw this in the nightly profile. This makes us go into the string
which in most cases is not necessary because the lengths are different.

Depends on D169143

Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4c044a18073a
Tweak nsAttrValue::Equals(nsAtom*). r=smaug
https://hg.mozilla.org/integration/autoland/rev/27d1755f42e0
Clean up some MiscContainer string/atom usage, and optimize atom comparison on MiscContainer. r=smaug
https://hg.mozilla.org/integration/autoland/rev/000dbf4a2b28
Downgrade nsDependentString assert. r=smaug

Backed out changeset 27d1755f42e0 for causing multiple failures.

Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7b18732bf0ec
Clean up some MiscContainer string/atom usage, and optimize atom comparison on MiscContainer. r=smaug
Flags: needinfo?(emilio)
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: