[webkit-changes] [WebKit/WebKit] e1696e: Move transformationForTextBox() call out of the fr...

Ahmad Saleem noreply at github.com
Fri Jan 13 12:37:50 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e1696eb5587f9a3124b801f52328c8d36eff3077
      https://github.com/WebKit/WebKit/commit/e1696eb5587f9a3124b801f52328c8d36eff3077
  Author: Ahmad Saleem <ahmad.saleem792+github at gmail.com>
  Date:   2023-01-13 (Fri, 13 Jan 2023)

  Changed paths:
    M Source/WebCore/rendering/svg/SVGTextLayoutEngine.cpp

  Log Message:
  -----------
  Move transformationForTextBox() call out of the fragment-loop

Move transformationForTextBox() call out of the fragment-loop
https://bugs.webkit.org/show_bug.cgi?id=250462

Reviewed by Said Abou-Hallawa.

Merge - https://src.chromium.org/viewvc/blink?revision=177517&view=revision

This patch is to refactor code since textBox is invariant, so there
is no need to fetch and check the transform for each fragment and
it is to refactor using modern C++ whole function.

Since this is just refactoring, it does not have any test case.

* Source/WebCore/rendering/svg/SVGTextLayoutEngine.cpp:
(SVGTextLayoutEngine::finalizeTransformMatrices): Refactor to not check transform for each fragment and use modern C++

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




More information about the webkit-changes mailing list