[webkit-changes] [WebKit/WebKit] e2aa0c: Use memcpy in SVGPathByteStreamSource::readType

Chris Dumez noreply at github.com
Thu Aug 31 14:46:59 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e2aa0c20fc47b29231c6e5413347d827c36d4186
      https://github.com/WebKit/WebKit/commit/e2aa0c20fc47b29231c6e5413347d827c36d4186
  Author: Chris Dumez <cdumez at apple.com>
  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




More information about the webkit-changes mailing list