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

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

Issue 2539733002: Improve fallback for Burmese with leading punctuation + spacing mark (Closed)
Patch Set: Created 4 years 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef FontFallbackIterator_h 5 #ifndef FontFallbackIterator_h
6 #define FontFallbackIterator_h 6 #define FontFallbackIterator_h
7 7
8 #include "platform/fonts/FontDataForRangeSet.h" 8 #include "platform/fonts/FontDataForRangeSet.h"
9 #include "platform/fonts/FontFallbackPriority.h" 9 #include "platform/fonts/FontFallbackPriority.h"
10 #include "wtf/HashMap.h" 10 #include "wtf/HashMap.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 bool rangeSetContributesForHint(const Vector<UChar32> hintList, 44 bool rangeSetContributesForHint(const Vector<UChar32> hintList,
45 const FontDataForRangeSet*); 45 const FontDataForRangeSet*);
46 bool alreadyLoadingRangeForHintChar(UChar32 hintChar); 46 bool alreadyLoadingRangeForHintChar(UChar32 hintChar);
47 void willUseRange(const AtomicString& family, const FontDataForRangeSet&); 47 void willUseRange(const AtomicString& family, const FontDataForRangeSet&);
48 48
49 PassRefPtr<FontDataForRangeSet> uniqueOrNext( 49 PassRefPtr<FontDataForRangeSet> uniqueOrNext(
50 PassRefPtr<FontDataForRangeSet> candidate, 50 PassRefPtr<FontDataForRangeSet> candidate,
51 const Vector<UChar32>& hintList); 51 const Vector<UChar32>& hintList);
52 52
53 PassRefPtr<SimpleFontData> fallbackPriorityFont(UChar32 hint); 53 PassRefPtr<SimpleFontData> fallbackPriorityFont(UChar32 hint);
54 PassRefPtr<SimpleFontData> uniqueSystemFontForHint(UChar32 hint); 54 PassRefPtr<SimpleFontData> uniqueSystemFontForHintList(
55 const Vector<UChar32>& hintList);
55 56
56 const FontDescription& m_fontDescription; 57 const FontDescription& m_fontDescription;
57 RefPtr<FontFallbackList> m_fontFallbackList; 58 RefPtr<FontFallbackList> m_fontFallbackList;
58 int m_currentFontDataIndex; 59 int m_currentFontDataIndex;
59 unsigned m_segmentedFaceIndex; 60 unsigned m_segmentedFaceIndex;
60 61
61 enum FallbackStage { 62 enum FallbackStage {
62 FallbackPriorityFonts, 63 FallbackPriorityFonts,
63 FontGroupFonts, 64 FontGroupFonts,
64 SegmentedFace, 65 SegmentedFace,
(...skipping 10 matching lines...) Expand all
75 // as returning a duplicate value causes a shaping run that won't return any 76 // as returning a duplicate value causes a shaping run that won't return any
76 // results. 77 // results.
77 HashSet<uint32_t> m_uniqueFontDataForRangeSetsReturned; 78 HashSet<uint32_t> m_uniqueFontDataForRangeSetsReturned;
78 Vector<RefPtr<FontDataForRangeSet>> m_trackedLoadingRangeSets; 79 Vector<RefPtr<FontDataForRangeSet>> m_trackedLoadingRangeSets;
79 FontFallbackPriority m_fontFallbackPriority; 80 FontFallbackPriority m_fontFallbackPriority;
80 }; 81 };
81 82
82 } // namespace blink 83 } // namespace blink
83 84
84 #endif 85 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698