[webkit-changes] [WebKit/WebKit] 461e6c: [WebCore]:Assign the scalar by default to avoid po...

Rose noreply at github.com
Sun May 28 11:40:30 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 461e6c05f16d62178184cb0fd4070aa5148c6465
      https://github.com/WebKit/WebKit/commit/461e6c05f16d62178184cb0fd4070aa5148c6465
  Author: Rose <83477269+AtariDreams at users.noreply.github.com>
  Date:   2023-05-28 (Sun, 28 May 2023)

  Changed paths:
    M Source/WebCore/svg/SVGFEConvolveMatrixElement.cpp

  Log Message:
  -----------
  [WebCore]:Assign the scalar by default to avoid potential function calls
https://bugs.webkit.org/show_bug.cgi?id=257421

Reviewed by Tim Nguyen.

We can avoid calls to functions like targetX and targetY if we assign
the scalar first and then do checking of attributes.

* Source/WebCore/svg/SVGFEConvolveMatrixElement.cpp:
(WebCore::SVGFEConvolveMatrixElement::attributeChanged): Fixed space typo.
(WebCore::SVGFEConvolveMatrixElement::createFilterEffect const): Refactored.

Canonical link: https://commits.webkit.org/264641@main




More information about the webkit-changes mailing list