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

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

Issue 2532253002: Revert of 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> uniqueSystemFontForHintList( 54 PassRefPtr<SimpleFontData> uniqueSystemFontForHint(UChar32 hint);
55 const Vector<UChar32>& hintList);
56 55
57 const FontDescription& m_fontDescription; 56 const FontDescription& m_fontDescription;
58 RefPtr<FontFallbackList> m_fontFallbackList; 57 RefPtr<FontFallbackList> m_fontFallbackList;
59 int m_currentFontDataIndex; 58 int m_currentFontDataIndex;
60 unsigned m_segmentedFaceIndex; 59 unsigned m_segmentedFaceIndex;
61 60
62 enum FallbackStage { 61 enum FallbackStage {
63 FallbackPriorityFonts, 62 FallbackPriorityFonts,
64 FontGroupFonts, 63 FontGroupFonts,
65 SegmentedFace, 64 SegmentedFace,
(...skipping 10 matching lines...) Expand all
76 // as returning a duplicate value causes a shaping run that won't return any 75 // as returning a duplicate value causes a shaping run that won't return any
77 // results. 76 // results.
78 HashSet<uint32_t> m_uniqueFontDataForRangeSetsReturned; 77 HashSet<uint32_t> m_uniqueFontDataForRangeSetsReturned;
79 Vector<RefPtr<FontDataForRangeSet>> m_trackedLoadingRangeSets; 78 Vector<RefPtr<FontDataForRangeSet>> m_trackedLoadingRangeSets;
80 FontFallbackPriority m_fontFallbackPriority; 79 FontFallbackPriority m_fontFallbackPriority;
81 }; 80 };
82 81
83 } // namespace blink 82 } // namespace blink
84 83
85 #endif 84 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698