Changeset 176458 in webkit
- Timestamp:
- Nov 21, 2014, 11:48:21 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/css/transition-delay-calculated-value-expected.txt (added)
-
LayoutTests/fast/css/transition-delay-calculated-value.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/css/CSSPrimitiveValue.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r176456 r176458 1 2014-11-21 Chris Dumez <cdumez@apple.com> 2 3 Crash when setting 'transition-delay' CSS property to a calculated value 4 https://bugs.webkit.org/show_bug.cgi?id=138784 5 6 Reviewed by Sam Weinig. 7 8 Add a layout test to check that setting the 'transition-delay' CSS 9 property to a calculated value does not crash and works as intended. 10 11 * fast/css/transition-delay-calculated-value-expected.txt: Added. 12 * fast/css/transition-delay-calculated-value.html: Added. 13 1 14 2014-11-20 Roger Fong <roger_fong@apple.com> 2 15 -
trunk/Source/WebCore/ChangeLog
r176455 r176458 1 2014-11-21 Chris Dumez <cdumez@apple.com> 2 3 Crash when setting 'transition-delay' CSS property to a calculated value 4 https://bugs.webkit.org/show_bug.cgi?id=138784 5 6 Reviewed by Sam Weinig. 7 8 Update CSSPrimitiveValue::computeTime() to use primitiveType() instead 9 of m_primitiveUnitType so that it properly handles calculated values. 10 Without this, we would hit the ASSERT_NOT_REACHED() assertion in 11 computeTime() for calculated values. 12 13 Test: fast/css/transition-delay-calculated-value.html 14 15 * css/CSSPrimitiveValue.h: 16 (WebCore::CSSPrimitiveValue::computeTime): 17 1 18 2014-11-21 Chris Dumez <cdumez@apple.com> 2 19 -
trunk/Source/WebCore/css/CSSPrimitiveValue.h
r175197 r176458 260 260 template <typename T, TimeUnit timeUnit> T computeTime() 261 261 { 262 if (timeUnit == Seconds && m_primitiveUnitType== CSS_S)262 if (timeUnit == Seconds && primitiveType() == CSS_S) 263 263 return getValue<T>(); 264 if (timeUnit == Seconds && m_primitiveUnitType== CSS_MS)264 if (timeUnit == Seconds && primitiveType() == CSS_MS) 265 265 return getValue<T>() / 1000; 266 if (timeUnit == Milliseconds && m_primitiveUnitType== CSS_MS)266 if (timeUnit == Milliseconds && primitiveType() == CSS_MS) 267 267 return getValue<T>(); 268 if (timeUnit == Milliseconds && m_primitiveUnitType== CSS_S)268 if (timeUnit == Milliseconds && primitiveType() == CSS_S) 269 269 return getValue<T>() * 1000; 270 270 ASSERT_NOT_REACHED();
Note:
See TracChangeset
for help on using the changeset viewer.