| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2015 Google Inc. All rights reserved. | 2 * Copyright (C) 2015 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 bool forTextEmphasis() const { return m_emphasisSubstitutionData; } | 63 bool forTextEmphasis() const { return m_emphasisSubstitutionData; } |
| 64 void addEmphasisMark(GlyphBuffer*, float midGlyphOffset) const; | 64 void addEmphasisMark(GlyphBuffer*, float midGlyphOffset) const; |
| 65 | 65 |
| 66 const Font* m_font; | 66 const Font* m_font; |
| 67 const TextRun& m_textRun; | 67 const TextRun& m_textRun; |
| 68 HashSet<const SimpleFontData*>* m_fallbackFonts; | 68 HashSet<const SimpleFontData*>* m_fallbackFonts; |
| 69 FloatRect* m_glyphBoundingBox; | 69 FloatRect* m_glyphBoundingBox; |
| 70 | 70 |
| 71 // TODO(kojii): These are no longer used in HarfBuzzShaper. | 71 // TODO(kojii): These are no longer used in HarfBuzzShaper. |
| 72 float m_expansion; // Pixels to be distributed over the line at word breaks. | 72 float m_expansion; // Pixels to be distributed over the line at word breaks. |
| 73 float | 73 float m_expansionPerOpportunity; // Pixels to be added to each expansion |
| 74 m_expansionPerOpportunity; // Pixels to be added to each expansion opport
unity. | 74 // opportunity. |
| 75 bool m_isAfterExpansion; | 75 bool m_isAfterExpansion; |
| 76 | 76 |
| 77 private: | 77 private: |
| 78 // Emphasis substitution info. If specified, this will be used to replace all
glyphs which | 78 // Emphasis substitution info. If specified, this will be used to replace all |
| 79 // can receive text emphasis with center-aligned emphasis glyphs. | 79 // glyphs which can receive text emphasis with center-aligned emphasis glyphs. |
| 80 const GlyphData* m_emphasisSubstitutionData; | 80 const GlyphData* m_emphasisSubstitutionData; |
| 81 FloatPoint m_emphasisGlyphCenter; | 81 FloatPoint m_emphasisGlyphCenter; |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 } // namespace blink | 84 } // namespace blink |
| 85 | 85 |
| 86 #endif // Shaper_h | 86 #endif // Shaper_h |
| OLD | NEW |