Skip to content

Commit

Permalink
Fix typo error in 'SVGTextLayoutEngine' function name and call sites
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=264778

Reviewed by Simon Fraser.

This PR just fix typo detected in the function name and all calls.

* Source/WebCore/rendering/svg/SVGTextLayoutEngine.cpp:
( SVGTextLayoutEngine::updateCharacterPositionIfNeeded):
(SVGTextLayoutEngine::layoutTextOnLineOrPath):
* Source/WebCore/rendering/svg/SVGTextLayoutEngine.h:

Canonical link: https://commits.webkit.org/270687@main
  • Loading branch information
Ahmad-S792 authored and Ahmad Saleem committed Nov 14, 2023
1 parent 7a1c0ae commit 3e36df8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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 @@ -44,7 +44,7 @@ SVGTextLayoutEngine::SVGTextLayoutEngine(Vector<SVGTextLayoutAttributes*>& layou
ASSERT(!m_layoutAttributes.isEmpty());
}

void SVGTextLayoutEngine::updateCharacerPositionIfNeeded(float& x, float& y)
void SVGTextLayoutEngine::updateCharacterPositionIfNeeded(float& x, float& y)
{
if (m_inPathLayout)
return;
Expand Down Expand Up @@ -511,7 +511,7 @@ void SVGTextLayoutEngine::layoutTextOnLineOrPath(SVGInlineTextBox& textBox, Rend
float glyphAdvance = baselineLayout.calculateGlyphAdvanceAndOrientation(m_isVerticalText, visualMetrics, orientationAngle, xOrientationShift, yOrientationShift);

// Assign current text position to x/y values, if needed.
updateCharacerPositionIfNeeded(x, y);
updateCharacterPositionIfNeeded(x, y);

// Apply dx/dy value adjustments to current text position, if needed.
updateRelativePositionAdjustmentsIfNeeded(data.dx, data.dy);
Expand Down
2 changes: 1 addition & 1 deletion Source/WebCore/rendering/svg/SVGTextLayoutEngine.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class SVGTextLayoutEngine {
void finishLayout();

private:
void updateCharacerPositionIfNeeded(float& x, float& y);
void updateCharacterPositionIfNeeded(float& x, float& y);
void updateCurrentTextPosition(float x, float y, float glyphAdvance);
void updateRelativePositionAdjustmentsIfNeeded(float dx, float dy);

Expand Down

0 comments on commit 3e36df8

Please sign in to comment.