Changeset 115953 in webkit
- Timestamp:
- May 3, 2012 3:02:54 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r115947 r115953 1 2012-05-03 Uday Kiran <udaykiran@motorola.com> 2 3 CSS clip: auto clips to box borders instead of removing clipping 4 https://bugs.webkit.org/show_bug.cgi?id=36772 5 6 Reviewed by Andreas Kling. 7 8 CSS 2.1 test case added for clip:auto 9 10 * css2.1/20110323/clip-001-expected.html: Added. 11 * css2.1/20110323/clip-001.html: Added. 12 * fast/css/getPropertyValue-clip.html: getPropertyValue for clip when auto is specified should return auto and not rect(0px 0px 0px 0px). 13 1 14 2012-05-03 Nikolas Zimmermann <nzimmermann@rim.com> 2 15 -
trunk/LayoutTests/fast/css/getPropertyValue-clip.html
r33513 r115953 20 20 } 21 21 div = document.getElementById("clip2"); 22 if (getComputedStyle(div,'').getPropertyValue("clip") != " rect(0px 0px 0px 0px)") {22 if (getComputedStyle(div,'').getPropertyValue("clip") != "auto") { 23 23 log("FAILED"); 24 24 return; -
trunk/Source/WebCore/ChangeLog
r115951 r115953 1 2012-05-03 Uday Kiran <udaykiran@motorola.com> 2 3 CSS clip: auto clips to box borders instead of removing clipping 4 https://bugs.webkit.org/show_bug.cgi?id=36772 5 6 Reviewed by Andreas Kling. 7 8 According to CSS 2.1 spec, http://www.w3.org/TR/CSS2/visufx.html#propdef-clip, 9 clip property with value 'auto' the element does not clip. 10 Also getPropertyValue for clip when auto is specified should return "auto" 11 and not "rect(0px 0px 0px 0px)". 12 13 Tests: css2.1/20110323/clip-001-expected.html 14 css2.1/20110323/clip-001.html 15 16 * css/StyleBuilder.cpp: 17 (WebCore::ApplyPropertyClip::applyValue): 18 1 19 2012-05-02 Antti Koivisto <antti@apple.com> 2 20 -
trunk/Source/WebCore/css/StyleBuilder.cpp
r115215 r115953 256 256 } else if (primitiveValue->getIdent() == CSSValueAuto) { 257 257 styleResolver->style()->setClip(Length(), Length(), Length(), Length()); 258 styleResolver->style()->setHasClip( true);258 styleResolver->style()->setHasClip(false); 259 259 } 260 260 }
Note: See TracChangeset
for help on using the changeset viewer.