Skip to content

Commit

Permalink
Fix typo 'traget' in SVGTextLayoutEngine::beginTextPathLayout
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=267797

Reviewed by Simon Fraser.

This patch is to just fix typo error of 'traget' instead of 'target' in SVGTextLayoutEngine::beginTextPathLayout.

* Source/WebCore/rendering/svg/SVGTextLayoutEngine.cpp:
(SVGTextLayoutEngine::beginTextPathLayout):

Canonical link: https://commits.webkit.org/273250@main
  • Loading branch information
Ahmad-S792 authored and Ahmad Saleem committed Jan 20, 2024
1 parent eb27bff commit 54ef5b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/WebCore/rendering/svg/SVGTextLayoutEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ void SVGTextLayoutEngine::beginTextPathLayout(RenderSVGTextPath& textPath, SVGTe
m_textPathStartOffset = startOffset.valueAsPercentage() * m_textPathLength;
else {
m_textPathStartOffset = startOffset.valueInSpecifiedUnits();
if (auto* tragetElement = textPath.targetElement()) {
if (auto* targetElement = textPath.targetElement()) {
// FIXME: A value of zero is valid. Need to differentiate this case from being unspecified.
if (float pathLength = tragetElement->pathLength())
if (float pathLength = targetElement->pathLength())
m_textPathStartOffset *= m_textPathLength / pathLength;
}
}
Expand Down

0 comments on commit 54ef5b2

Please sign in to comment.