[webkit-changes] [WebKit/WebKit] af16a5: Free up a bit in Node::TypeFlag
Ryosuke Niwa
noreply at github.com
Tue Jan 2 22:58:33 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: af16a58b8d6a6124978cdfa600cd52cf4d16639f
https://github.com/WebKit/WebKit/commit/af16a58b8d6a6124978cdfa600cd52cf4d16639f
Author: Ryosuke Niwa <rniwa at webkit.org>
Date: 2024-01-02 (Tue, 02 Jan 2024)
Changed paths:
M Source/WebCore/dom/DocumentFragment.cpp
M Source/WebCore/dom/Node.h
M Source/WebCore/dom/Text.cpp
Log Message:
-----------
Free up a bit in Node::TypeFlag
https://bugs.webkit.org/show_bug.cgi?id=267015
Reviewed by Tim Nguyen.
This PR frees up 1 bit in Node::TypeFlag by consolidating TypeFlag::IsEditingText and
TypeFlag::IsDocumentFragmentForInnerOuterHTML into a single flag: TypeFlag::IsSpecialInternalNode.
* Source/WebCore/dom/DocumentFragment.cpp:
(WebCore::DocumentFragment::createForInnerOuterHTML):
* Source/WebCore/dom/Node.h:
(WebCore::Node::isEditingText const):
(WebCore::Node::isDocumentFragmentForInnerOuterHTML const):
* Source/WebCore/dom/Text.cpp:
(WebCore::Text::createEditingText):
Canonical link: https://commits.webkit.org/272597@main
More information about the webkit-changes
mailing list