Commit e666e07f authored by eae@chromium.org's avatar eae@chromium.org

ASSERT that characterIndexForXPosition has a GlyphToCharacter vector

ASSERT that the m_glyphToCharacterIndexes vector is available in the
characterIndexForXPosition method.

BUG=423649
R=jln@chromium.org

Review URL: https://codereview.chromium.org/666613002

git-svn-id: svn://svn.chromium.org/blink/trunk@183930 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 310e67dd
......@@ -317,6 +317,7 @@ int HarfBuzzShaper::HarfBuzzRun::characterIndexForXPosition(float targetX)
float HarfBuzzShaper::HarfBuzzRun::xPositionForOffset(unsigned offset)
{
ASSERT(offset < m_numCharacters);
ASSERT(hasGlyphToCharacterIndexes());
unsigned glyphIndex = 0;
float position = 0;
if (rtl()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment