Show
Ignore:
Timestamp:
01/26/07 18:13:39 (2 years ago)
Author:
weinig
Message:

LayoutTests:

Reviewed by Beth.

  • updated test results for change to computed style
  • editing/pasteboard/paste-table-002-expected.txt: Updated for change to order of style properties.
  • fast/css/computed-style-expected.txt: Updated for change to order of style properties and to add new ones.

WebCore:

Reviewed by Beth.

Covered by fast/css/computed-style.html

  • css/CSSPropertyNames.in: Sorted the file into two separate sections, one for properties without the -webkit- prefix and another for properties with.
  • css/makeprop: Generate a CSSPropertyID enum instead of a set of #defines. Removed unused CSS_PROP_MIN and CSS_PROP_MAX. Renamed CSS_PROP_TOTAL to numCSSProperties and changed it to a const int instead of #define. Added a declaration of getPropertyName in the header. Changed the return type of getPropertyName to const char* and the parameter type to CSSPropertyID.
  • css/CSSComputedStyleDeclaration.cpp: Sort the lists of properties in an easier to maintain order -- properties without a WebKit prefix first. (WebCore::valueForLength): Changed return value to PassRefPtr. (WebCore::valueForMaxLength): Ditto. (WebCore::valueForBorderStyle): Ditto. (WebCore::valueForTextAlign): Ditto. (WebCore::valueForAppearance): Added. (WebCore::valueForMarginCollapse): Added. (WebCore::valueForShadow): Changed return value to PassRefPtr. (WebCore::getPositionOffsetValue): Ditto. (WebCore::currentColorOrValidColor): Ditto. (WebCore::CSSComputedStyleDeclaration::cssText): Added cast since getPropertyName now takes an enum value. (WebCore::primitiveValueFromLength): Changed return value to PassRefPtr. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Added cast to CSSPropertyID so that gcc will detect missing enums in the switch statement. Simplified the background-size and border-spacing implementations so they don't have local variables. Added lots of cases to the switch statement for unimplemented properties. Implemented the outline-width, box-sizing, -webkit-appearance, -webkit-rtl-ordering, -webkit-user-drag, and -webkit-user-select properties. (WebCore::CSSComputedStyleDeclaration::item): Added cast since getPropertyName now takes an enum value.
  • css/CSSMutableStyleDeclaration.cpp: Removed declaration of getPropertyName. (WebCore::CSSMutableStyleDeclaration::item): Added cast since getPropertyName now takes an enum value.
  • css/CSSProperty.cpp: Removed declaration of getPropertyName. (WebCore::CSSProperty::cssText): Added cast since getPropertyName now takes an enum value and returns a const char*.
  • css/CSSStyleDeclaration.cpp: Removed declaration of getPropertyName. (WebCore::CSSStyleDeclaration::getPropertyShorthand): Added cast since getPropertyName now takes an enum value and returns a const char*.

WebKit:

