Changeset 85923 in webkit
- Timestamp:
- May 6, 2011 12:11:59 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r85921 r85923 1 2011-05-06 Luke Macpherson <macpherson@chromium.org> 2 3 Reviewed by Eric Seidel. 4 5 Use cast to convert primitive value to FontSmoothingMode. 6 https://bugs.webkit.org/show_bug.cgi?id=60242 7 8 No tests added as no functionality changed. 9 10 * css/CSSStyleSelector.cpp: 11 (WebCore::CSSStyleSelector::applyProperty): 12 Use cast to convert primitive value to FontSmoothingMode. 13 1 14 2011-05-05 Luke Macpherson <macpherson@chromium.org> 2 15 -
trunk/Source/WebCore/css/CSSStyleSelector.cpp
r85921 r85923 3847 3847 if (!primitiveValue) 3848 3848 return; 3849 int id = primitiveValue->getIdent(); 3850 FontSmoothingMode smoothing; 3851 switch (id) { 3852 case CSSValueAuto: 3853 smoothing = AutoSmoothing; 3854 break; 3855 case CSSValueNone: 3856 smoothing = NoSmoothing; 3857 break; 3858 case CSSValueAntialiased: 3859 smoothing = Antialiased; 3860 break; 3861 case CSSValueSubpixelAntialiased: 3862 smoothing = SubpixelAntialiased; 3863 break; 3864 default: 3865 ASSERT_NOT_REACHED(); 3866 smoothing = AutoSmoothing; 3867 } 3868 fontDescription.setFontSmoothing(smoothing); 3849 fontDescription.setFontSmoothing(*primitiveValue); 3869 3850 } 3870 3851 if (m_style->setFontDescription(fontDescription))
Note: See TracChangeset
for help on using the changeset viewer.