Changeset 85923 in webkit


Ignore:
Timestamp:
May 6, 2011 12:11:59 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-05-06 Luke Macpherson <macpherson@chromium.org>

Reviewed by Eric Seidel.

Use cast to convert primitive value to FontSmoothingMode.
https://bugs.webkit.org/show_bug.cgi?id=60242

No tests added as no functionality changed.

  • css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::applyProperty): Use cast to convert primitive value to FontSmoothingMode.
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r85921 r85923  
     12011-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
    1142011-05-05  Luke Macpherson   <macpherson@chromium.org>
    215
  • trunk/Source/WebCore/css/CSSStyleSelector.cpp

    r85921 r85923  
    38473847            if (!primitiveValue)
    38483848                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);
    38693850        }
    38703851        if (m_style->setFontDescription(fontDescription))
Note: See TracChangeset for help on using the changeset viewer.