Changeset 47462 in webkit
- Timestamp:
- Aug 18, 2009 4:36:27 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r47460 r47462 1 2009-08-18 Beth Dakin <bdakin@apple.com> 2 3 Reviewed by Dan Bernstein. 4 5 Test result changes for https://bugs.webkit.org/show_bug.cgi?id=27575 6 [CSS3 Backgrounds and Borders] Drop the prefix from background-size 7 8 * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: 9 * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: 10 * svg/css/getComputedStyle-basic-expected.txt: 11 1 12 2009-08-18 Drew Wilson <atwilson@google.com> 2 13 -
trunk/LayoutTests/platform/mac/fast/css/getComputedStyle/computed-style-expected.txt
r46547 r47462 8 8 background-position: 0% 0%; 9 9 background-repeat: repeat; 10 background-size: auto auto; 10 11 border-bottom-color: rgb(0, 0, 0); 11 12 border-bottom-left-radius: 0px; … … 105 106 -webkit-background-composite: source-over; 106 107 -webkit-background-origin: padding-box; 107 -webkit-background-size: auto auto;108 108 -webkit-border-fit: border; 109 109 -webkit-border-horizontal-spacing: 0px; -
trunk/LayoutTests/platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt
r46547 r47462 7 7 background-position: 0% 0% 8 8 background-repeat: repeat 9 background-size: auto auto 9 10 border-bottom-color: rgb(0, 0, 0) 10 11 border-bottom-left-radius: 0px … … 104 105 -webkit-background-composite: source-over 105 106 -webkit-background-origin: padding-box 106 -webkit-background-size: auto auto107 107 -webkit-border-fit: border 108 108 -webkit-border-horizontal-spacing: 0px -
trunk/LayoutTests/svg/css/getComputedStyle-basic-expected.txt
r46547 r47462 13 13 rect: style.getPropertyValue(background-repeat) : repeat 14 14 rect: style.getPropertyCSSValue(background-repeat) : [object CSSPrimitiveValue] 15 rect: style.getPropertyValue(background-size) : auto auto 16 rect: style.getPropertyCSSValue(background-size) : [object CSSValueList] 15 17 rect: style.getPropertyValue(border-bottom-color) : rgb(0, 0, 0) 16 18 rect: style.getPropertyCSSValue(border-bottom-color) : [object CSSPrimitiveValue] … … 207 209 rect: style.getPropertyValue(-webkit-background-origin) : padding-box 208 210 rect: style.getPropertyCSSValue(-webkit-background-origin) : [object CSSPrimitiveValue] 209 rect: style.getPropertyValue(-webkit-background-size) : auto auto210 rect: style.getPropertyCSSValue(-webkit-background-size) : [object CSSValueList]211 211 rect: style.getPropertyValue(-webkit-border-fit) : border 212 212 rect: style.getPropertyCSSValue(-webkit-border-fit) : [object CSSPrimitiveValue] … … 419 419 g: style.getPropertyValue(background-repeat) : repeat 420 420 g: style.getPropertyCSSValue(background-repeat) : [object CSSPrimitiveValue] 421 g: style.getPropertyValue(background-size) : auto auto 422 g: style.getPropertyCSSValue(background-size) : [object CSSValueList] 421 423 g: style.getPropertyValue(border-bottom-color) : rgb(0, 0, 0) 422 424 g: style.getPropertyCSSValue(border-bottom-color) : [object CSSPrimitiveValue] … … 613 615 g: style.getPropertyValue(-webkit-background-origin) : padding-box 614 616 g: style.getPropertyCSSValue(-webkit-background-origin) : [object CSSPrimitiveValue] 615 g: style.getPropertyValue(-webkit-background-size) : auto auto616 g: style.getPropertyCSSValue(-webkit-background-size) : [object CSSValueList]617 617 g: style.getPropertyValue(-webkit-border-fit) : border 618 618 g: style.getPropertyCSSValue(-webkit-border-fit) : [object CSSPrimitiveValue] -
trunk/WebCore/ChangeLog
r47460 r47462 1 2009-08-18 Beth Dakin <bdakin@apple.com> 2 3 Reviewed by Dan Bernstein. 4 5 Fix for https://bugs.webkit.org/show_bug.cgi?id=27575 [CSS3 6 Backgrounds and Borders] Drop the prefix from background-size 7 8 * css/CSSComputedStyleDeclaration.cpp: 9 (WebCore::): 10 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): 11 * css/CSSParser.cpp: 12 (WebCore::CSSParser::parseValue): 13 (WebCore::CSSParser::parseFillProperty): 14 (WebCore::cssPropertyID): 15 * css/CSSPropertyNames.in: 16 * css/CSSStyleSelector.cpp: 17 (WebCore::CSSStyleSelector::applyProperty): 18 * page/animation/AnimationBase.cpp: 19 (WebCore::FillLayersPropertyWrapper::FillLayersPropertyWrapper): 20 (WebCore::ensurePropertyMap): 21 1 22 2009-08-18 Drew Wilson <atwilson@google.com> 2 23 -
trunk/WebCore/css/CSSComputedStyleDeclaration.cpp
r46914 r47462 59 59 CSSPropertyBackgroundPosition, // more-specific background-position-x/y are non-standard 60 60 CSSPropertyBackgroundRepeat, 61 CSSPropertyBackgroundSize, 61 62 CSSPropertyBorderBottomColor, 62 63 CSSPropertyBorderBottomLeftRadius, … … 157 158 CSSPropertyWebkitBackgroundComposite, 158 159 CSSPropertyWebkitBackgroundOrigin, 159 CSSPropertyWebkitBackgroundSize,160 160 CSSPropertyWebkitBorderFit, 161 161 CSSPropertyWebkitBorderHorizontalSpacing, … … 650 650 return style->backgroundImage()->cssValue(); 651 651 return CSSPrimitiveValue::createIdentifier(CSSValueNone); 652 case CSSProperty WebkitBackgroundSize: {652 case CSSPropertyBackgroundSize: { 653 653 RefPtr<CSSValueList> list = CSSValueList::createSpaceSeparated(); 654 654 list->append(CSSPrimitiveValue::create(style->backgroundSize().width())); -
trunk/WebCore/css/CSSParser.cpp
r47176 r47462 874 874 case CSSPropertyBackgroundPositionX: 875 875 case CSSPropertyBackgroundPositionY: 876 case CSSProperty WebkitBackgroundSize:876 case CSSPropertyBackgroundSize: 877 877 case CSSPropertyBackgroundRepeat: 878 878 case CSSPropertyWebkitMaskAttachment: … … 1530 1530 // Position must come before color in this array because a plain old "0" is a legal color 1531 1531 // in quirks mode but it's usually the X coordinate of a position. 1532 // FIXME: Add CSSProperty WebkitBackgroundSize to the shorthand.1532 // FIXME: Add CSSPropertyBackgroundSize to the shorthand. 1533 1533 const int properties[] = { CSSPropertyBackgroundImage, CSSPropertyBackgroundRepeat, 1534 1534 CSSPropertyBackgroundAttachment, CSSPropertyBackgroundPosition, CSSPropertyBackgroundOrigin, … … 2375 2375 } 2376 2376 break; 2377 case CSSProperty WebkitBackgroundSize:2377 case CSSPropertyBackgroundSize: 2378 2378 case CSSPropertyWebkitMaskSize: 2379 2379 currValue = parseFillSize(); … … 5093 5093 name = boxShadow; 5094 5094 length = strlen(boxShadow); 5095 } else if (strcmp(buffer, "-webkit-background-size") == 0) { 5096 // CSS Backgrounds/Borders. -webkit-background-size worked in Safari 4 and earlier. 5097 const char* const backgroundSize = "background-size"; 5098 name = backgroundSize; 5099 length = strlen(backgroundSize); 5095 5100 } else if (hasPrefix(buffer + 7, length - 7, "-border-")) { 5096 5101 // -webkit-border-*-*-radius worked in Safari 4 and earlier. -webkit-border-radius syntax -
trunk/WebCore/css/CSSPropertyNames.in
r46547 r47462 19 19 background-position-y 20 20 background-repeat 21 background-size 21 22 border 22 23 border-bottom … … 158 159 -webkit-background-composite 159 160 -webkit-background-origin 160 -webkit-background-size161 161 -webkit-binding 162 162 -webkit-border-fit -
trunk/WebCore/css/CSSStyleSelector.cpp
r47444 r47462 2937 2937 HANDLE_BACKGROUND_VALUE(repeat, Repeat, value) 2938 2938 return; 2939 case CSSProperty WebkitBackgroundSize:2939 case CSSPropertyBackgroundSize: 2940 2940 HANDLE_BACKGROUND_VALUE(size, Size, value) 2941 2941 return; -
trunk/WebCore/page/animation/AnimationBase.cpp
r47332 r47462 460 460 m_fillLayerPropertyWrapper = new FillLayerPropertyWrapper<Length>(&FillLayer::yPosition, &FillLayer::setYPosition); 461 461 break; 462 case CSSProperty WebkitBackgroundSize:462 case CSSPropertyBackgroundSize: 463 463 case CSSPropertyWebkitMaskSize: 464 464 m_fillLayerPropertyWrapper = new FillLayerPropertyWrapper<LengthSize>(&FillLayer::size, &FillLayer::setSize); … … 584 584 gPropertyWrappers->append(new FillLayersPropertyWrapper(CSSPropertyBackgroundPositionX, &RenderStyle::backgroundLayers, &RenderStyle::accessBackgroundLayers)); 585 585 gPropertyWrappers->append(new FillLayersPropertyWrapper(CSSPropertyBackgroundPositionY, &RenderStyle::backgroundLayers, &RenderStyle::accessBackgroundLayers)); 586 gPropertyWrappers->append(new FillLayersPropertyWrapper(CSSProperty WebkitBackgroundSize, &RenderStyle::backgroundLayers, &RenderStyle::accessBackgroundLayers));586 gPropertyWrappers->append(new FillLayersPropertyWrapper(CSSPropertyBackgroundSize, &RenderStyle::backgroundLayers, &RenderStyle::accessBackgroundLayers)); 587 587 588 588 gPropertyWrappers->append(new FillLayersPropertyWrapper(CSSPropertyWebkitMaskPositionX, &RenderStyle::maskLayers, &RenderStyle::accessMaskLayers));
Note: See TracChangeset
for help on using the changeset viewer.