Changeset 102557 in webkit


Ignore:
Timestamp:
Dec 11, 2011 8:06:57 PM (12 years ago)
Author:
macpherson@chromium.org
Message:

Implement webkit-line-grid and webkit-line-grid-snap CSS properties in CSSStyleApplyProperty.
https://bugs.webkit.org/show_bug.cgi?id=74262

Reviewed by Andreas Kling.

No new tests / refactoring only.

  • css/CSSStyleApplyProperty.cpp:

(WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):

  • css/CSSStyleSelector.cpp:

(WebCore::CSSStyleSelector::applyProperty):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r102556 r102557  
     12011-12-11  Luke Macpherson   <macpherson@chromium.org>
     2
     3        Implement webkit-line-grid and webkit-line-grid-snap CSS properties in CSSStyleApplyProperty.
     4        https://bugs.webkit.org/show_bug.cgi?id=74262
     5
     6        Reviewed by Andreas Kling.
     7
     8        No new tests / refactoring only.
     9
     10        * css/CSSStyleApplyProperty.cpp:
     11        (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
     12        * css/CSSStyleSelector.cpp:
     13        (WebCore::CSSStyleSelector::applyProperty):
     14
    1152011-12-11  Kentaro Hara  <haraken@chromium.org>
    216
  • trunk/Source/WebCore/css/CSSStyleApplyProperty.cpp

    r102552 r102557  
    16401640    setPropertyHandler(CSSPropertyWebkitHyphenateLimitLines, ApplyPropertyNumber<short, &RenderStyle::hyphenationLimitLines, &RenderStyle::setHyphenationLimitLines, &RenderStyle::initialHyphenationLimitLines, CSSValueNoLimit>::createHandler());
    16411641
     1642    setPropertyHandler(CSSPropertyWebkitLineGrid, ApplyPropertyString<MapNoneToNull, &RenderStyle::lineGrid, &RenderStyle::setLineGrid, &RenderStyle::initialLineGrid>::createHandler());
     1643    setPropertyHandler(CSSPropertyWebkitLineGridSnap, ApplyPropertyDefault<LineGridSnap, &RenderStyle::lineGridSnap, LineGridSnap, &RenderStyle::setLineGridSnap, LineGridSnap, &RenderStyle::initialLineGridSnap>::createHandler());
     1644
    16421645    setPropertyHandler(CSSPropertyWebkitTextCombine, ApplyPropertyDefault<TextCombine, &RenderStyle::textCombine, TextCombine, &RenderStyle::setTextCombine, TextCombine, &RenderStyle::initialTextCombine>::createHandler());
    16431646    setPropertyHandler(CSSPropertyWebkitTextEmphasisPosition, ApplyPropertyDefault<TextEmphasisPosition, &RenderStyle::textEmphasisPosition, TextEmphasisPosition, &RenderStyle::setTextEmphasisPosition, TextEmphasisPosition, &RenderStyle::initialTextEmphasisPosition>::createHandler());
  • trunk/Source/WebCore/css/CSSStyleSelector.cpp

    r102555 r102557  
    32843284        else if (isInitial)
    32853285            m_style->resetColumnRule();
    3286         return;
    3287     case CSSPropertyWebkitLineGrid:
    3288         HANDLE_INHERIT_AND_INITIAL(lineGrid, LineGrid);
    3289         if (primitiveValue->getIdent() == CSSValueNone)
    3290             m_style->setLineGrid(nullAtom);
    3291         else
    3292             m_style->setLineGrid(primitiveValue->getStringValue());
    3293         return;
    3294     case CSSPropertyWebkitLineGridSnap:
    3295         HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE(lineGridSnap, LineGridSnap)
    32963286        return;
    32973287    case CSSPropertyWebkitRegionBreakBefore:
     
    38993889    case CSSPropertyWebkitHyphenateLimitBefore:
    39003890    case CSSPropertyWebkitHyphenateLimitLines:
     3891    case CSSPropertyWebkitLineGrid:
     3892    case CSSPropertyWebkitLineGridSnap:
    39013893    case CSSPropertyWebkitTextCombine:
    39023894    case CSSPropertyWebkitTextEmphasisPosition:
Note: See TracChangeset for help on using the changeset viewer.