Skip to content

Bug 2065660 - Remove redundant atomization in attribute selector parsing. r=#style - #347

Closed
emilio wants to merge 1 commit into
mozilla-firefox:autolandfrom
emilio:attr-name-atomize
Closed

Bug 2065660 - Remove redundant atomization in attribute selector parsing. r=#style#347
emilio wants to merge 1 commit into
mozilla-firefox:autolandfrom
emilio:attr-name-atomize

Conversation

@emilio

@emilio emilio commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

If the name is lowercase there's no need to atomize twice.

…ing. r=#style

If the name is lowercase there's no need to atomize twice.
@github-actions

Copy link
Copy Markdown
Contributor

View this pull request in Lando to land it once approved.

@emilio
emilio requested a review from a team August 21, 2026 20:59
@@ -3165,7 +3165,7 @@ where

let attribute_flags = parse_attribute_flags(input)?;
let value = value.as_ref().into();
let local_name_lower;
let local_name_lower: Impl::LocalName;
let local_name_is_ascii_lowercase;
let case_sensitivity;
{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: tuple assignment (Weak preference, maybe Impl::LocalName to avoid type deduction issues)?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, but it gets a bit weird because some of the temporaries escape and some don't...

lando-worker Bot pushed a commit that referenced this pull request Aug 22, 2026
…ing. r=dshin

If the name is lowercase there's no need to atomize twice.

Pull request: #347
@lando-worker

lando-worker Bot commented Aug 22, 2026

Copy link
Copy Markdown

Pull request closed by commit e6cdc04

@lando-worker lando-worker Bot closed this Aug 22, 2026
github-actions Bot pushed a commit to DioxusLabs/stylo that referenced this pull request Aug 23, 2026
…ing. r=dshin

If the name is lowercase there's no need to atomize twice.

Pull request: mozilla-firefox/firefox#347
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants