Clean up and apply minor optimizations to StyledElement#63199
Merged
Conversation
Collaborator
|
EWS run on previous version of this PR (hash f96e2ba) Details
|
Collaborator
macOS Safer C++ Build #94651 (f96e2ba)❌ Found 1 failing file with 1 issue. Please address these issues before landing. See WebKit Guidelines for Safer C++ Programming. |
Collaborator
iOS Safer C++ Build #13467 (f96e2ba)❌ Found 1 failing file with 1 issue. Please address these issues before landing. See WebKit Guidelines for Safer C++ Programming. |
f96e2ba to
d05794b
Compare
Collaborator
|
EWS run on current version of this PR (hash d05794b) Details
|
RupinMittal
approved these changes
Apr 21, 2026
https://bugs.webkit.org/show_bug.cgi?id=312855 Reviewed by Anne van Kesteren and Rupin Mittal. - Extract synchronizeStyleAttributeForSelectorInvalidation() to eliminate duplicated style attribute synchronization logic between dirtyStyleAttribute() and invalidateStyleAttribute(). - Remove redundant isSVGElement() guard around dynamicDowncast<SVGElement>, which already performs the same type check. - Avoid unnecessary inlineStyleChanged() in setInlineStyleCustomProperty() when addParsedProperty() reports no changes were made. - Cache inlineStyle() in inlineStyleCSSOMWrapper() to avoid double lookup, and use nullptr instead of 0. * Source/WebCore/dom/StyledElement.cpp: (WebCore::StyledElement::inlineStyleCSSOMWrapper): (WebCore::StyledElement::synchronizeStyleAttributeForSelectorInvalidation): (WebCore::StyledElement::dirtyStyleAttribute): (WebCore::StyledElement::invalidateStyleAttribute): (WebCore::StyledElement::setInlineStyleCustomProperty): * Source/WebCore/dom/StyledElement.h: Canonical link: https://commits.webkit.org/311740@main
d05794b to
353f068
Compare
Collaborator
|
Committed 311740@main (353f068): https://commits.webkit.org/311740@main Reviewed commits have been landed. Closing PR #63199 and removing active labels. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
353f068
d05794b