Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e2aa0c20fc47b29231c6e5413347d827c36d4186
https://github.com/WebKit/WebKit/commit/e2aa0c20fc47b29231c6e5413347d827c36d4186
Author: Chris Dumez <[email protected]>
Date: 2023-08-31 (Thu, 31 Aug 2023)
Changed paths:
M Source/WebCore/svg/SVGPathByteStream.h
M Source/WebCore/svg/SVGPathByteStreamBuilder.cpp
M Source/WebCore/svg/SVGPathByteStreamBuilder.h
M Source/WebCore/svg/SVGPathByteStreamSource.h
Log Message:
-----------
Use memcpy in SVGPathByteStreamSource::readType
https://bugs.webkit.org/show_bug.cgi?id=250676
rdar://104552389
Reviewed by Ryosuke Niwa.
Use memcpy in SVGPathByteStreamSource::readType and simplify the
SVGPathByteStreamBuilder::writeType() logic.
* Source/WebCore/svg/SVGPathByteStream.h:
(WebCore::SVGPathByteStream::append):
(): Deleted.
* Source/WebCore/svg/SVGPathByteStreamBuilder.cpp:
(WebCore::SVGPathByteStreamBuilder::moveTo):
(WebCore::SVGPathByteStreamBuilder::lineTo):
(WebCore::SVGPathByteStreamBuilder::lineToHorizontal):
(WebCore::SVGPathByteStreamBuilder::lineToVertical):
(WebCore::SVGPathByteStreamBuilder::curveToCubic):
(WebCore::SVGPathByteStreamBuilder::curveToCubicSmooth):
(WebCore::SVGPathByteStreamBuilder::curveToQuadratic):
(WebCore::SVGPathByteStreamBuilder::curveToQuadraticSmooth):
(WebCore::SVGPathByteStreamBuilder::arcTo):
(WebCore::SVGPathByteStreamBuilder::closePath):
* Source/WebCore/svg/SVGPathByteStreamBuilder.h:
* Source/WebCore/svg/SVGPathByteStreamSource.h:
Canonical link: https://commits.webkit.org/267523@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes