[webkit-changes] [WebKit/WebKit] 75b882: Add cache for SVGPathElement "d" attribute parsing
Chris Dumez
noreply at github.com
Mon Oct 16 12:15:24 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 75b882901e3326fc37804fbf00641700acc18df7
https://github.com/WebKit/WebKit/commit/75b882901e3326fc37804fbf00641700acc18df7
Author: Chris Dumez <cdumez at apple.com>
Date: 2023-10-16 (Mon, 16 Oct 2023)
Changed paths:
M Source/WebCore/page/MemoryRelease.cpp
M Source/WebCore/svg/SVGPathByteStream.h
M Source/WebCore/svg/SVGPathElement.cpp
M Source/WebCore/svg/SVGPathElement.h
M Source/WebCore/svg/SVGPathSegList.h
Log Message:
-----------
Add cache for SVGPathElement "d" attribute parsing
https://bugs.webkit.org/show_bug.cgi?id=263195
rdar://110970184
Reviewed by Ryosuke Niwa.
Add cache for SVGPathElement "d" attribute parsing to avoid spending CPU time
re-parsing the same "d" attribute values.
* Source/WebCore/page/MemoryRelease.cpp:
(WebCore::releaseNoncriticalMemory):
* Source/WebCore/svg/SVGPathByteStream.h:
(WebCore::SVGPathByteStream::setData):
* Source/WebCore/svg/SVGPathElement.cpp:
(WebCore::pathSegListCache):
(WebCore::SVGPathElement::attributeChanged):
(WebCore::SVGPathElement::clearCache):
* Source/WebCore/svg/SVGPathElement.h:
* Source/WebCore/svg/SVGPathSegList.h:
Canonical link: https://commits.webkit.org/269372@main
More information about the webkit-changes
mailing list