Changeset 190895 in webkit
- Timestamp:
- Oct 12, 2015 3:40:36 PM (8 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r190894 r190895 1 2015-10-12 Myles C. Maxfield <mmaxfield@apple.com> 2 3 [Font Features] Tiny cleanup regarding FontCascade::typesettingFeatures() 4 https://bugs.webkit.org/show_bug.cgi?id=150051 5 6 Reviewed by Simon Fraser. 7 8 There are no typesetting features which aren't kerning nor ligatures. 9 10 No new tests because there is no behavior difference. 11 12 * platform/graphics/FontCascade.cpp: 13 (WebCore::FontCascade::codePath): 14 * platform/graphics/WidthIterator.h: 15 (WebCore::WidthIterator::supportsTypesettingFeatures): Deleted. 16 1 17 2015-10-12 Simon Fraser <simon.fraser@apple.com> 2 18 -
trunk/Source/WebCore/platform/graphics/FontCascade.cpp
r190242 r190895 604 604 if (m_fontDescription.featureSettings().size() > 0 || !m_fontDescription.variantSettings().isAllNormal()) 605 605 return Complex; 606 607 if (run.length() > 1 && !WidthIterator::supportsTypesettingFeatures(*this)) 606 607 #if !PLATFORM(COCOA) 608 if (run.length() > 1 && typesettingFeatures()) 608 609 return Complex; 610 #endif 609 611 610 612 if (!run.characterScanForCodePath()) -
trunk/Source/WebCore/platform/graphics/WidthIterator.h
r189557 r190895 62 62 #endif 63 63 64 static bool supportsTypesettingFeatures(const FontCascade& font)65 {66 #if PLATFORM(COCOA)67 return !(font.typesettingFeatures() & ~(Kerning | Ligatures));68 #else69 return !font.typesettingFeatures();70 #endif71 }72 73 64 const FontCascade* m_font; 74 65
Note: See TracChangeset
for help on using the changeset viewer.