Commit 1f506c43 authored by jbroman@chromium.org's avatar jbroman@chromium.org

Remove SimpleFontData::applyTransforms, which is a no-op.

BUG=383594

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176027 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 0ec5071e
......@@ -167,11 +167,6 @@ public:
bool canRenderCombiningCharacterSequence(const UChar*, size_t) const;
bool applyTransforms(GlyphBufferGlyph*, GlyphBufferAdvance*, size_t, TypesettingFeatures) const
{
return false;
}
PassRefPtr<CustomFontData> customFontData() const { return m_customFontData; }
// Implemented by the platform.
......
......@@ -114,14 +114,6 @@ static inline float applyFontTransforms(GlyphBuffer* glyphBuffer, bool ltr, unsi
for (unsigned i = lastGlyphCount; i < glyphBufferSize; ++i)
widthDifference -= advances[i].width();
if (!ltr)
glyphBuffer->reverse(lastGlyphCount, glyphBufferSize - lastGlyphCount);
fontData->applyTransforms(glyphBuffer->glyphs(lastGlyphCount), advances + lastGlyphCount, glyphBufferSize - lastGlyphCount, typesettingFeatures);
if (!ltr)
glyphBuffer->reverse(lastGlyphCount, glyphBufferSize - lastGlyphCount);
for (size_t i = 0; i < charactersTreatedAsSpace.size(); ++i) {
int spaceOffset = charactersTreatedAsSpace[i].first;
const OriginalAdvancesForCharacterTreatedAsSpace& originalAdvances = charactersTreatedAsSpace[i].second;
......
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