| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 float width() const { return m_width; } | 64 float width() const { return m_width; } |
| 65 const FloatRect& bounds() const { return m_glyphBoundingBox; } | 65 const FloatRect& bounds() const { return m_glyphBoundingBox; } |
| 66 unsigned numCharacters() const { return m_numCharacters; } | 66 unsigned numCharacters() const { return m_numCharacters; } |
| 67 void fallbackFonts(HashSet<const SimpleFontData*>*) const; | 67 void fallbackFonts(HashSet<const SimpleFontData*>*) const; |
| 68 bool rtl() const { return m_direction == RTL; } | 68 bool rtl() const { return m_direction == RTL; } |
| 69 bool hasVerticalOffsets() const { return m_hasVerticalOffsets; } | 69 bool hasVerticalOffsets() const { return m_hasVerticalOffsets; } |
| 70 | 70 |
| 71 // For memory reporting. | 71 // For memory reporting. |
| 72 size_t byteSize() const; | 72 size_t byteSize() const; |
| 73 | 73 |
| 74 int offsetForPosition(float targetX) const; | 74 int offsetForPosition(float targetX, bool includePartialGlyphs) const; |
| 75 | 75 |
| 76 PassRefPtr<ShapeResult> applySpacingToCopy(ShapeResultSpacing&, | 76 PassRefPtr<ShapeResult> applySpacingToCopy(ShapeResultSpacing&, |
| 77 const TextRun&) const; | 77 const TextRun&) const; |
| 78 | 78 |
| 79 protected: | 79 protected: |
| 80 struct RunInfo; | 80 struct RunInfo; |
| 81 #if COMPILER(MSVC) | 81 #if COMPILER(MSVC) |
| 82 friend struct ::WTF::OwnedPtrDeleter<RunInfo>; | 82 friend struct ::WTF::OwnedPtrDeleter<RunInfo>; |
| 83 #endif | 83 #endif |
| 84 | 84 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 110 // Tracks whether any runs contain glyphs with a y-offset != 0. | 110 // Tracks whether any runs contain glyphs with a y-offset != 0. |
| 111 unsigned m_hasVerticalOffsets : 1; | 111 unsigned m_hasVerticalOffsets : 1; |
| 112 | 112 |
| 113 friend class HarfBuzzShaper; | 113 friend class HarfBuzzShaper; |
| 114 friend class ShapeResultBuffer; | 114 friend class ShapeResultBuffer; |
| 115 }; | 115 }; |
| 116 | 116 |
| 117 } // namespace blink | 117 } // namespace blink |
| 118 | 118 |
| 119 #endif // ShapeResult_h | 119 #endif // ShapeResult_h |
| OLD | NEW |