[webkit-changes] [WebKit/WebKit] a740a0: Simplify HTMLFastPathParser::scanEscapedAttributeV...
Chris Dumez
noreply at github.com
Mon Apr 3 14:58:43 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a740a0c0803f125f2fef95636eca69dc953108b5
https://github.com/WebKit/WebKit/commit/a740a0c0803f125f2fef95636eca69dc953108b5
Author: Chris Dumez <cdumez at apple.com>
Date: 2023-04-03 (Mon, 03 Apr 2023)
Changed paths:
M Source/WebCore/html/parser/HTMLDocumentParserFastPath.cpp
Log Message:
-----------
Simplify HTMLFastPathParser::scanEscapedAttributeValue()
https://bugs.webkit.org/show_bug.cgi?id=254929
Reviewed by Ryosuke Niwa.
Simplify HTMLFastPathParser::scanEscapedAttributeValue():
- Do an early return to avoid nesting
- Drop `result` & `start` variables as they were initialized but never used
- Merge 2 if conditions now that they're one after the other
* Source/WebCore/html/parser/HTMLDocumentParserFastPath.cpp:
(WebCore::HTMLFastPathParser::scanEscapedAttributeValue):
Canonical link: https://commits.webkit.org/262531@main
More information about the webkit-changes
mailing list