Changeset 15490 in webkit
- Timestamp:
- Jul 17, 2006 3:18:27 PM (18 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r15488 r15490 1 2006-07-17 David Hyatt <hyatt@apple.com> 2 3 Back out the fix for 5564, since it turns out font:x-small; is a pretty 4 prominent IE-specific CSS hack. Because Web sites rely on IE's incorrect 5 font parsing as a means of also correcting IE's incorrect font size rules. 6 7 This fixes Yahoo.com. 8 9 Reviewed by darin 10 11 * css/cssparser.cpp: 12 (WebCore::CSSParser::parseFont): 13 1 14 2006-07-17 Justin Garcia <justin.garcia@apple.com> 2 15 -
trunk/WebCore/css/cssparser.cpp
r15253 r15490 2031 2031 if (id == CSS_VAL_NORMAL) { 2032 2032 // do nothing, it's the inital value for all three 2033 } 2034 /* 2035 else if (id == CSS_VAL_INHERIT) { 2036 // set all non set ones to inherit 2037 // This is not that simple as the inherit could also apply to the following font-size. 2038 // very ahrd to tell without looking ahead. 2039 inherit = true; 2040 } */ 2041 else if (id == CSS_VAL_ITALIC || id == CSS_VAL_OBLIQUE) { 2033 } else if (id == CSS_VAL_ITALIC || id == CSS_VAL_OBLIQUE) { 2042 2034 if (font->style) 2043 2035 goto invalid; … … 2105 2097 font->size = new CSSPrimitiveValue(value->fValue, (CSSPrimitiveValue::UnitTypes) value->unit); 2106 2098 value = valueList->next(); 2107 if (!font->size || (strict && !value))2099 if (!font->size || !value) 2108 2100 goto invalid; 2109 2101 2110 if (value && value->unit == Value::Operator && value->iValue == '/') {2102 if (value->unit == Value::Operator && value->iValue == '/') { 2111 2103 // line-height 2112 2104 value = valueList->next(); … … 2130 2122 font->family = parseFontFamily(); 2131 2123 2132 if (!strict && !font->family) 2133 font->family = new CSSValueList; 2134 else if (valueList->current() || !font->family) 2124 if (valueList->current() || !font->family) 2135 2125 goto invalid; 2136 2126
Note: See TracChangeset
for help on using the changeset viewer.