Changeset 95242 in webkit


Ignore:
Timestamp:
Sep 15, 2011 4:45:25 PM (13 years ago)
Author:
hyatt@apple.com
Message:

https://bugs.webkit.org/show_bug.cgi?id=27579

Make sure that the border shorthand also resets border-image.

Reviewed by Beth Dakin.

Source/WebCore:

Added fast/borders/border-image-reset-by-border-shorthand.html.

  • css/CSSParser.cpp:

(WebCore::CSSParser::parseValue):

LayoutTests:

  • fast/borders/border-image-reset-by-border-shorthand-expected.txt: Added.
  • fast/borders/border-image-reset-by-border-shorthand.html: Added.
  • fast/borders/border-image-scaled-gradient.html:
Location:
trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r95241 r95242  
     12011-09-15  David Hyatt  <hyatt@apple.com>
     2
     3        https://bugs.webkit.org/show_bug.cgi?id=27579
     4       
     5        Make sure that the border shorthand also resets border-image.
     6
     7        Reviewed by Beth Dakin.
     8
     9        * fast/borders/border-image-reset-by-border-shorthand-expected.txt: Added.
     10        * fast/borders/border-image-reset-by-border-shorthand.html: Added.
     11        * fast/borders/border-image-scaled-gradient.html:
     12
    1132011-09-15  David Levin  <levin@chromium.org>
    214
  • trunk/LayoutTests/fast/borders/border-image-scaled-gradient.html

    r95129 r95242  
    77      width: 300px;
    88      height: 300px;
    9       -webkit-border-image: -webkit-linear-gradient(30deg, black, white) 1 repeat;
     9      border: 2px solid red;
    1010      border-image: -webkit-linear-gradient(30deg, black, white) 1 fill repeat;
    11       border: 2px solid red;
    1211    }
    1312     
  • trunk/Source/WebCore/ChangeLog

    r95239 r95242  
     12011-09-15  David Hyatt  <hyatt@apple.com>
     2
     3        https://bugs.webkit.org/show_bug.cgi?id=27579
     4       
     5        Make sure that the border shorthand also resets border-image.
     6
     7        Reviewed by Beth Dakin.
     8
     9        Added fast/borders/border-image-reset-by-border-shorthand.html.
     10
     11        * css/CSSParser.cpp:
     12        (WebCore::CSSParser::parseValue):
     13
    1142011-09-15  David Hyatt  <hyatt@apple.com>
    215
  • trunk/Source/WebCore/css/CSSParser.cpp

    r95099 r95242  
    19661966        const int properties[3] = { CSSPropertyBorderWidth, CSSPropertyBorderStyle,
    19671967                                    CSSPropertyBorderColor };
    1968         return parseShorthand(propId, properties, 3, important);
     1968        if (parseShorthand(propId, properties, 3, important)) {
     1969            // The CSS3 Borders and Backgrounds specification says that border also resets border-image. It's as
     1970            // though a value of none was specified for the image.
     1971            addProperty(CSSPropertyBorderImage, CSSInitialValue::createImplicit(), important);
     1972            return true;
     1973        }
     1974        return false;
    19691975    }
    19701976    case CSSPropertyBorderTop:
Note: See TracChangeset for help on using the changeset viewer.