12016-04-22 Frederic Wang <fred.wang@free.fr>
2
3 RenderMathMLOperator refactoring: introduce getBaseGlyph and remove parameter from getDisplayStyleLargeOperator
4 https://bugs.webkit.org/show_bug.cgi?id=156910
5
6 Reviewed by NOBODY (OOPS!).
7
8 No new tests, the behavior is not changed.
9
10 * rendering/mathml/RenderMathMLOperator.cpp:
11 (WebCore::RenderMathMLOperator::italicCorrection): We do not need to pass m_textContent to getDisplayStyleLargeOperator.
12 (WebCore::RenderMathMLOperator::computePreferredLogicalWidths): We use getBaseGlyph and do not pass m_textContent to getDisplayStyleLargeOperator or findStretchyData.
13 (WebCore::RenderMathMLOperator::getBaseGlyph): Introduce a helper function to retrieve the base glyph and do some validity checks.
14 (WebCore::RenderMathMLOperator::getDisplayStyleLargeOperator): We remove the character parameter as it is always m_textContent.
15 We use getBaseGlyph and replace primaryFont with baseGlyph.font.
16 (WebCore::RenderMathMLOperator::findStretchyData): Ditto.
17 (WebCore::RenderMathMLOperator::updateStyle): We do not pass m_textContent to getDisplayStyleLargeOperator or findStretchyData.
18 * rendering/mathml/RenderMathMLOperator.h: Declare getBaseGlyph and remove the parameter from getDisplayStyleLargeOperator and findStretchyData.
19