Changeset 49003 in webkit
- Timestamp:
- Oct 1, 2009 4:00:22 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r49001 r49003 1 2009-10-01 Beth Dakin <bdakin@apple.com> 2 3 Reviewed by Dan Bernstein. 4 5 Updated test results for <rdar://problem/7264725> Re-add a vendor 6 prefix to box-shadow (29927) 7 -and corresponding- 8 https://bugs.webkit.org/show_bug.cgi?id=29927 9 10 * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: 11 * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: 12 * platform/qt/fast/css/getComputedStyle/computed-style-expected.txt: 13 * platform/qt/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: 14 * platform/win/fast/css/getComputedStyle/computed-style-expected.txt: 15 * platform/win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: 16 * svg/css/getComputedStyle-basic-expected.txt: 17 1 18 2009-10-01 Brian Weinstein <bweinstein@apple.com> 2 19 -
trunk/LayoutTests/platform/mac/fast/css/getComputedStyle/computed-style-expected.txt
r48989 r49003 27 27 border-top-width: 0px; 28 28 bottom: auto; 29 box-shadow: none;30 29 caption-side: top; 31 30 clear: none; … … 120 119 -webkit-box-pack: start; 121 120 -webkit-box-reflect: none; 121 -webkit-box-shadow: none; 122 122 -webkit-box-sizing: content-box; 123 123 -webkit-column-break-after: auto; -
trunk/LayoutTests/platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt
r48989 r49003 26 26 border-top-width: 16px 27 27 bottom: auto 28 box-shadow: none29 28 caption-side: top 30 29 clear: none … … 119 118 -webkit-box-pack: start 120 119 -webkit-box-reflect: none 120 -webkit-box-shadow: none 121 121 -webkit-box-sizing: content-box 122 122 -webkit-column-break-after: auto -
trunk/LayoutTests/platform/qt/fast/css/getComputedStyle/computed-style-expected.txt
r48466 r49003 27 27 border-top-width: 0px; 28 28 bottom: auto; 29 box-shadow: none;30 29 caption-side: top; 31 30 clear: none; … … 119 118 -webkit-box-pack: start; 120 119 -webkit-box-reflect: none; 120 -webkit-box-shadow: none; 121 121 -webkit-box-sizing: content-box; 122 122 -webkit-column-break-after: auto; -
trunk/LayoutTests/platform/qt/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt
r48466 r49003 26 26 border-top-width: 13px 27 27 bottom: auto 28 box-shadow: none29 28 caption-side: top 30 29 clear: none … … 118 117 -webkit-box-pack: start 119 118 -webkit-box-reflect: none 119 -webkit-box-shadow: none 120 120 -webkit-box-sizing: content-box 121 121 -webkit-column-break-after: auto -
trunk/LayoutTests/platform/win/fast/css/getComputedStyle/computed-style-expected.txt
r48999 r49003 27 27 border-top-width: 0px; 28 28 bottom: auto; 29 box-shadow: none;30 29 caption-side: top; 31 30 clear: none; … … 120 119 -webkit-box-pack: start; 121 120 -webkit-box-reflect: none; 121 -webkit-box-shadow: none; 122 122 -webkit-box-sizing: content-box; 123 123 -webkit-column-break-after: auto; -
trunk/LayoutTests/platform/win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt
r48999 r49003 26 26 border-top-width: 16px 27 27 bottom: auto 28 box-shadow: none29 28 caption-side: top 30 29 clear: none … … 119 118 -webkit-box-pack: start 120 119 -webkit-box-reflect: none 120 -webkit-box-shadow: none 121 121 -webkit-box-sizing: content-box 122 122 -webkit-column-break-after: auto -
trunk/LayoutTests/svg/css/getComputedStyle-basic-expected.txt
r48989 r49003 51 51 rect: style.getPropertyValue(bottom) : auto 52 52 rect: style.getPropertyCSSValue(bottom) : [object CSSPrimitiveValue] 53 rect: style.getPropertyValue(box-shadow) : none54 rect: style.getPropertyCSSValue(box-shadow) : [object CSSPrimitiveValue]55 53 rect: style.getPropertyValue(caption-side) : top 56 54 rect: style.getPropertyCSSValue(caption-side) : [object CSSPrimitiveValue] … … 237 235 rect: style.getPropertyValue(-webkit-box-reflect) : none 238 236 rect: style.getPropertyCSSValue(-webkit-box-reflect) : [object CSSPrimitiveValue] 237 rect: style.getPropertyValue(-webkit-box-shadow) : none 238 rect: style.getPropertyCSSValue(-webkit-box-shadow) : [object CSSPrimitiveValue] 239 239 rect: style.getPropertyValue(-webkit-box-sizing) : content-box 240 240 rect: style.getPropertyCSSValue(-webkit-box-sizing) : [object CSSPrimitiveValue] … … 459 459 g: style.getPropertyValue(bottom) : auto 460 460 g: style.getPropertyCSSValue(bottom) : [object CSSPrimitiveValue] 461 g: style.getPropertyValue(box-shadow) : none462 g: style.getPropertyCSSValue(box-shadow) : [object CSSPrimitiveValue]463 461 g: style.getPropertyValue(caption-side) : top 464 462 g: style.getPropertyCSSValue(caption-side) : [object CSSPrimitiveValue] … … 645 643 g: style.getPropertyValue(-webkit-box-reflect) : none 646 644 g: style.getPropertyCSSValue(-webkit-box-reflect) : [object CSSPrimitiveValue] 645 g: style.getPropertyValue(-webkit-box-shadow) : none 646 g: style.getPropertyCSSValue(-webkit-box-shadow) : [object CSSPrimitiveValue] 647 647 g: style.getPropertyValue(-webkit-box-sizing) : content-box 648 648 g: style.getPropertyCSSValue(-webkit-box-sizing) : [object CSSPrimitiveValue] -
trunk/WebCore/ChangeLog
r48995 r49003 1 2009-10-01 Beth Dakin <bdakin@apple.com> 2 3 Reviewed by Dan Bernstein. 4 5 Fix for <rdar://problem/7264725> Re-add a vendor prefix to box- 6 shadow (29927) 7 -and corresponding- 8 https://bugs.webkit.org/show_bug.cgi?id=29927 9 10 * css/CSSComputedStyleDeclaration.cpp: 11 (WebCore::): 12 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): 13 * css/CSSParser.cpp: 14 (WebCore::CSSParser::parseValue): 15 (WebCore::ShadowParseContext::ShadowParseContext): 16 (WebCore::ShadowParseContext::commitValue): 17 (WebCore::ShadowParseContext::commitLength): 18 (WebCore::ShadowParseContext::commitColor): 19 (WebCore::cssPropertyID): 20 * css/CSSPropertyNames.in: 21 * css/CSSStyleSelector.cpp: 22 (WebCore::CSSStyleSelector::applyProperty): 23 * page/animation/AnimationBase.cpp: 24 (WebCore::ensurePropertyMap): 25 1 26 2009-10-01 Beth Dakin <bdakin@apple.com> 2 27 -
trunk/WebCore/css/CSSComputedStyleDeclaration.cpp
r48989 r49003 78 78 CSSPropertyBorderTopWidth, 79 79 CSSPropertyBottom, 80 CSSPropertyBoxShadow,81 80 CSSPropertyCaptionSide, 82 81 CSSPropertyClear, … … 172 171 CSSPropertyWebkitBoxPack, 173 172 CSSPropertyWebkitBoxReflect, 173 CSSPropertyWebkitBoxShadow, 174 174 CSSPropertyWebkitBoxSizing, 175 175 CSSPropertyWebkitColumnBreakAfter, … … 768 768 case CSSPropertyWebkitBoxReflect: 769 769 return valueForReflection(style->boxReflect()); 770 case CSSProperty BoxShadow:770 case CSSPropertyWebkitBoxShadow: 771 771 return valueForShadow(style->boxShadow(), static_cast<CSSPropertyID>(propertyID)); 772 772 case CSSPropertyCaptionSide: -
trunk/WebCore/css/CSSParser.cpp
r48989 r49003 1191 1191 break; 1192 1192 case CSSPropertyTextShadow: // CSS2 property, dropped in CSS2.1, back in CSS3, so treat as CSS3 1193 case CSSProperty BoxShadow:1193 case CSSPropertyWebkitBoxShadow: 1194 1194 if (id == CSSValueNone) 1195 1195 valid_primitive = true; … … 3611 3611 , allowSpread(false) 3612 3612 , allowColor(true) 3613 , allowStyle(prop == CSSProperty BoxShadow)3613 , allowStyle(prop == CSSPropertyWebkitBoxShadow) 3614 3614 , allowBreak(true) 3615 3615 { … … 3643 3643 allowBlur = false; 3644 3644 allowSpread = false; 3645 allowStyle = property == CSSProperty BoxShadow;3645 allowStyle = property == CSSPropertyWebkitBoxShadow; 3646 3646 } 3647 3647 … … 3662 3662 allowBlur = true; 3663 3663 allowColor = true; 3664 allowStyle = property == CSSProperty BoxShadow;3664 allowStyle = property == CSSPropertyWebkitBoxShadow; 3665 3665 allowBreak = true; 3666 3666 } else if (allowBlur) { 3667 3667 blur = val.release(); 3668 3668 allowBlur = false; 3669 allowSpread = property == CSSProperty BoxShadow;3669 allowSpread = property == CSSPropertyWebkitBoxShadow; 3670 3670 } else if (allowSpread) { 3671 3671 spread = val.release(); … … 3684 3684 allowBlur = false; 3685 3685 allowSpread = false; 3686 allowStyle = property == CSSProperty BoxShadow;3686 allowStyle = property == CSSPropertyWebkitBoxShadow; 3687 3687 } 3688 3688 } … … 5177 5177 name = opacity; 5178 5178 length = strlen(opacity); 5179 } else if (strcmp(buffer, "-webkit-box-shadow") == 0) {5180 // CSS Backgrounds/Borders. -webkit-box-shadow worked in Safari 4 and earlier.5181 const char* const boxShadow = "box-shadow";5182 name = boxShadow;5183 length = strlen(boxShadow);5184 5179 } else if (strcmp(buffer, "-webkit-background-size") == 0) { 5185 5180 // CSS Backgrounds/Borders. -webkit-background-size worked in Safari 4 and earlier. -
trunk/WebCore/css/CSSPropertyNames.in
r48989 r49003 50 50 border-width 51 51 bottom 52 box-shadow53 52 caption-side 54 53 clear … … 181 180 -webkit-box-pack 182 181 -webkit-box-reflect 182 -webkit-box-shadow 183 183 -webkit-box-sizing 184 184 -webkit-column-break-after -
trunk/WebCore/css/CSSStyleSelector.cpp
r48989 r49003 4651 4651 } 4652 4652 case CSSPropertyTextShadow: 4653 case CSSProperty BoxShadow: {4653 case CSSPropertyWebkitBoxShadow: { 4654 4654 if (isInherit) { 4655 4655 if (id == CSSPropertyTextShadow) -
trunk/WebCore/page/animation/AnimationBase.cpp
r48982 r49003 644 644 645 645 // These are for shadows 646 gPropertyWrappers->append(new PropertyWrapperShadow(CSSProperty BoxShadow, &RenderStyle::boxShadow, &RenderStyle::setBoxShadow));646 gPropertyWrappers->append(new PropertyWrapperShadow(CSSPropertyWebkitBoxShadow, &RenderStyle::boxShadow, &RenderStyle::setBoxShadow)); 647 647 gPropertyWrappers->append(new PropertyWrapperShadow(CSSPropertyTextShadow, &RenderStyle::textShadow, &RenderStyle::setTextShadow)); 648 648
Note: See TracChangeset
for help on using the changeset viewer.