Changeset 175654 in webkit


Ignore:
Timestamp:
Nov 5, 2014 6:16:09 PM (10 years ago)
Author:
Chris Fleizach
Message:

AX: add "alt" as an overriding synonym of "-webkit-alt" (now in the CSS4 spec)
https://bugs.webkit.org/show_bug.cgi?id=138393

Reviewed by Dean Jackson.

Source/WebCore:

Add official "alt" CSS keyword and map -webkit-alt to that.

Test: platform/mac/accessibility/alt-for-css-content.html

  • css/CSSComputedStyleDeclaration.cpp:

(WebCore::ComputedStyleExtractor::propertyValue):

  • css/CSSParser.cpp:

(WebCore::CSSParser::parseValue):

  • css/CSSPropertyNames.in:
  • css/StyleResolver.cpp:

(WebCore::StyleResolver::applyProperty):

LayoutTests:

  • platform/mac/accessibility/alt-for-css-content-expected.txt: Added.
  • platform/mac/accessibility/alt-for-css-content.html: Added.
Location:
trunk
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r175647 r175654  
     12014-11-05  Chris Fleizach  <cfleizach@apple.com>
     2
     3        AX: add "alt" as an overriding synonym of "-webkit-alt" (now in the CSS4 spec)
     4        https://bugs.webkit.org/show_bug.cgi?id=138393
     5
     6        Reviewed by Dean Jackson.
     7
     8        * platform/mac/accessibility/alt-for-css-content-expected.txt: Added.
     9        * platform/mac/accessibility/alt-for-css-content.html: Added.
     10
    1112014-11-05  Dan Bernstein  <mitz@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r175652 r175654  
     12014-11-05  Chris Fleizach  <cfleizach@apple.com>
     2
     3        AX: add "alt" as an overriding synonym of "-webkit-alt" (now in the CSS4 spec)
     4        https://bugs.webkit.org/show_bug.cgi?id=138393
     5
     6        Reviewed by Dean Jackson.
     7
     8        Add official "alt" CSS keyword and map -webkit-alt to that.
     9
     10        Test: platform/mac/accessibility/alt-for-css-content.html
     11
     12        * css/CSSComputedStyleDeclaration.cpp:
     13        (WebCore::ComputedStyleExtractor::propertyValue):
     14        * css/CSSParser.cpp:
     15        (WebCore::CSSParser::parseValue):
     16        * css/CSSPropertyNames.in:
     17        * css/StyleResolver.cpp:
     18        (WebCore::StyleResolver::applyProperty):
     19
    1202014-11-05  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
    221
  • trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp

    r175421 r175654  
    9292// List of all properties we know how to compute, omitting shorthands.
    9393static const CSSPropertyID computedProperties[] = {
     94    CSSPropertyAlt,
    9495    CSSPropertyBackgroundAttachment,
    9596    CSSPropertyBackgroundBlendMode,
     
    225226    CSSPropertyZoom,
    226227
    227     CSSPropertyWebkitAlt,
    228228    CSSPropertyWebkitAnimationDelay,
    229229    CSSPropertyWebkitAnimationDirection,
     
    28412841        case CSSPropertyWebkitLineBoxContain:
    28422842            return createLineBoxContainValue(style->lineBoxContain());
    2843         case CSSPropertyWebkitAlt:
     2843        case CSSPropertyAlt:
    28442844            return altTextToCSSValue(style.get());
    28452845        case CSSPropertyContent:
  • trunk/Source/WebCore/css/CSSParser.cpp

    r175446 r175654  
    18681868        return parseContent(propId, important);
    18691869
    1870     case CSSPropertyWebkitAlt: // [ <string> | attr(X) ]
     1870    case CSSPropertyAlt: // [ <string> | attr(X) ]
    18711871        return parseAlt(propId, important);
    18721872           
  • trunk/Source/WebCore/css/CSSPropertyNames.in

    r175625 r175654  
    257257word-wrap [Inherited, NewStyleBuilder=EOverflowWrap, NameForMethods=OverflowWrap]
    258258z-index
    259 -webkit-alt
     259alt
     260-webkit-alt = alt
    260261-webkit-animation
    261262-webkit-animation-delay
  • trunk/Source/WebCore/css/StyleResolver.cpp

    r175513 r175654  
    22312231            return;
    22322232        }
    2233     case CSSPropertyWebkitAlt:
     2233    case CSSPropertyAlt:
    22342234        {
    22352235            bool didSet = false;
Note: See TracChangeset for help on using the changeset viewer.