Changeset 35879 in webkit
- Timestamp:
- Aug 21, 2008 4:35:23 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r35862 r35879 1 2008-08-21 Chris Marrin <cmarrin@apple.com> 2 3 Allow 0 (without units) for Time eg. duration 4 Fix for https://bugs.webkit.org/show_bug.cgi?id=20467 5 6 Reviewed by Dave Hyatt. 7 8 * css1/units/zero-duration-without-units-expected.txt: Added. 9 * css1/units/zero-duration-without-units.html: Added. 10 1 11 2008-08-20 Simon Fraser <simon.fraser@apple.com> 2 12 -
trunk/WebCore/ChangeLog
r35878 r35879 1 2008-08-21 Chris Marrin <cmarrin@apple.com> 2 3 Allow 0 (without units) for Time eg. duration 4 Fix for https://bugs.webkit.org/show_bug.cgi?id=20467 5 6 Reviewed by Dave Hyatt. 7 8 Test: css1/units/zero-duration-without-units.html 9 10 * css/CSSParser.cpp: 11 (WebCore::CSSParser::validUnit): 12 1 13 2008-08-21 Timothy Hatcher <timothy@apple.com> 2 14 -
trunk/WebCore/css/CSSParser.cpp
r35580 r35879 409 409 case CSSPrimitiveValue::CSS_NUMBER: 410 410 b = (unitflags & FNumber); 411 if (!b && ((unitflags & (FLength | FAngle)) && (value->fValue == 0 || !strict))) { 412 value->unit = (unitflags & FLength) ? CSSPrimitiveValue::CSS_PX : CSSPrimitiveValue::CSS_DEG; 411 if (!b && ((unitflags & (FLength | FAngle | FTime)) && (value->fValue == 0 || !strict))) { 412 value->unit = (unitflags & FLength) ? CSSPrimitiveValue::CSS_PX : 413 ((unitflags & FAngle) ? CSSPrimitiveValue::CSS_DEG : CSSPrimitiveValue::CSS_S); 413 414 b = true; 414 415 }
Note: See TracChangeset
for help on using the changeset viewer.