| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 HashMap<FontCacheKey, | 89 HashMap<FontCacheKey, |
| 90 RefPtr<SegmentedFontData>, | 90 RefPtr<SegmentedFontData>, |
| 91 FontCacheKeyHash, | 91 FontCacheKeyHash, |
| 92 FontCacheKeyTraits> | 92 FontCacheKeyTraits> |
| 93 font_data_table_; | 93 font_data_table_; |
| 94 // All non-CSS-connected FontFaces are stored after the CSS-connected ones. | 94 // All non-CSS-connected FontFaces are stored after the CSS-connected ones. |
| 95 FontFaceList font_faces_; | 95 FontFaceList font_faces_; |
| 96 FontFaceList::iterator first_non_css_connected_face_; | 96 FontFaceList::iterator first_non_css_connected_face_; |
| 97 | 97 |
| 98 // Approximate number of characters styled with this CSSSegmentedFontFace. | 98 // Approximate number of characters styled with this CSSSegmentedFontFace. |
| 99 // LayoutText::styleDidChange() increments this on the first | 99 // LayoutText::StyleDidChange() increments this on the first |
| 100 // CSSSegmentedFontFace in the style's font family list, so this is not | 100 // CSSSegmentedFontFace in the style's font family list, so this is not |
| 101 // counted if this font is used as a fallback font. Also, this may be double | 101 // counted if this font is used as a fallback font. Also, this may be double |
| 102 // counted by style recalcs. | 102 // counted by style recalcs. |
| 103 // TODO(ksakamoto): Revisit the necessity of this. crbug.com/613500 | 103 // TODO(ksakamoto): Revisit the necessity of this. crbug.com/613500 |
| 104 size_t approximate_character_count_; | 104 size_t approximate_character_count_; |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 } // namespace blink | 107 } // namespace blink |
| 108 | 108 |
| 109 #endif // CSSSegmentedFontFace_h | 109 #endif // CSSSegmentedFontFace_h |
| OLD | NEW |