Reviewed by Beth.

  • WebInspector/webInspector/inspector.js: Updated for new computed style properties.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/css/CSSPropertyNames.in

    r18660 r19175  
    22# CSS property names 
    33# 
    4 # Some properties are used in khtml, but are not part of CSS. They are used to get 
     4# Some properties are used internally, but are not part of CSS. They are used to get 
    55# HTML4 compatibilty in the rendering engine. 
    66# 
     
    88# http://msdn.microsoft.com/workshop/author/css/reference/attributes.asp 
    99# 
    10 -webkit-appearance 
     10 
     11background 
    1112background-attachment 
    12 -webkit-background-clip 
    1313background-color 
    14 -webkit-background-composite 
    1514background-image 
    16 -webkit-background-origin 
    1715background-position 
    1816background-position-x 
    1917background-position-y 
    2018background-repeat 
    21 -webkit-background-size 
    22 -webkit-binding 
     19border 
     20border-bottom 
     21border-bottom-color 
     22border-bottom-style 
     23border-bottom-width 
    2324border-collapse 
    24 -webkit-border-image 
     25border-color 
     26border-left 
     27border-left-color 
     28border-left-style 
     29border-left-width 
     30border-right 
     31border-right-color 
     32border-right-style 
     33border-right-width 
    2534border-spacing 
    26 -webkit-border-horizontal-spacing 
    27 -webkit-border-vertical-spacing 
    28 -webkit-border-radius 
    29 -webkit-border-top-left-radius 
    30 -webkit-border-top-right-radius 
    31 -webkit-border-bottom-left-radius 
    32 -webkit-border-bottom-right-radius 
     35border-style 
     36border-top 
    3337border-top-color 
    34 border-right-color 
    35 border-bottom-color 
    36 border-left-color 
    3738border-top-style 
    38 border-right-style 
    39 border-bottom-style 
    40 border-left-style 
    4139border-top-width 
    42 border-right-width 
    43 border-bottom-width 
    44 border-left-width 
     40border-width 
    4541bottom 
    46 -webkit-box-align 
    47 -webkit-box-direction 
    48 -webkit-box-flex 
    49 -webkit-box-flex-group 
    50 -webkit-box-lines 
    51 -webkit-box-ordinal-group 
    52 -webkit-box-orient 
    53 -webkit-box-pack 
    54 -webkit-box-shadow 
    5542box-sizing 
    5643caption-side 
     
    5845clip 
    5946color 
    60 -webkit-column-break-after 
    61 -webkit-column-break-before 
    62 -webkit-column-break-inside 
    63 -webkit-column-count 
    64 -webkit-column-gap 
    65 -webkit-column-rule-color 
    66 -webkit-column-rule-style 
    67 -webkit-column-rule-width 
    68 -webkit-column-rule 
    69 -webkit-column-width 
    70 -webkit-columns 
    7147content 
    7248counter-increment 
     
    7753empty-cells 
    7854float 
     55font 
    7956font-family 
    8057font-size 
    81 -webkit-font-size-delta 
    8258font-stretch 
    8359font-style 
     
    8561font-weight 
    8662height 
    87 -webkit-highlight 
    8863left 
    8964letter-spacing 
    90 -webkit-line-clamp 
    9165line-height 
     66list-style 
    9267list-style-image 
    9368list-style-position 
    9469list-style-type 
    95 margin-top 
    96 margin-right 
     70margin 
    9771margin-bottom 
    9872margin-left 
    99 -webkit-line-break 
    100 -webkit-margin-collapse 
    101 -webkit-margin-top-collapse 
    102 -webkit-margin-bottom-collapse 
    103 -webkit-margin-start 
    104 -webkit-marquee 
    105 -webkit-marquee-direction 
    106 -webkit-marquee-increment 
    107 -webkit-marquee-repetition 
    108 -webkit-marquee-speed 
    109 -webkit-marquee-style 
    110 -webkit-match-nearest-mail-blockquote-color 
     73margin-right 
     74margin-top 
    11175max-height 
    11276max-width 
    11377min-height 
    11478min-width 
    115 -webkit-nbsp-mode 
    11679opacity 
    11780orphans 
     81outline 
    11882outline-color 
    11983outline-offset 
     
    12387overflow-x 
    12488overflow-y 
    125 padding-top 
    126 padding-right 
     89padding 
    12790padding-bottom 
    12891padding-left 
    129 -webkit-padding-start 
     92padding-right 
     93padding-top 
    13094page 
    13195page-break-after 
     
    13498position 
    13599quotes 
     100resize 
    136101right 
     102scrollbar-3dlight-color 
     103scrollbar-arrow-color 
     104scrollbar-darkshadow-color 
     105scrollbar-face-color 
     106scrollbar-highlight-color 
     107scrollbar-shadow-color 
     108scrollbar-track-color 
    137109size 
    138110table-layout 
    139111text-align 
    140112text-decoration 
    141 -webkit-text-fill-color 
    142113text-indent 
    143114text-line-through 
     
    152123text-overline-style 
    153124text-overline-width 
    154 -webkit-text-security 
    155125text-shadow 
    156 -webkit-text-stroke 
    157 -webkit-text-stroke-color 
    158 -webkit-text-stroke-width 
    159126text-transform 
    160127text-underline 
     
    163130text-underline-style 
    164131text-underline-width 
    165 resize 
    166 -webkit-text-size-adjust 
    167 -webkit-dashboard-region 
    168132top 
    169133unicode-bidi 
    170 -webkit-user-drag 
    171 -webkit-user-modify 
    172 -webkit-user-select 
    173134vertical-align 
    174135visibility 
     
    176137widows 
    177138width 
     139word-spacing 
    178140word-wrap 
    179 word-spacing 
    180141z-index 
    181 background 
    182 border 
    183 border-color 
    184 border-style 
    185 border-top 
    186 border-right 
    187 border-bottom 
    188 border-left 
    189 border-width 
    190 font 
    191 list-style 
    192 margin 
    193 outline 
    194 padding 
    195 scrollbar-face-color 
    196 scrollbar-shadow-color 
    197 scrollbar-highlight-color 
    198 scrollbar-3dlight-color 
    199 scrollbar-darkshadow-color 
    200 scrollbar-track-color 
    201 scrollbar-arrow-color 
     142 
     143-webkit-appearance 
     144-webkit-background-clip 
     145-webkit-background-composite 
     146-webkit-background-origin 
     147-webkit-background-size 
     148-webkit-binding 
     149-webkit-border-bottom-left-radius 
     150-webkit-border-bottom-right-radius 
     151-webkit-border-horizontal-spacing 
     152-webkit-border-image 
     153-webkit-border-radius 
     154-webkit-border-top-left-radius 
     155-webkit-border-top-right-radius 
     156-webkit-border-vertical-spacing 
     157-webkit-box-align 
     158-webkit-box-direction 
     159-webkit-box-flex 
     160-webkit-box-flex-group 
     161-webkit-box-lines 
     162-webkit-box-ordinal-group 
     163-webkit-box-orient 
     164-webkit-box-pack 
     165-webkit-box-shadow 
     166-webkit-column-break-after 
     167-webkit-column-break-before 
     168-webkit-column-break-inside 
     169-webkit-column-count 
     170-webkit-column-gap 
     171-webkit-column-rule 
     172-webkit-column-rule-color 
     173-webkit-column-rule-style 
     174-webkit-column-rule-width 
     175-webkit-column-width 
     176-webkit-columns 
     177-webkit-dashboard-region 
     178-webkit-font-size-delta 
     179-webkit-highlight 
     180-webkit-line-break 
     181-webkit-line-clamp 
     182-webkit-margin-bottom-collapse 
     183-webkit-margin-collapse 
     184-webkit-margin-start 
     185-webkit-margin-top-collapse 
     186-webkit-marquee 
     187-webkit-marquee-direction 
     188-webkit-marquee-increment 
     189-webkit-marquee-repetition 
     190-webkit-marquee-speed 
     191-webkit-marquee-style 
     192-webkit-match-nearest-mail-blockquote-color 
     193-webkit-nbsp-mode 
     194-webkit-padding-start 
     195-webkit-rtl-ordering 
    202196-webkit-text-decorations-in-effect 
    203 -webkit-rtl-ordering 
     197-webkit-text-fill-color 
     198-webkit-text-security 
     199-webkit-text-size-adjust 
     200-webkit-text-stroke 
     201-webkit-text-stroke-color 
     202-webkit-text-stroke-width 
     203-webkit-user-drag 
     204-webkit-user-modify 
     205-webkit-user-select