-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify SVGPropertyOwnerRegistry slightly
https://bugs.webkit.org/show_bug.cgi?id=240839 Reviewed by Yusuke Suzuki. SVGPropertyOwnerRegistry::findAccessor() had to loop through the hash table entries because it wanted the behavior of QualifiedName::matches(), which is different from QualifiedName::operator==. However, we can achieve this by using hash traits, and the appropriate traits already exist in the form of SVGAttributeHashTranslator. * Source/WebCore/svg/SVGElementInlines.h: (WebCore::SVGAttributeHashTranslator::hash): Deleted. (WebCore::SVGAttributeHashTranslator::equal): Deleted. * Source/WebCore/svg/properties/SVGPropertyOwnerRegistry.h: (WebCore::SVGAttributeHashTranslator::hash): (WebCore::SVGAttributeHashTranslator::equal): (WebCore::SVGPropertyOwnerRegistry::attributeNameToAccessorMap): (WebCore::SVGPropertyOwnerRegistry::findAccessor): Canonical link: https://commits.webkit.org/250948@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@294789 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
2 changed files
with
20 additions
and
20 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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