Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.h

Issue 2614883007: Change computed style enums to be prefixed with 'k'. (Closed)
Patch Set: Rebase on ToT. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 const TextRun&, 61 const TextRun&,
62 float positionOffset, 62 float positionOffset,
63 unsigned count); 63 unsigned count);
64 ~ShapeResult(); 64 ~ShapeResult();
65 65
66 float width() const { return m_width; } 66 float width() const { return m_width; }
67 const FloatRect& bounds() const { return m_glyphBoundingBox; } 67 const FloatRect& bounds() const { return m_glyphBoundingBox; }
68 unsigned numCharacters() const { return m_numCharacters; } 68 unsigned numCharacters() const { return m_numCharacters; }
69 void fallbackFonts(HashSet<const SimpleFontData*>*) const; 69 void fallbackFonts(HashSet<const SimpleFontData*>*) const;
70 bool rtl() const { 70 bool rtl() const {
71 return static_cast<TextDirection>(m_direction) == TextDirection::Rtl; 71 return static_cast<TextDirection>(m_direction) == TextDirection::kRtl;
72 } 72 }
73 bool hasVerticalOffsets() const { return m_hasVerticalOffsets; } 73 bool hasVerticalOffsets() const { return m_hasVerticalOffsets; }
74 74
75 // For memory reporting. 75 // For memory reporting.
76 size_t byteSize() const; 76 size_t byteSize() const;
77 77
78 int offsetForPosition(float targetX, bool includePartialGlyphs) const; 78 int offsetForPosition(float targetX, bool includePartialGlyphs) const;
79 79
80 PassRefPtr<ShapeResult> applySpacingToCopy(ShapeResultSpacing&, 80 PassRefPtr<ShapeResult> applySpacingToCopy(ShapeResultSpacing&,
81 const TextRun&) const; 81 const TextRun&) const;
(...skipping 30 matching lines...) Expand all
112 // Tracks whether any runs contain glyphs with a y-offset != 0. 112 // Tracks whether any runs contain glyphs with a y-offset != 0.
113 unsigned m_hasVerticalOffsets : 1; 113 unsigned m_hasVerticalOffsets : 1;
114 114
115 friend class HarfBuzzShaper; 115 friend class HarfBuzzShaper;
116 friend class ShapeResultBuffer; 116 friend class ShapeResultBuffer;
117 }; 117 };
118 118
119 } // namespace blink 119 } // namespace blink
120 120
121 #endif // ShapeResult_h 121 #endif // ShapeResult_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698