Changeset 106251 in webkit
- Timestamp:
- Jan 30, 2012 9:31:52 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r106250 r106251 1 2012-01-30 Parag Radke <nrqv63@motorola.com> 2 3 REGRESSION (r82580): Reproducible crash in CSSPrimitiveValue::computeLengthDouble 4 https://bugs.webkit.org/show_bug.cgi?id=61989 5 6 Reviewed by Simon Fraser. 7 8 Added a test case to check rems unit (css3) with html property display:none. 9 10 * fast/css/fontsize-unit-rems-crash-expected.txt: Added. 11 * fast/css/fontsize-unit-rems-crash.html: Added. 12 1 13 2012-01-26 Jocelyn Turcotte <jocelyn.turcotte@nokia.com> 2 14 -
trunk/Source/WebCore/ChangeLog
r106250 r106251 1 2012-01-30 Parag Radke <nrqv63@motorola.com> 2 3 REGRESSION (r82580): Reproducible crash in CSSPrimitiveValue::computeLengthDouble 4 https://bugs.webkit.org/show_bug.cgi?id=61989 5 6 Reviewed by Simon Fraser. 7 8 According to css3 specs when font-size is specified in 'rems' for an element implies the font-size 9 of the root element. In this case as HTML element has a property 'display:none' and hence renderer 10 is NULL causes this crash. 11 12 Test: fast/css/fontsize-unit-rems-crash.html 13 14 * css/CSSPrimitiveValue.cpp: 15 (WebCore::CSSPrimitiveValue::computeLengthDouble): 16 Added a null check for the root element's RenderStyle as it can be null in case of html has a property 17 hidden or display:none. 18 1 19 2012-01-26 Jocelyn Turcotte <jocelyn.turcotte@nokia.com> 2 20 -
trunk/Source/WebCore/css/CSSPrimitiveValue.cpp
r105678 r106251 417 417 case CSS_REMS: 418 418 applyZoomMultiplier = false; 419 factor = computingFontSize ? rootStyle->fontDescription().specifiedSize() : rootStyle->fontDescription().computedSize(); 419 if (rootStyle) 420 factor = computingFontSize ? rootStyle->fontDescription().specifiedSize() : rootStyle->fontDescription().computedSize(); 420 421 break; 421 422 case CSS_PX:
Note: See TracChangeset
for help on using the changeset viewer.