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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSSegmentedFontFace.h

Issue 1806653002: Shape unicode-range: font faces in only one iteration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update UnicodeRangeSetTests to RefPtrtr, rm copy constructor and test Created 4 years, 9 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) 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 void addFontFace(PassRefPtrWillBeRawPtr<FontFace>, bool cssConnected); 63 void addFontFace(PassRefPtrWillBeRawPtr<FontFace>, bool cssConnected);
64 void removeFontFace(PassRefPtrWillBeRawPtr<FontFace>); 64 void removeFontFace(PassRefPtrWillBeRawPtr<FontFace>);
65 bool isEmpty() const { return m_fontFaces.isEmpty(); } 65 bool isEmpty() const { return m_fontFaces.isEmpty(); }
66 66
67 PassRefPtr<FontData> getFontData(const FontDescription&); 67 PassRefPtr<FontData> getFontData(const FontDescription&);
68 68
69 bool checkFont(const String&) const; 69 bool checkFont(const String&) const;
70 void match(const String&, WillBeHeapVector<RefPtrWillBeMember<FontFace>>&) c onst; 70 void match(const String&, WillBeHeapVector<RefPtrWillBeMember<FontFace>>&) c onst;
71 void willUseFontData(const FontDescription&, UChar32); 71 void willUseFontData(const FontDescription&, UChar32);
72 void willUseRange(const FontDescription&, const FontDataRange&); 72 void willUseRange(const FontDescription&, const blink::FontDataForRangeSet&) ;
73 73
74 DECLARE_TRACE(); 74 DECLARE_TRACE();
75 75
76 private: 76 private:
77 CSSSegmentedFontFace(CSSFontSelector*, FontTraits); 77 CSSSegmentedFontFace(CSSFontSelector*, FontTraits);
78 78
79 void pruneTable(); 79 void pruneTable();
80 bool isValid() const; 80 bool isValid() const;
81 81
82 using FontFaceList = WillBeHeapListHashSet<RefPtrWillBeMember<FontFace>>; 82 using FontFaceList = WillBeHeapListHashSet<RefPtrWillBeMember<FontFace>>;
83 83
84 RawPtrWillBeMember<CSSFontSelector> m_fontSelector; 84 RawPtrWillBeMember<CSSFontSelector> m_fontSelector;
85 FontTraits m_traits; 85 FontTraits m_traits;
86 HashMap<unsigned, RefPtr<SegmentedFontData>> m_fontDataTable; 86 HashMap<unsigned, RefPtr<SegmentedFontData>> m_fontDataTable;
87 // All non-CSS-connected FontFaces are stored after the CSS-connected ones. 87 // All non-CSS-connected FontFaces are stored after the CSS-connected ones.
88 FontFaceList m_fontFaces; 88 FontFaceList m_fontFaces;
89 FontFaceList::iterator m_firstNonCssConnectedFace; 89 FontFaceList::iterator m_firstNonCssConnectedFace;
90 }; 90 };
91 91
92 } // namespace blink 92 } // namespace blink
93 93
94 #endif // CSSSegmentedFontFace_h 94 #endif // CSSSegmentedFontFace_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSFontSelector.cpp ('k') | third_party/WebKit/Source/core/css/CSSSegmentedFontFace.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698