Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 28e457f8a85d144b7cbb42082ef6ffe492d9fb67 https://github.com/WebKit/WebKit/commit/28e457f8a85d144b7cbb42082ef6ffe492d9fb67 Author: Ryosuke Niwa <rn...@webkit.org> Date: 2022-09-24 (Sat, 24 Sep 2022)
Changed paths: M Source/WebCore/dom/Element.cpp M Source/WebCore/editing/FormatBlockCommand.cpp M Source/WebCore/editing/RemoveFormatCommand.cpp M Source/WebCore/editing/ReplaceSelectionCommand.cpp M Source/WebCore/html/HTMLObjectElement.cpp M Source/WebCore/style/StyleAdjuster.cpp M Source/WebCore/svg/SVGElement.cpp M Source/WebCore/svg/SVGFilterElement.cpp M Source/WebCore/svg/SVGUseElement.cpp Log Message: ----------- Use ElementNames switch statement instead of HashSet lookup in more places https://bugs.webkit.org/show_bug.cgi?id=245563 Reviewed by Yusuke Suzuki. Use switch statement of ElementNames instead of HashSet of QualifiedName or AtomString. * Source/WebCore/dom/Element.cpp: (WebCore::canAttachAuthorShadowRoot): * Source/WebCore/editing/FormatBlockCommand.cpp: (WebCore::isElementForFormatBlock): * Source/WebCore/editing/RemoveFormatCommand.cpp: (WebCore::isElementForRemoveFormatCommand): * Source/WebCore/editing/ReplaceSelectionCommand.cpp: (WebCore::isProhibitedParagraphChild): (WebCore::ReplaceSelectionCommand::makeInsertedContentRoundTrippableWithHTMLTreeBuilder): * Source/WebCore/style/StyleAdjuster.cpp: (WebCore::Style::hasEffectiveDisplayNoneForDisplayContents): * Source/WebCore/svg/SVGElement.cpp: (WebCore::createSVGLayerAwareElementSet): Deleted. (WebCore::isSVGLayerAwareElement): (WebCore::SVGElement::childShouldCreateRenderer const): * Source/WebCore/svg/SVGFilterElement.cpp: (WebCore::SVGFilterElement::childShouldCreateRenderer const): * Source/WebCore/svg/SVGUseElement.cpp: (WebCore::createAllowedElementSet): Deleted. (WebCore::isDisallowedElement): Canonical link: https://commits.webkit.org/254832@main _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes