Title: [289410] trunk/Source/WebCore
- Revision
- 289410
- Author
- [email protected]
- Date
- 2022-02-08 11:32:21 -0800 (Tue, 08 Feb 2022)
Log Message
Make HTMLToken::beginStartTag tag an 8 bit character
https://bugs.webkit.org/show_bug.cgi?id=236283
Reviewed by Sam Weinig.
HTMLToken::beginStartTag is only ever called with an ASCII lowercase
letter. It can take an LChar instead of a UChar, and we can avoid
updating m_data8BitCheck.
* html/parser/HTMLToken.h:
(WebCore::HTMLToken::beginStartTag):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (289409 => 289410)
--- trunk/Source/WebCore/ChangeLog 2022-02-08 19:30:28 UTC (rev 289409)
+++ trunk/Source/WebCore/ChangeLog 2022-02-08 19:32:21 UTC (rev 289410)
@@ -1,3 +1,17 @@
+2022-02-08 Cameron McCormack <[email protected]>
+
+ Make HTMLToken::beginStartTag tag an 8 bit character
+ https://bugs.webkit.org/show_bug.cgi?id=236283
+
+ Reviewed by Sam Weinig.
+
+ HTMLToken::beginStartTag is only ever called with an ASCII lowercase
+ letter. It can take an LChar instead of a UChar, and we can avoid
+ updating m_data8BitCheck.
+
+ * html/parser/HTMLToken.h:
+ (WebCore::HTMLToken::beginStartTag):
+
2022-02-08 Ada Chan <[email protected]>
[WebXR] Ensure only one frame update can be requested with the device at any time
Modified: trunk/Source/WebCore/html/parser/HTMLToken.h (289409 => 289410)
--- trunk/Source/WebCore/html/parser/HTMLToken.h 2022-02-08 19:30:28 UTC (rev 289409)
+++ trunk/Source/WebCore/html/parser/HTMLToken.h 2022-02-08 19:32:21 UTC (rev 289410)
@@ -97,7 +97,7 @@
bool selfClosing() const;
const AttributeList& attributes() const;
- void beginStartTag(UChar);
+ void beginStartTag(LChar);
void beginEndTag(LChar);
void beginEndTag(const Vector<LChar, 32>&);
@@ -254,7 +254,7 @@
m_selfClosing = true;
}
-inline void HTMLToken::beginStartTag(UChar character)
+inline void HTMLToken::beginStartTag(LChar character)
{
ASSERT(character);
ASSERT(m_type == Uninitialized);
@@ -267,7 +267,6 @@
#endif
m_data.append(character);
- m_data8BitCheck = character;
}
inline void HTMLToken::beginEndTag(LChar character)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes