| Index: third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp
|
| diff --git a/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp b/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp
|
| index 9dff22c6e15ccaa6fb4f6697df72fe31b8eccf3a..ded066d265b4a8968e4f322e9bcb249ee7ca183a 100644
|
| --- a/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp
|
| +++ b/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp
|
| @@ -677,32 +677,4 @@ PassRefPtr<ShapeResult> HarfBuzzShaper::shapeResult()
|
| return result.release();
|
| }
|
|
|
| -PassRefPtr<ShapeResult> ShapeResult::createForTabulationCharacters(const Font* font,
|
| - const TextRun& textRun, float positionOffset, unsigned count)
|
| -{
|
| - const SimpleFontData* fontData = font->primaryFont();
|
| - std::unique_ptr<ShapeResult::RunInfo> run = wrapUnique(new ShapeResult::RunInfo(fontData,
|
| - // Tab characters are always LTR or RTL, not TTB, even when isVerticalAnyUpright().
|
| - textRun.rtl() ? HB_DIRECTION_RTL : HB_DIRECTION_LTR,
|
| - HB_SCRIPT_COMMON, 0, count, count));
|
| - float position = textRun.xPos() + positionOffset;
|
| - float startPosition = position;
|
| - for (unsigned i = 0; i < count; i++) {
|
| - float advance = font->tabWidth(*fontData, textRun.getTabSize(), position);
|
| - run->m_glyphData[i].characterIndex = i;
|
| - run->setGlyphAndPositions(i, fontData->spaceGlyph(), advance, 0, 0);
|
| - position += advance;
|
| - }
|
| - run->m_width = position - startPosition;
|
| -
|
| - RefPtr<ShapeResult> result = ShapeResult::create(font, count, textRun.direction());
|
| - result->m_width = run->m_width;
|
| - result->m_numGlyphs = count;
|
| - ASSERT(result->m_numGlyphs == count); // no overflow
|
| - result->m_hasVerticalOffsets = fontData->platformData().isVerticalAnyUpright();
|
| - result->m_runs.append(std::move(run));
|
| - return result.release();
|
| -}
|
| -
|
| -
|
| } // namespace blink
|
|
|