-
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.
https://bugs.webkit.org/show_bug.cgi?id=269618 rdar://123118619 Reviewed by Ryosuke Niwa. Based on Ryosuke's patch, we clean up Element::parserSetAttributes and avoid repeated sanitizeValue calls. When we are creating HTMLInputElement from parser, we do not need to update type and value in attributeChanged. They are already initialized correctly in parserSetAttributes. * Source/WebCore/dom/Element.cpp: (WebCore::Element::parserSetAttributes): (WebCore::Element::parserDidSetAttributes): Deleted. * Source/WebCore/dom/Element.h: * Source/WebCore/html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::parserInitializeInputType): (WebCore::HTMLInputElement::attributeChanged): (WebCore::HTMLInputElement::initializeInputType): Deleted. (WebCore::HTMLInputElement::parserDidSetAttributes): Deleted. * Source/WebCore/html/HTMLInputElement.h: Canonical link: https://commits.webkit.org/274904@main
- Loading branch information
1 parent
6303dc5
commit bda7fd8
Showing
4 changed files
with
14 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
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