Changeset 100604 in webkit
- Timestamp:
- Nov 17, 2011 4:46:16 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 6 added
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r100600 r100604 1 2011-11-17 Mihnea Ovidenie <mihnea@adobe.com> 2 3 CSS Exclusions: parse the wrap-margin and wrap-padding properties 4 https://bugs.webkit.org/show_bug.cgi?id=71900 5 6 Reviewed by Dean Jackson. 7 8 * fast/css/getComputedStyle/computed-style-expected.txt: 9 * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: 10 * fast/exclusions/script-tests/wrap-margin-parsing.js: Added. 11 * fast/exclusions/script-tests/wrap-padding-parsing.js: Added. 12 * fast/exclusions/wrap-margin-parsing-expected.txt: Added. 13 * fast/exclusions/wrap-margin-parsing.html: Added. 14 * fast/exclusions/wrap-padding-parsing-expected.txt: Added. 15 * fast/exclusions/wrap-padding-parsing.html: Added. 16 * platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt: 17 * platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: 18 * platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt: 19 * svg/css/getComputedStyle-basic-expected.txt: 20 1 21 2011-11-17 Steve Block <steveblock@google.com> 2 22 -
trunk/LayoutTests/fast/css/getComputedStyle/computed-style-expected.txt
r100570 r100604 213 213 -webkit-region-break-inside: auto; 214 214 -webkit-wrap-flow: auto; 215 -webkit-wrap-margin: 0px; 216 -webkit-wrap-padding: 0px; 215 217 -webkit-wrap-through: wrap; 216 218 clip-path: none; -
trunk/LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt
r100570 r100604 212 212 -webkit-region-break-inside: auto 213 213 -webkit-wrap-flow: auto 214 -webkit-wrap-margin: 0px 215 -webkit-wrap-padding: 0px 214 216 -webkit-wrap-through: wrap 215 217 clip-path: none -
trunk/LayoutTests/platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt
r100570 r100604 213 213 -webkit-region-break-inside: auto; 214 214 -webkit-wrap-flow: auto; 215 -webkit-wrap-margin: 0px; 216 -webkit-wrap-padding: 0px; 215 217 -webkit-wrap-through: wrap; 216 218 clip-path: none; -
trunk/LayoutTests/platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt
r100570 r100604 212 212 -webkit-region-break-inside: auto 213 213 -webkit-wrap-flow: auto 214 -webkit-wrap-margin: 0px 215 -webkit-wrap-padding: 0px 214 216 -webkit-wrap-through: wrap 215 217 clip-path: none -
trunk/LayoutTests/platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt
r100570 r100604 423 423 rect: style.getPropertyValue(-webkit-wrap-flow) : auto 424 424 rect: style.getPropertyCSSValue(-webkit-wrap-flow) : [object CSSPrimitiveValue] 425 rect: style.getPropertyValue(-webkit-wrap-margin) : 0px 426 rect: style.getPropertyCSSValue(-webkit-wrap-margin) : [object CSSPrimitiveValue] 427 rect: style.getPropertyValue(-webkit-wrap-padding) : 0px 428 rect: style.getPropertyCSSValue(-webkit-wrap-padding) : [object CSSPrimitiveValue] 425 429 rect: style.getPropertyValue(-webkit-wrap-through) : wrap 426 430 rect: style.getPropertyCSSValue(-webkit-wrap-through) : [object CSSPrimitiveValue] … … 923 927 g: style.getPropertyValue(-webkit-wrap-flow) : auto 924 928 g: style.getPropertyCSSValue(-webkit-wrap-flow) : [object CSSPrimitiveValue] 929 g: style.getPropertyValue(-webkit-wrap-margin) : 0px 930 g: style.getPropertyCSSValue(-webkit-wrap-margin) : [object CSSPrimitiveValue] 931 g: style.getPropertyValue(-webkit-wrap-padding) : 0px 932 g: style.getPropertyCSSValue(-webkit-wrap-padding) : [object CSSPrimitiveValue] 925 933 g: style.getPropertyValue(-webkit-wrap-through) : wrap 926 934 g: style.getPropertyCSSValue(-webkit-wrap-through) : [object CSSPrimitiveValue] -
trunk/LayoutTests/svg/css/getComputedStyle-basic-expected.txt
r100570 r100604 423 423 rect: style.getPropertyValue(-webkit-wrap-flow) : auto 424 424 rect: style.getPropertyCSSValue(-webkit-wrap-flow) : [object CSSPrimitiveValue] 425 rect: style.getPropertyValue(-webkit-wrap-margin) : 0px 426 rect: style.getPropertyCSSValue(-webkit-wrap-margin) : [object CSSPrimitiveValue] 427 rect: style.getPropertyValue(-webkit-wrap-padding) : 0px 428 rect: style.getPropertyCSSValue(-webkit-wrap-padding) : [object CSSPrimitiveValue] 425 429 rect: style.getPropertyValue(-webkit-wrap-through) : wrap 426 430 rect: style.getPropertyCSSValue(-webkit-wrap-through) : [object CSSPrimitiveValue] … … 923 927 g: style.getPropertyValue(-webkit-wrap-flow) : auto 924 928 g: style.getPropertyCSSValue(-webkit-wrap-flow) : [object CSSPrimitiveValue] 929 g: style.getPropertyValue(-webkit-wrap-margin) : 0px 930 g: style.getPropertyCSSValue(-webkit-wrap-margin) : [object CSSPrimitiveValue] 931 g: style.getPropertyValue(-webkit-wrap-padding) : 0px 932 g: style.getPropertyCSSValue(-webkit-wrap-padding) : [object CSSPrimitiveValue] 925 933 g: style.getPropertyValue(-webkit-wrap-through) : wrap 926 934 g: style.getPropertyCSSValue(-webkit-wrap-through) : [object CSSPrimitiveValue] -
trunk/Source/WebCore/ChangeLog
r100601 r100604 1 2011-11-17 Mihnea Ovidenie <mihnea@adobe.com> 2 3 CSS Exclusions: parse the wrap-margin and wrap-padding properties 4 https://bugs.webkit.org/show_bug.cgi?id=71900 5 6 Reviewed by Dean Jackson. 7 8 Tests: fast/exclusions/wrap-margin-parsing.html 9 fast/exclusions/wrap-padding-parsing.html 10 11 * css/CSSComputedStyleDeclaration.cpp: 12 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): 13 * css/CSSParser.cpp: 14 (WebCore::isSimpleLengthPropertyID): 15 (WebCore::CSSParser::parseValue): 16 * css/CSSProperty.cpp: 17 (WebCore::CSSProperty::isInheritedProperty): 18 * css/CSSPropertyNames.in: 19 * css/CSSStyleApplyProperty.cpp: 20 (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty): 21 * css/CSSStyleSelector.cpp: 22 (WebCore::CSSStyleSelector::applyProperty): 23 * rendering/style/RenderStyle.cpp: 24 (WebCore::RenderStyle::diff): 25 * rendering/style/RenderStyle.h: 26 (WebCore::InheritedFlags::wrapPadding): 27 (WebCore::InheritedFlags::setWrapPadding): 28 (WebCore::InheritedFlags::initialWrapPadding): 29 (WebCore::InheritedFlags::wrapMargin): 30 (WebCore::InheritedFlags::setWrapMargin): 31 (WebCore::InheritedFlags::initialWrapMargin): 32 * rendering/style/StyleRareNonInheritedData.cpp: 33 (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData): 34 (WebCore::StyleRareNonInheritedData::operator==): 35 * rendering/style/StyleRareNonInheritedData.h: 36 1 37 2011-11-17 Kenichi Ishibashi <bashi@chromium.org> 2 38 -
trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
r100570 r100604 287 287 CSSPropertyWebkitRegionBreakInside, 288 288 CSSPropertyWebkitWrapFlow, 289 CSSPropertyWebkitWrapMargin, 290 CSSPropertyWebkitWrapPadding, 289 291 CSSPropertyWebkitWrapThrough 290 292 #if ENABLE(SVG) … … 2037 2039 case CSSPropertyWebkitRegionOverflow: 2038 2040 return primitiveValueCache->createValue(style->regionOverflow()); 2041 case CSSPropertyWebkitWrapMargin: 2042 return primitiveValueCache->createValue(style->wrapMargin()); 2043 case CSSPropertyWebkitWrapPadding: 2044 return primitiveValueCache->createValue(style->wrapPadding()); 2039 2045 #if ENABLE(CSS_FILTERS) 2040 2046 case CSSPropertyWebkitFilter: -
trunk/Source/WebCore/css/CSSParser.cpp
r100570 r100604 385 385 case CSSPropertyWebkitPaddingEnd: 386 386 case CSSPropertyWebkitPaddingStart: 387 case CSSPropertyWebkitWrapMargin: 388 case CSSPropertyWebkitWrapPadding: 387 389 acceptsNegativeNumbers = false; 388 390 return true; … … 2200 2202 return parseWrapShape(important); 2201 2203 break; 2202 2203 2204 case CSSPropertyWebkitWrapFlow: 2204 2205 if (id == CSSValueAuto || id == CSSValueBoth || id == CSSValueLeft || id == CSSValueRight || id == CSSValueMaximum || id == CSSValueClear) … … 2210 2211 validPrimitive = true; 2211 2212 break; 2212 2213 case CSSPropertyWebkitWrapMargin: 2214 case CSSPropertyWebkitWrapPadding: 2215 validPrimitive = (!id && validUnit(value, FLength | FNonNeg, m_strict)); 2216 break; 2213 2217 #if ENABLE(SVG) 2214 2218 default: -
trunk/Source/WebCore/css/CSSProperty.cpp
r100570 r100604 633 633 case CSSPropertyWebkitRegionOverflow: 634 634 case CSSPropertyWebkitWrapShape: 635 case CSSPropertyWebkitWrapMargin: 636 case CSSPropertyWebkitWrapPadding: 635 637 case CSSPropertyWebkitRegionBreakAfter: 636 638 case CSSPropertyWebkitRegionBreakBefore: -
trunk/Source/WebCore/css/CSSPropertyNames.in
r100570 r100604 356 356 -webkit-region-overflow 357 357 -webkit-wrap-shape 358 -webkit-wrap-margin 359 -webkit-wrap-padding 358 360 -webkit-region-break-after 359 361 -webkit-region-break-before -
trunk/Source/WebCore/css/CSSStyleApplyProperty.cpp
r100198 r100604 1048 1048 setPropertyHandler(CSSPropertyWebkitTextEmphasisStyle, ApplyPropertyTextEmphasisStyle::createHandler()); 1049 1049 1050 setPropertyHandler(CSSPropertyWebkitWrapMargin, ApplyPropertyLength<&RenderStyle::wrapMargin, &RenderStyle::setWrapMargin, &RenderStyle::initialWrapMargin>::createHandler()); 1051 setPropertyHandler(CSSPropertyWebkitWrapPadding, ApplyPropertyLength<&RenderStyle::wrapPadding, &RenderStyle::setWrapPadding, &RenderStyle::initialWrapPadding>::createHandler()); 1052 1050 1053 setPropertyHandler(CSSPropertyZIndex, ApplyPropertyAuto<int, &RenderStyle::zIndex, &RenderStyle::setZIndex, &RenderStyle::hasAutoZIndex, &RenderStyle::setHasAutoZIndex>::createHandler()); 1051 1054 } -
trunk/Source/WebCore/css/CSSStyleSelector.cpp
r100570 r100604 4056 4056 case CSSPropertyWebkitTextEmphasisPosition: 4057 4057 case CSSPropertyWebkitTextEmphasisStyle: 4058 case CSSPropertyWebkitWrapMargin: 4059 case CSSPropertyWebkitWrapPadding: 4058 4060 case CSSPropertyZIndex: 4059 4061 ASSERT_NOT_REACHED(); -
trunk/Source/WebCore/rendering/style/RenderStyle.cpp
r100570 r100604 387 387 388 388 if (rareNonInheritedData->m_wrapFlow != other->rareNonInheritedData->m_wrapFlow 389 || rareNonInheritedData->m_wrapThrough != other->rareNonInheritedData->m_wrapThrough) 389 || rareNonInheritedData->m_wrapThrough != other->rareNonInheritedData->m_wrapThrough 390 || rareNonInheritedData->m_wrapMargin != other->rareNonInheritedData->m_wrapMargin 391 || rareNonInheritedData->m_wrapPadding != other->rareNonInheritedData->m_wrapPadding) 390 392 return StyleDifferenceLayout; 391 393 -
trunk/Source/WebCore/rendering/style/RenderStyle.h
r100570 r100604 1286 1286 CSSWrapShape* wrapShape() const { return rareNonInheritedData->m_wrapShape.get(); } 1287 1287 static CSSWrapShape* initialWrapShape() { return 0; } 1288 1289 Length wrapPadding() const { return rareNonInheritedData->m_wrapPadding; } 1290 void setWrapPadding(Length wrapPadding) { SET_VAR(rareNonInheritedData, m_wrapPadding, wrapPadding); } 1291 static Length initialWrapPadding() { return Length(0, Fixed); } 1292 1293 Length wrapMargin() const { return rareNonInheritedData->m_wrapMargin; } 1294 void setWrapMargin(Length wrapMargin) { SET_VAR(rareNonInheritedData, m_wrapMargin, wrapMargin); } 1295 static Length initialWrapMargin() { return Length(0, Fixed); } 1288 1296 1289 1297 bool hasContent() const { return contentData(); } -
trunk/Source/WebCore/rendering/style/StyleRareNonInheritedData.cpp
r100570 r100604 45 45 , m_pageSize() 46 46 , m_wrapShape(RenderStyle::initialWrapShape()) 47 , m_wrapMargin(RenderStyle::initialWrapMargin()) 48 , m_wrapPadding(RenderStyle::initialWrapPadding()) 47 49 , m_visitedLinkBackgroundColor(RenderStyle::initialBackgroundColor()) 48 50 , m_flowThread(RenderStyle::initialFlowThread()) … … 99 101 , m_pageSize(o.m_pageSize) 100 102 , m_wrapShape(o.m_wrapShape) 103 , m_wrapMargin(o.m_wrapMargin) 104 , m_wrapPadding(o.m_wrapPadding) 101 105 , m_visitedLinkBackgroundColor(o.m_visitedLinkBackgroundColor) 102 106 , m_visitedLinkOutlineColor(o.m_visitedLinkBackgroundColor) … … 183 187 && (m_wrapFlow == o.m_wrapFlow) 184 188 && (m_wrapThrough == o.m_wrapThrough) 189 && (m_wrapMargin == o.m_wrapMargin) 190 && (m_wrapPadding == o.m_wrapPadding) 185 191 && m_visitedLinkBackgroundColor == o.m_visitedLinkBackgroundColor 186 192 && m_visitedLinkOutlineColor == o.m_visitedLinkOutlineColor -
trunk/Source/WebCore/rendering/style/StyleRareNonInheritedData.h
r100570 r100604 128 128 129 129 RefPtr<CSSWrapShape> m_wrapShape; 130 Length m_wrapMargin; 131 Length m_wrapPadding; 130 132 131 133 Color m_visitedLinkBackgroundColor;
Note: See TracChangeset
for help on using the changeset viewer.