Chromium Code Reviews| Index: Source/platform/fonts/harfbuzz/HarfBuzzShaper.h |
| diff --git a/Source/platform/fonts/harfbuzz/HarfBuzzShaper.h b/Source/platform/fonts/harfbuzz/HarfBuzzShaper.h |
| index 5996e686f6a9cfb8630d9986e17edcab76866378..a7f2197a4c3cfe37cddbdd128d0006908d902ea7 100644 |
| --- a/Source/platform/fonts/harfbuzz/HarfBuzzShaper.h |
| +++ b/Source/platform/fonts/harfbuzz/HarfBuzzShaper.h |
| @@ -53,7 +53,12 @@ public: |
| NormalizeMirrorChars |
| }; |
| - HarfBuzzShaper(const Font*, const TextRun&); |
| + enum ForTextEmphasisOrNot { |
| + NotForTextEmphasis, |
| + ForTextEmphasis |
| + }; |
| + |
| + HarfBuzzShaper(const Font*, const TextRun&, bool forTextEmphasis = false); |
|
leviw_travelin_and_unemployed
2014/02/13 01:07:56
Don't you want to use the enum you defined above,
|
| void setDrawRange(int from, int to); |
| bool shape(GlyphBuffer* = 0); |
| @@ -133,6 +138,7 @@ private: |
| bool shapeHarfBuzzRuns(); |
| bool fillGlyphBuffer(GlyphBuffer*); |
| void fillGlyphBufferFromHarfBuzzRun(GlyphBuffer*, HarfBuzzRun*, FloatPoint& firstOffsetOfNextRun); |
| + void fillGlyphBufferForTextEmphasis(GlyphBuffer*, HarfBuzzRun* currentRun); |
| void setGlyphPositionsForHarfBuzzRun(HarfBuzzRun*, hb_buffer_t*); |
| void addHarfBuzzRun(unsigned startCharacter, unsigned endCharacter, const SimpleFontData*, UScriptCode); |
| @@ -157,6 +163,8 @@ private: |
| int m_fromIndex; |
| int m_toIndex; |
| + bool m_forTextEmphasis; |
| + |
| float m_totalWidth; |
| friend struct CachedShapingResults; |