Changeset 72685 in webkit
- Timestamp:
- Nov 24, 2010, 10:13:25 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/css/local_font_invalid-expected.txt (added)
-
LayoutTests/fast/css/local_font_invalid.html (added)
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/css/CSSParser.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r72683 r72685 1 2010-11-24 Cris Neckar <cdn@chromium.org> 2 3 Reviewed by Adam Barth. 4 5 Test for crash with invalid local fonts. 6 https://bugs.webkit.org/show_bug.cgi?id=49883 7 8 * fast/css/local_font_invalid-expected.txt: Added. 9 * fast/css/local_font_invalid.html: Added. 10 1 11 2010-11-24 Andrey Kosyakov <caseq@chromium.org> 2 12 -
trunk/WebCore/ChangeLog
r72684 r72685 1 2010-11-24 Cris Neckar <cdn@chromium.org> 2 3 Reviewed by Adam Barth. 4 5 Added check when parsing local fonts to ensure that a value's unit type is either string or ident. 6 https://bugs.webkit.org/show_bug.cgi?id=49883 7 8 Test: fast/css/local_font_invalid.html 9 10 * css/CSSParser.cpp: 11 (WebCore::CSSParser::parseFontFaceSrc): 12 1 13 2010-11-24 Pavel Feldman <pfeldman@chromium.org> 2 14 -
trunk/WebCore/css/CSSParser.cpp
r72500 r72685 3631 3631 CSSParserValueList* args = val->function->args.get(); 3632 3632 if (args && args->size() == 1) { 3633 if (equalIgnoringCase(val->function->name, "local(") && !expectComma ) {3633 if (equalIgnoringCase(val->function->name, "local(") && !expectComma && (args->current()->unit == CSSPrimitiveValue::CSS_STRING || args->current()->unit == CSSPrimitiveValue::CSS_IDENT)) { 3634 3634 expectComma = true; 3635 3635 allowFormat = false;
Note:
See TracChangeset
for help on using the changeset viewer.