Changeset 15490 in webkit


Ignore:
Timestamp:
Jul 17, 2006 3:18:27 PM (18 years ago)
Author:
hyatt
Message:

Back out the fix for 5564, since it turns out font:x-small; is a pretty
prominent IE-specific CSS hack. Because Web sites rely on IE's incorrect
font parsing as a means of also correcting IE's incorrect font size rules.

This fixes Yahoo.com.

Reviewed by darin

  • css/cssparser.cpp: (WebCore::CSSParser::parseFont):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r15488 r15490  
     12006-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
    1142006-07-17  Justin Garcia  <justin.garcia@apple.com>
    215
  • trunk/WebCore/css/cssparser.cpp

    r15253 r15490  
    20312031            if (id == CSS_VAL_NORMAL) {
    20322032                // 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) {
    20422034                if (font->style)
    20432035                    goto invalid;
     
    21052097        font->size = new CSSPrimitiveValue(value->fValue, (CSSPrimitiveValue::UnitTypes) value->unit);
    21062098    value = valueList->next();
    2107     if (!font->size || (strict && !value))
     2099    if (!font->size || !value)
    21082100        goto invalid;
    21092101
    2110     if (value && value->unit == Value::Operator && value->iValue == '/') {
     2102    if (value->unit == Value::Operator && value->iValue == '/') {
    21112103        // line-height
    21122104        value = valueList->next();
     
    21302122    font->family = parseFontFamily();
    21312123
    2132     if (!strict && !font->family)
    2133         font->family = new CSSValueList;
    2134     else if (valueList->current() || !font->family)
     2124    if (valueList->current() || !font->family)
    21352125        goto invalid;
    21362126
Note: See TracChangeset for help on using the changeset viewer.