Changeset 78469 in webkit


Ignore:
Timestamp:
Feb 14, 2011 5:13:49 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-02-14 Kenichi Ishibashi <bashi@chromium.org>

Reviewed by Andreas Kling.

css style="max-width:none" works wrong
https://bugs.webkit.org/show_bug.cgi?id=53743

Adds a test to ensure style 'max-width: none' works correctly.

  • fast/css/max-width-none-expected.txt: Added.
  • fast/css/max-width-none.html: Added.

2011-02-14 Kenichi Ishibashi <bashi@chromium.org>

Reviewed by Andreas Kling.

css style="max-width:none" works wrong
https://bugs.webkit.org/show_bug.cgi?id=53743

Fix a bug that "max-width:none" works wrong.
See also: http://trac.webkit.org/changeset/13462

Test: fast/css/max-width-none.html

  • css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::applyProperty): For max-width of none, set it to Length(undefinedLength, Fixed), which is the correct value.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r78466 r78469  
     12011-02-14  Kenichi Ishibashi  <bashi@chromium.org>
     2
     3        Reviewed by Andreas Kling.
     4
     5        css style="max-width:none" works wrong
     6        https://bugs.webkit.org/show_bug.cgi?id=53743
     7
     8        Adds a test to ensure style 'max-width: none' works correctly.
     9
     10        * fast/css/max-width-none-expected.txt: Added.
     11        * fast/css/max-width-none.html: Added.
     12
    1132011-02-14  Pavel Feldman  <pfeldman@chromium.org>
    214
  • trunk/Source/WebCore/ChangeLog

    r78468 r78469  
     12011-02-14  Kenichi Ishibashi  <bashi@chromium.org>
     2
     3        Reviewed by Andreas Kling.
     4
     5        css style="max-width:none" works wrong
     6        https://bugs.webkit.org/show_bug.cgi?id=53743
     7
     8        Fix a bug that "max-width:none" works wrong.
     9        See also: http://trac.webkit.org/changeset/13462
     10
     11        Test: fast/css/max-width-none.html
     12
     13        * css/CSSStyleSelector.cpp:
     14        (WebCore::CSSStyleSelector::applyProperty): For max-width of none,
     15        set it to Length(undefinedLength, Fixed), which is the correct
     16        value.
     17
    1182011-02-14  Antti Koivisto  <antti@apple.com>
    219
  • trunk/Source/WebCore/css/CSSStyleSelector.cpp

    r78457 r78469  
    41604160    case CSSPropertyMaxWidth:
    41614161        // +none +inherit
    4162         if (primitiveValue && primitiveValue->getIdent() == CSSValueNone)
     4162        if (primitiveValue && primitiveValue->getIdent() == CSSValueNone) {
     4163            l = Length(undefinedLength, Fixed);
    41634164            apply = true;
     4165        }
    41644166    case CSSPropertyTop:
    41654167    case CSSPropertyLeft:
Note: See TracChangeset for help on using the changeset viewer.