⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 94037 in webkit


Ignore:
Timestamp:
Aug 29, 2011, 6:49:10 PM (15 years ago)
Author:
macpherson@chromium.org
Message:

Implement CSSPropertyWebkitColumns in CSSStyleApplyProperty.
https://bugs.webkit.org/show_bug.cgi?id=67106

Reviewed by Darin Adler.

Tests:
LayoutTests/fast/multicol/inherit-column-values.html
LayoutTests/fast/multicol/initial-column-values.html

  • css/CSSStyleApplyProperty.cpp:

(WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
Initialize handler for CSSPropertyWebkitColumns.

  • css/CSSStyleSelector.cpp:

(WebCore::CSSStyleSelector::applyProperty):
Remove existing implementation for CSSPropertyWebkitColumns.

Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r94035 r94037  
     12011-08-29  Luke Macpherson   <macpherson@chromium.org>
     2
     3        Implement CSSPropertyWebkitColumns in CSSStyleApplyProperty.
     4        https://bugs.webkit.org/show_bug.cgi?id=67106
     5
     6        Reviewed by Darin Adler.
     7
     8        Tests:
     9        LayoutTests/fast/multicol/inherit-column-values.html
     10        LayoutTests/fast/multicol/initial-column-values.html
     11
     12        * css/CSSStyleApplyProperty.cpp:
     13        (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
     14        Initialize handler for CSSPropertyWebkitColumns.
     15        * css/CSSStyleSelector.cpp:
     16        (WebCore::CSSStyleSelector::applyProperty):
     17        Remove existing implementation for CSSPropertyWebkitColumns.
     18
    1192011-08-29  Mark Hahnenberg  <mhahnenberg@apple.com>
    220
  • trunk/Source/WebCore/css/CSSStyleApplyProperty.cpp

    r93908 r94037  
    10701070    setPropertyHandler(CSSPropertyWebkitColumnGap, new ApplyPropertyAuto<float, ComputeLength, CSSValueNormal>(&RenderStyle::columnGap, &RenderStyle::setColumnGap, &RenderStyle::hasNormalColumnGap, &RenderStyle::setHasNormalColumnGap));
    10711071    setPropertyHandler(CSSPropertyWebkitColumnWidth, new ApplyPropertyAuto<float, ComputeLength>(&RenderStyle::columnWidth, &RenderStyle::setColumnWidth, &RenderStyle::hasAutoColumnWidth, &RenderStyle::setHasAutoColumnWidth));
     1072    setPropertyHandler(CSSPropertyWebkitColumns, new ApplyPropertyExpanding<SuppressValue>(propertyHandler(CSSPropertyWebkitColumnWidth), propertyHandler(CSSPropertyWebkitColumnCount)));
    10721073
    10731074    setPropertyHandler(CSSPropertyWebkitHighlight, new ApplyPropertyString<MapNoneToNull>(&RenderStyle::highlight, &RenderStyle::setHighlight, &RenderStyle::initialHighlight));
  • trunk/Source/WebCore/css/CSSStyleSelector.cpp

    r93908 r94037  
    44444444        else if (isInitial)
    44454445            m_style->resetColumnRule();
    4446         return;
    4447     case CSSPropertyWebkitColumns:
    4448         if (isInherit) {
    4449             if (m_parentStyle->hasAutoColumnWidth())
    4450                 m_style->setHasAutoColumnWidth();
    4451             else
    4452                 m_style->setColumnWidth(m_parentStyle->columnWidth());
    4453             m_style->setColumnCount(m_parentStyle->columnCount());
    4454         } else if (isInitial) {
    4455             m_style->setHasAutoColumnWidth();
    4456             m_style->setColumnCount(RenderStyle::initialColumnCount());
    4457         }
    44584446        return;
    44594447    case CSSPropertyWebkitRegionBreakBefore:
     
    50515039    case CSSPropertyWebkitTransitionTimingFunction:
    50525040    case CSSPropertyCursor:
     5041    case CSSPropertyWebkitColumns:
    50535042    case CSSPropertyWebkitColumnCount:
    50545043    case CSSPropertyWebkitColumnGap:
Note: See TracChangeset for help on using the changeset viewer.