Changeset 94037 in webkit
- Timestamp:
- Aug 29, 2011, 6:49:10 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 3 edited
-
LayoutTests/fast/multicol/inherit-column-values-expected.txt (added)
-
LayoutTests/fast/multicol/inherit-column-values.html (added)
-
LayoutTests/fast/multicol/initial-column-values-expected.txt (added)
-
LayoutTests/fast/multicol/initial-column-values.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/css/CSSStyleApplyProperty.cpp (modified) (1 diff)
-
Source/WebCore/css/CSSStyleSelector.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r94035 r94037 1 2011-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 1 19 2011-08-29 Mark Hahnenberg <mhahnenberg@apple.com> 2 20 -
trunk/Source/WebCore/css/CSSStyleApplyProperty.cpp
r93908 r94037 1070 1070 setPropertyHandler(CSSPropertyWebkitColumnGap, new ApplyPropertyAuto<float, ComputeLength, CSSValueNormal>(&RenderStyle::columnGap, &RenderStyle::setColumnGap, &RenderStyle::hasNormalColumnGap, &RenderStyle::setHasNormalColumnGap)); 1071 1071 setPropertyHandler(CSSPropertyWebkitColumnWidth, new ApplyPropertyAuto<float, ComputeLength>(&RenderStyle::columnWidth, &RenderStyle::setColumnWidth, &RenderStyle::hasAutoColumnWidth, &RenderStyle::setHasAutoColumnWidth)); 1072 setPropertyHandler(CSSPropertyWebkitColumns, new ApplyPropertyExpanding<SuppressValue>(propertyHandler(CSSPropertyWebkitColumnWidth), propertyHandler(CSSPropertyWebkitColumnCount))); 1072 1073 1073 1074 setPropertyHandler(CSSPropertyWebkitHighlight, new ApplyPropertyString<MapNoneToNull>(&RenderStyle::highlight, &RenderStyle::setHighlight, &RenderStyle::initialHighlight)); -
trunk/Source/WebCore/css/CSSStyleSelector.cpp
r93908 r94037 4444 4444 else if (isInitial) 4445 4445 m_style->resetColumnRule(); 4446 return;4447 case CSSPropertyWebkitColumns:4448 if (isInherit) {4449 if (m_parentStyle->hasAutoColumnWidth())4450 m_style->setHasAutoColumnWidth();4451 else4452 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 }4458 4446 return; 4459 4447 case CSSPropertyWebkitRegionBreakBefore: … … 5051 5039 case CSSPropertyWebkitTransitionTimingFunction: 5052 5040 case CSSPropertyCursor: 5041 case CSSPropertyWebkitColumns: 5053 5042 case CSSPropertyWebkitColumnCount: 5054 5043 case CSSPropertyWebkitColumnGap:
Note:
See TracChangeset
for help on using the changeset viewer.