Changeset 205392 in webkit
- Timestamp:
- Sep 2, 2016 5:53:39 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r205388 r205392 1 2016-09-02 Zalan Bujtas <zalan@apple.com> 2 3 Should never be reached failure in WebCore::floatValueForLength 4 https://bugs.webkit.org/show_bug.cgi?id=139397 5 <rdar://problem/27704376> 6 7 Reviewed by Simon Fraser. 8 9 * svg/css/assert-on-non-resolvable-dimension-expected.txt: Added. 10 * svg/css/assert-on-non-resolvable-dimension.html: Added. 11 1 12 2016-09-02 Ryan Haddad <ryanhaddad@apple.com> 2 13 -
trunk/Source/WebCore/ChangeLog
r205391 r205392 1 2016-09-02 Zalan Bujtas <zalan@apple.com> 2 3 Should never be reached failure in WebCore::floatValueForLength 4 https://bugs.webkit.org/show_bug.cgi?id=139397 5 <rdar://problem/27704376> 6 7 Reviewed by Simon Fraser. 8 9 floatValueForLength can't resolve unspecified Length types. Filter them out and return 0 as if they were auto. 10 11 Test: svg/css/assert-on-non-resolvable-dimension.html 12 13 * svg/SVGLengthContext.cpp: 14 (WebCore::SVGLengthContext::valueForLength): 15 1 16 2016-09-02 Joseph Pecoraro <pecoraro@apple.com> 2 17 -
trunk/Source/WebCore/svg/SVGLengthContext.cpp
r200098 r205392 92 92 if (length.isPercent()) 93 93 return convertValueFromPercentageToUserUnits(length.value() / 100, mode, IGNORE_EXCEPTION); 94 if (length.isAuto() )94 if (length.isAuto() || !length.isSpecified()) 95 95 return 0; 96 96
Note: See TracChangeset
for help on using the changeset viewer.