Changeset 215737 in webkit
- Timestamp:
- Apr 25, 2017 9:35:39 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/PerformanceTests/ChangeLog
r215704 r215737 1 2017-04-25 Myles C. Maxfield <mmaxfield@apple.com> 2 3 Add performance test for FontCache::systemFallbackForCharacters() 4 https://bugs.webkit.org/show_bug.cgi?id=170842 5 6 Reviewed by Tim Horton. 7 8 * Layout/word-joiner.html: Added. 9 1 10 2017-04-24 Saam Barati <sbarati@apple.com> 2 11 -
trunk/Source/WTF/ChangeLog
r215722 r215737 1 2017-04-25 Myles C. Maxfield <mmaxfield@apple.com> 2 3 Add performance test for FontCache::systemFallbackForCharacters() 4 https://bugs.webkit.org/show_bug.cgi?id=170842 5 6 Reviewed by Tim Horton. 7 8 * wtf/unicode/CharacterNames.h: 9 1 10 2017-04-24 Andy VanWagoner <thetalecrafter@gmail.com> 2 11 -
trunk/Source/WTF/wtf/unicode/CharacterNames.h
r215417 r215737 93 93 const UChar whiteSesameDot = 0xFE46; 94 94 const UChar whiteUpPointingTriangle = 0x25B3; 95 const UChar wordJoiner = 0x2060; 95 96 const UChar yenSign = 0x00A5; 96 97 const UChar zeroWidthJoiner = 0x200D; … … 155 156 using WTF::Unicode::whiteSesameDot; 156 157 using WTF::Unicode::whiteUpPointingTriangle; 158 using WTF::Unicode::wordJoiner; 157 159 using WTF::Unicode::yenSign; 158 160 using WTF::Unicode::zeroWidthJoiner; -
trunk/Source/WebCore/ChangeLog
r215736 r215737 1 2017-04-25 Myles C. Maxfield <mmaxfield@apple.com> 2 3 Add performance test for FontCache::systemFallbackForCharacters() 4 https://bugs.webkit.org/show_bug.cgi?id=170842 5 6 Reviewed by Tim Horton. 7 8 No new tests because there is no behavior change. 9 10 * platform/graphics/FontCascade.h: 11 (WebCore::FontCascade::treatAsZeroWidthSpace): 12 (WebCore::FontCascade::treatAsZeroWidthSpaceInComplexScript): Deleted. 13 * platform/graphics/WidthCache.h: 14 (WebCore::WidthCache::add): 15 (WebCore::WidthCache::addSlowCase): 16 1 17 2017-04-25 Chris Dumez <cdumez@apple.com> 2 18 -
trunk/Source/WebCore/platform/graphics/FontCascade.h
r213614 r215737 262 262 FontSelector* fontSelector() const; 263 263 static bool treatAsSpace(UChar c) { return c == ' ' || c == '\t' || c == '\n' || c == noBreakSpace; } 264 static bool treatAsZeroWidthSpace(UChar c) { return treatAsZeroWidthSpaceInComplexScript(c) || c == 0x200c || c == 0x200d; } 265 static bool treatAsZeroWidthSpaceInComplexScript(UChar c) { return c < 0x20 || (c >= 0x7F && c < 0xA0) || c == softHyphen || c == zeroWidthSpace || (c >= 0x200e && c <= 0x200f) || (c >= 0x202a && c <= 0x202e) || c == zeroWidthNoBreakSpace || c == objectReplacementCharacter; } 264 static bool treatAsZeroWidthSpace(UChar c) { return c < 0x20 || (c >= 0x7F && c < 0xA0) || c == softHyphen || c == zeroWidthSpace || (c >= 0x200e && c <= 0x200f) || (c >= 0x202a && c <= 0x202e) || c == zeroWidthNoBreakSpace || c == objectReplacementCharacter || c == zeroWidthNonJoiner || c == zeroWidthJoiner; } 266 265 static bool canReceiveTextEmphasis(UChar32); 267 266 -
trunk/Source/WebCore/platform/graphics/WidthCache.h
r215417 r215737 141 141 // The width cache is not really profitable unless we're doing expensive glyph transformations. 142 142 if (!hasKerningOrLigatures) 143 return 0;143 return nullptr; 144 144 // Word spacing and letter spacing can change the width of a word. 145 145 if (hasWordSpacingOrLetterSpacing) 146 return 0;146 return nullptr; 147 147 // Since this is just a width cache, we don't have enough information to satisfy glyph queries. 148 148 if (glyphOverflow) 149 return 0;149 return nullptr; 150 150 // If we allow tabs and a tab occurs inside a word, the width of the word varies based on its position on the line. 151 151 if (run.allowTabs()) 152 return 0;152 return nullptr; 153 153 if (static_cast<unsigned>(run.length()) > SmallStringKey::capacity()) 154 return 0;154 return nullptr; 155 155 156 156 if (m_countdown > 0) { 157 157 --m_countdown; 158 return 0;158 return nullptr; 159 159 } 160 160 … … 208 208 m_singleCharMap.clear(); 209 209 m_map.clear(); 210 return 0;210 return nullptr; 211 211 } 212 212
Note: See TracChangeset
for help on using the changeset viewer.