Home | History | Annotate | Download | only in objc
      1 /*
      2  * Copyright (C) 2004, 2005, 2006, 2009 Apple Inc. All rights reserved.
      3  * Copyright (C) 2006 James G. Speth (speth (at) end.com)
      4  * Copyright (C) 2006 Samuel Weinig (sam.weinig (at) gmail.com)
      5  *
      6  * Redistribution and use in source and binary forms, with or without
      7  * modification, are permitted provided that the following conditions
      8  * are met:
      9  * 1. Redistributions of source code must retain the above copyright
     10  *    notice, this list of conditions and the following disclaimer.
     11  * 2. Redistributions in binary form must reproduce the above copyright
     12  *    notice, this list of conditions and the following disclaimer in the
     13  *    documentation and/or other materials provided with the distribution.
     14  *
     15  * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
     16  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     17  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     18  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
     19  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
     20  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
     21  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
     22  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
     23  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     24  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
     25  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     26  */
     27 
     28 #import "config.h"
     29 
     30 #import "CSSRule.h"
     31 #import "CSSValue.h"
     32 #import "DOMCSSCharsetRule.h"
     33 #import "DOMCSSFontFaceRule.h"
     34 #import "DOMCSSImportRule.h"
     35 #import "DOMCSSMediaRule.h"
     36 #import "DOMCSSPageRule.h"
     37 #import "DOMCSSPrimitiveValue.h"
     38 #import "DOMCSSRuleInternal.h"
     39 #import "DOMCSSStyleDeclaration.h"
     40 #import "DOMCSSStyleRule.h"
     41 #import "DOMCSSStyleSheet.h"
     42 #import "DOMCSSUnknownRule.h"
     43 #import "DOMCSSValueInternal.h"
     44 #import "DOMCSSValueList.h"
     45 #import "DOMInternal.h"
     46 #import "DOMStyleSheetInternal.h"
     47 #import "DOMWebKitCSSKeyframeRule.h"
     48 #import "DOMWebKitCSSKeyframesRule.h"
     49 #import "DOMWebKitCSSTransformValue.h"
     50 
     51 #if ENABLE(SVG_DOM_OBJC_BINDINGS)
     52 #import "DOMSVGPaint.h"
     53 #endif
     54 
     55 //------------------------------------------------------------------------------------------
     56 // DOMStyleSheet
     57 
     58 Class kitClass(WebCore::StyleSheet* impl)
     59 {
     60     if (impl->isCSSStyleSheet())
     61         return [DOMCSSStyleSheet class];
     62     return [DOMStyleSheet class];
     63 }
     64 
     65 //------------------------------------------------------------------------------------------
     66 // DOMCSSRule
     67 
     68 Class kitClass(WebCore::CSSRule* impl)
     69 {
     70     switch (impl->type()) {
     71         case DOM_UNKNOWN_RULE:
     72             return [DOMCSSUnknownRule class];
     73         case DOM_STYLE_RULE:
     74             return [DOMCSSStyleRule class];
     75         case DOM_CHARSET_RULE:
     76             return [DOMCSSCharsetRule class];
     77         case DOM_IMPORT_RULE:
     78             return [DOMCSSImportRule class];
     79         case DOM_MEDIA_RULE:
     80             return [DOMCSSMediaRule class];
     81         case DOM_FONT_FACE_RULE:
     82             return [DOMCSSFontFaceRule class];
     83         case DOM_PAGE_RULE:
     84             return [DOMCSSPageRule class];
     85         case DOM_WEBKIT_KEYFRAMES_RULE:
     86             return [DOMWebKitCSSKeyframesRule class];
     87         case DOM_WEBKIT_KEYFRAME_RULE:
     88             return [DOMWebKitCSSKeyframeRule class];
     89     }
     90     ASSERT_NOT_REACHED();
     91     return nil;
     92 }
     93 
     94 //------------------------------------------------------------------------------------------
     95 // DOMCSSValue
     96 
     97 Class kitClass(WebCore::CSSValue* impl)
     98 {
     99     switch (impl->cssValueType()) {
    100         case WebCore::CSSValue::CSS_PRIMITIVE_VALUE:
    101             return [DOMCSSPrimitiveValue class];
    102         case WebCore::CSSValue::CSS_VALUE_LIST:
    103             if (impl->isWebKitCSSTransformValue())
    104                 return [DOMWebKitCSSTransformValue class];
    105             return [DOMCSSValueList class];
    106         case WebCore::CSSValue::CSS_INHERIT:
    107         case WebCore::CSSValue::CSS_INITIAL:
    108             return [DOMCSSValue class];
    109         case WebCore::CSSValue::CSS_CUSTOM:
    110 #if ENABLE(SVG_DOM_OBJC_BINDINGS)
    111             if (impl->isSVGPaint())
    112                 return [DOMSVGPaint class];
    113             if (impl->isSVGColor())
    114                 return [DOMSVGColor class];
    115 #endif
    116             return [DOMCSSValue class];
    117     }
    118     ASSERT_NOT_REACHED();
    119     return nil;
    120 }
    121 
    122 //------------------------------------------------------------------------------------------
    123 // DOMCSSStyleDeclaration CSS2 Properties
    124 
    125 @implementation DOMCSSStyleDeclaration (DOMCSS2Properties)
    126 
    127 - (NSString *)azimuth
    128 {
    129     return [self getPropertyValue:@"azimuth"];
    130 }
    131 
    132 - (void)setAzimuth:(NSString *)azimuth
    133 {
    134     [self setProperty:@"azimuth" value:azimuth priority:@""];
    135 }
    136 
    137 - (NSString *)background
    138 {
    139     return [self getPropertyValue:@"background"];
    140 }
    141 
    142 - (void)setBackground:(NSString *)background
    143 {
    144     [self setProperty:@"background" value:background priority:@""];
    145 }
    146 
    147 - (NSString *)backgroundAttachment
    148 {
    149     return [self getPropertyValue:@"background-attachment"];
    150 }
    151 
    152 - (void)setBackgroundAttachment:(NSString *)backgroundAttachment
    153 {
    154     [self setProperty:@"background-attachment" value:backgroundAttachment priority:@""];
    155 }
    156 
    157 - (NSString *)backgroundColor
    158 {
    159     return [self getPropertyValue:@"background-color"];
    160 }
    161 
    162 - (void)setBackgroundColor:(NSString *)backgroundColor
    163 {
    164     [self setProperty:@"background-color" value:backgroundColor priority:@""];
    165 }
    166 
    167 - (NSString *)backgroundImage
    168 {
    169     return [self getPropertyValue:@"background-image"];
    170 }
    171 
    172 - (void)setBackgroundImage:(NSString *)backgroundImage
    173 {
    174     [self setProperty:@"background-image" value:backgroundImage priority:@""];
    175 }
    176 
    177 - (NSString *)backgroundPosition
    178 {
    179     return [self getPropertyValue:@"background-position"];
    180 }
    181 
    182 - (void)setBackgroundPosition:(NSString *)backgroundPosition
    183 {
    184     [self setProperty:@"background-position" value:backgroundPosition priority:@""];
    185 }
    186 
    187 - (NSString *)backgroundRepeat
    188 {
    189     return [self getPropertyValue:@"background-repeat"];
    190 }
    191 
    192 - (void)setBackgroundRepeat:(NSString *)backgroundRepeat
    193 {
    194     [self setProperty:@"background-repeat" value:backgroundRepeat priority:@""];
    195 }
    196 
    197 - (NSString *)border
    198 {
    199     return [self getPropertyValue:@"border"];
    200 }
    201 
    202 - (void)setBorder:(NSString *)border
    203 {
    204     [self setProperty:@"border" value:border priority:@""];
    205 }
    206 
    207 - (NSString *)borderCollapse
    208 {
    209     return [self getPropertyValue:@"border-collapse"];
    210 }
    211 
    212 - (void)setBorderCollapse:(NSString *)borderCollapse
    213 {
    214     [self setProperty:@"border-collapse" value:borderCollapse priority:@""];
    215 }
    216 
    217 - (NSString *)borderColor
    218 {
    219     return [self getPropertyValue:@"border-color"];
    220 }
    221 
    222 - (void)setBorderColor:(NSString *)borderColor
    223 {
    224     [self setProperty:@"border-color" value:borderColor priority:@""];
    225 }
    226 
    227 - (NSString *)borderSpacing
    228 {
    229     return [self getPropertyValue:@"border-spacing"];
    230 }
    231 
    232 - (void)setBorderSpacing:(NSString *)borderSpacing
    233 {
    234     [self setProperty:@"border-spacing" value:borderSpacing priority:@""];
    235 }
    236 
    237 - (NSString *)borderStyle
    238 {
    239     return [self getPropertyValue:@"border-style"];
    240 }
    241 
    242 - (void)setBorderStyle:(NSString *)borderStyle
    243 {
    244     [self setProperty:@"border-style" value:borderStyle priority:@""];
    245 }
    246 
    247 - (NSString *)borderTop
    248 {
    249     return [self getPropertyValue:@"border-top"];
    250 }
    251 
    252 - (void)setBorderTop:(NSString *)borderTop
    253 {
    254     [self setProperty:@"border-top" value:borderTop priority:@""];
    255 }
    256 
    257 - (NSString *)borderRight
    258 {
    259     return [self getPropertyValue:@"border-right"];
    260 }
    261 
    262 - (void)setBorderRight:(NSString *)borderRight
    263 {
    264     [self setProperty:@"border-right" value:borderRight priority:@""];
    265 }
    266 
    267 - (NSString *)borderBottom
    268 {
    269     return [self getPropertyValue:@"border-bottom"];
    270 }
    271 
    272 - (void)setBorderBottom:(NSString *)borderBottom
    273 {
    274     [self setProperty:@"border-bottom" value:borderBottom priority:@""];
    275 }
    276 
    277 - (NSString *)borderLeft
    278 {
    279     return [self getPropertyValue:@"border-left"];
    280 }
    281 
    282 - (void)setBorderLeft:(NSString *)borderLeft
    283 {
    284     [self setProperty:@"border-left" value:borderLeft priority:@""];
    285 }
    286 
    287 - (NSString *)borderTopColor
    288 {
    289     return [self getPropertyValue:@"border-top-color"];
    290 }
    291 
    292 - (void)setBorderTopColor:(NSString *)borderTopColor
    293 {
    294     [self setProperty:@"border-top-color" value:borderTopColor priority:@""];
    295 }
    296 
    297 - (NSString *)borderRightColor
    298 {
    299     return [self getPropertyValue:@"border-right-color"];
    300 }
    301 
    302 - (void)setBorderRightColor:(NSString *)borderRightColor
    303 {
    304     [self setProperty:@"border-right-color" value:borderRightColor priority:@""];
    305 }
    306 
    307 - (NSString *)borderBottomColor
    308 {
    309     return [self getPropertyValue:@"border-bottom-color"];
    310 }
    311 
    312 - (void)setBorderBottomColor:(NSString *)borderBottomColor
    313 {
    314     [self setProperty:@"border-bottom-color" value:borderBottomColor priority:@""];
    315 }
    316 
    317 - (NSString *)borderLeftColor
    318 {
    319     return [self getPropertyValue:@"border-left-color"];
    320 }
    321 
    322 - (void)setBorderLeftColor:(NSString *)borderLeftColor
    323 {
    324     [self setProperty:@"border-left-color" value:borderLeftColor priority:@""];
    325 }
    326 
    327 - (NSString *)borderTopStyle
    328 {
    329     return [self getPropertyValue:@"border-top-style"];
    330 }
    331 
    332 - (void)setBorderTopStyle:(NSString *)borderTopStyle
    333 {
    334     [self setProperty:@"border-top-style" value:borderTopStyle priority:@""];
    335 }
    336 
    337 - (NSString *)borderRightStyle
    338 {
    339     return [self getPropertyValue:@"border-right-style"];
    340 }
    341 
    342 - (void)setBorderRightStyle:(NSString *)borderRightStyle
    343 {
    344     [self setProperty:@"border-right-style" value:borderRightStyle priority:@""];
    345 }
    346 
    347 - (NSString *)borderBottomStyle
    348 {
    349     return [self getPropertyValue:@"border-bottom-style"];
    350 }
    351 
    352 - (void)setBorderBottomStyle:(NSString *)borderBottomStyle
    353 {
    354     [self setProperty:@"border-bottom-style" value:borderBottomStyle priority:@""];
    355 }
    356 
    357 - (NSString *)borderLeftStyle
    358 {
    359     return [self getPropertyValue:@"border-left-style"];
    360 }
    361 
    362 - (void)setBorderLeftStyle:(NSString *)borderLeftStyle
    363 {
    364     [self setProperty:@"border-left-style" value:borderLeftStyle priority:@""];
    365 }
    366 
    367 - (NSString *)borderTopWidth
    368 {
    369     return [self getPropertyValue:@"border-top-width"];
    370 }
    371 
    372 - (void)setBorderTopWidth:(NSString *)borderTopWidth
    373 {
    374     [self setProperty:@"border-top-width" value:borderTopWidth priority:@""];
    375 }
    376 
    377 - (NSString *)borderRightWidth
    378 {
    379     return [self getPropertyValue:@"border-right-width"];
    380 }
    381 
    382 - (void)setBorderRightWidth:(NSString *)borderRightWidth
    383 {
    384     [self setProperty:@"border-right-width" value:borderRightWidth priority:@""];
    385 }
    386 
    387 - (NSString *)borderBottomWidth
    388 {
    389     return [self getPropertyValue:@"border-bottom-width"];
    390 }
    391 
    392 - (void)setBorderBottomWidth:(NSString *)borderBottomWidth
    393 {
    394     [self setProperty:@"border-bottom-width" value:borderBottomWidth priority:@""];
    395 }
    396 
    397 - (NSString *)borderLeftWidth
    398 {
    399     return [self getPropertyValue:@"border-left-width"];
    400 }
    401 
    402 - (void)setBorderLeftWidth:(NSString *)borderLeftWidth
    403 {
    404     [self setProperty:@"border-left-width" value:borderLeftWidth priority:@""];
    405 }
    406 
    407 - (NSString *)borderWidth
    408 {
    409     return [self getPropertyValue:@"border-width"];
    410 }
    411 
    412 - (void)setBorderWidth:(NSString *)borderWidth
    413 {
    414     [self setProperty:@"border-width" value:borderWidth priority:@""];
    415 }
    416 
    417 - (NSString *)bottom
    418 {
    419     return [self getPropertyValue:@"bottom"];
    420 }
    421 
    422 - (void)setBottom:(NSString *)bottom
    423 {
    424     [self setProperty:@"bottom" value:bottom priority:@""];
    425 }
    426 
    427 - (NSString *)captionSide
    428 {
    429     return [self getPropertyValue:@"caption-side"];
    430 }
    431 
    432 - (void)setCaptionSide:(NSString *)captionSide
    433 {
    434     [self setProperty:@"caption-side" value:captionSide priority:@""];
    435 }
    436 
    437 - (NSString *)clear
    438 {
    439     return [self getPropertyValue:@"clear"];
    440 }
    441 
    442 - (void)setClear:(NSString *)clear
    443 {
    444     [self setProperty:@"clear" value:clear priority:@""];
    445 }
    446 
    447 - (NSString *)clip
    448 {
    449     return [self getPropertyValue:@"clip"];
    450 }
    451 
    452 - (void)setClip:(NSString *)clip
    453 {
    454     [self setProperty:@"clip" value:clip priority:@""];
    455 }
    456 
    457 - (NSString *)color
    458 {
    459     return [self getPropertyValue:@"color"];
    460 }
    461 
    462 - (void)setColor:(NSString *)color
    463 {
    464     [self setProperty:@"color" value:color priority:@""];
    465 }
    466 
    467 - (NSString *)content
    468 {
    469     return [self getPropertyValue:@"content"];
    470 }
    471 
    472 - (void)setContent:(NSString *)content
    473 {
    474     [self setProperty:@"content" value:content priority:@""];
    475 }
    476 
    477 - (NSString *)counterIncrement
    478 {
    479     return [self getPropertyValue:@"counter-increment"];
    480 }
    481 
    482 - (void)setCounterIncrement:(NSString *)counterIncrement
    483 {
    484     [self setProperty:@"counter-increment" value:counterIncrement priority:@""];
    485 }
    486 
    487 - (NSString *)counterReset
    488 {
    489     return [self getPropertyValue:@"counter-reset"];
    490 }
    491 
    492 - (void)setCounterReset:(NSString *)counterReset
    493 {
    494     [self setProperty:@"counter-reset" value:counterReset priority:@""];
    495 }
    496 
    497 - (NSString *)cue
    498 {
    499     return [self getPropertyValue:@"cue"];
    500 }
    501 
    502 - (void)setCue:(NSString *)cue
    503 {
    504     [self setProperty:@"cue" value:cue priority:@""];
    505 }
    506 
    507 - (NSString *)cueAfter
    508 {
    509     return [self getPropertyValue:@"cue-after"];
    510 }
    511 
    512 - (void)setCueAfter:(NSString *)cueAfter
    513 {
    514     [self setProperty:@"cue-after" value:cueAfter priority:@""];
    515 }
    516 
    517 - (NSString *)cueBefore
    518 {
    519     return [self getPropertyValue:@"cue-before"];
    520 }
    521 
    522 - (void)setCueBefore:(NSString *)cueBefore
    523 {
    524     [self setProperty:@"cue-before" value:cueBefore priority:@""];
    525 }
    526 
    527 - (NSString *)cursor
    528 {
    529     return [self getPropertyValue:@"cursor"];
    530 }
    531 
    532 - (void)setCursor:(NSString *)cursor
    533 {
    534     [self setProperty:@"cursor" value:cursor priority:@""];
    535 }
    536 
    537 - (NSString *)direction
    538 {
    539     return [self getPropertyValue:@"direction"];
    540 }
    541 
    542 - (void)setDirection:(NSString *)direction
    543 {
    544     [self setProperty:@"direction" value:direction priority:@""];
    545 }
    546 
    547 - (NSString *)display
    548 {
    549     return [self getPropertyValue:@"display"];
    550 }
    551 
    552 - (void)setDisplay:(NSString *)display
    553 {
    554     [self setProperty:@"display" value:display priority:@""];
    555 }
    556 
    557 - (NSString *)elevation
    558 {
    559     return [self getPropertyValue:@"elevation"];
    560 }
    561 
    562 - (void)setElevation:(NSString *)elevation
    563 {
    564     [self setProperty:@"elevation" value:elevation priority:@""];
    565 }
    566 
    567 - (NSString *)emptyCells
    568 {
    569     return [self getPropertyValue:@"empty-cells"];
    570 }
    571 
    572 - (void)setEmptyCells:(NSString *)emptyCells
    573 {
    574     [self setProperty:@"empty-cells" value:emptyCells priority:@""];
    575 }
    576 
    577 - (NSString *)cssFloat
    578 {
    579     return [self getPropertyValue:@"css-float"];
    580 }
    581 
    582 - (void)setCssFloat:(NSString *)cssFloat
    583 {
    584     [self setProperty:@"css-float" value:cssFloat priority:@""];
    585 }
    586 
    587 - (NSString *)font
    588 {
    589     return [self getPropertyValue:@"font"];
    590 }
    591 
    592 - (void)setFont:(NSString *)font
    593 {
    594     [self setProperty:@"font" value:font priority:@""];
    595 }
    596 
    597 - (NSString *)fontFamily
    598 {
    599     return [self getPropertyValue:@"font-family"];
    600 }
    601 
    602 - (void)setFontFamily:(NSString *)fontFamily
    603 {
    604     [self setProperty:@"font-family" value:fontFamily priority:@""];
    605 }
    606 
    607 - (NSString *)fontSize
    608 {
    609     return [self getPropertyValue:@"font-size"];
    610 }
    611 
    612 - (void)setFontSize:(NSString *)fontSize
    613 {
    614     [self setProperty:@"font-size" value:fontSize priority:@""];
    615 }
    616 
    617 - (NSString *)fontSizeAdjust
    618 {
    619     return [self getPropertyValue:@"font-size-adjust"];
    620 }
    621 
    622 - (void)setFontSizeAdjust:(NSString *)fontSizeAdjust
    623 {
    624     [self setProperty:@"font-size-adjust" value:fontSizeAdjust priority:@""];
    625 }
    626 
    627 - (NSString *)_fontSizeDelta
    628 {
    629     return [self getPropertyValue:@"-webkit-font-size-delta"];
    630 }
    631 
    632 - (void)_setFontSizeDelta:(NSString *)fontSizeDelta
    633 {
    634     [self setProperty:@"-webkit-font-size-delta" value:fontSizeDelta priority:@""];
    635 }
    636 
    637 - (NSString *)fontStretch
    638 {
    639     return [self getPropertyValue:@"font-stretch"];
    640 }
    641 
    642 - (void)setFontStretch:(NSString *)fontStretch
    643 {
    644     [self setProperty:@"font-stretch" value:fontStretch priority:@""];
    645 }
    646 
    647 - (NSString *)fontStyle
    648 {
    649     return [self getPropertyValue:@"font-style"];
    650 }
    651 
    652 - (void)setFontStyle:(NSString *)fontStyle
    653 {
    654     [self setProperty:@"font-style" value:fontStyle priority:@""];
    655 }
    656 
    657 - (NSString *)fontVariant
    658 {
    659     return [self getPropertyValue:@"font-variant"];
    660 }
    661 
    662 - (void)setFontVariant:(NSString *)fontVariant
    663 {
    664     [self setProperty:@"font-variant" value:fontVariant priority:@""];
    665 }
    666 
    667 - (NSString *)fontWeight
    668 {
    669     return [self getPropertyValue:@"font-weight"];
    670 }
    671 
    672 - (void)setFontWeight:(NSString *)fontWeight
    673 {
    674     [self setProperty:@"font-weight" value:fontWeight priority:@""];
    675 }
    676 
    677 - (NSString *)height
    678 {
    679     return [self getPropertyValue:@"height"];
    680 }
    681 
    682 - (void)setHeight:(NSString *)height
    683 {
    684     [self setProperty:@"height" value:height priority:@""];
    685 }
    686 
    687 - (NSString *)left
    688 {
    689     return [self getPropertyValue:@"left"];
    690 }
    691 
    692 - (void)setLeft:(NSString *)left
    693 {
    694     [self setProperty:@"left" value:left priority:@""];
    695 }
    696 
    697 - (NSString *)letterSpacing
    698 {
    699     return [self getPropertyValue:@"letter-spacing"];
    700 }
    701 
    702 - (void)setLetterSpacing:(NSString *)letterSpacing
    703 {
    704     [self setProperty:@"letter-spacing" value:letterSpacing priority:@""];
    705 }
    706 
    707 - (NSString *)lineHeight
    708 {
    709     return [self getPropertyValue:@"line-height"];
    710 }
    711 
    712 - (void)setLineHeight:(NSString *)lineHeight
    713 {
    714     [self setProperty:@"line-height" value:lineHeight priority:@""];
    715 }
    716 
    717 - (NSString *)listStyle
    718 {
    719     return [self getPropertyValue:@"list-style"];
    720 }
    721 
    722 - (void)setListStyle:(NSString *)listStyle
    723 {
    724     [self setProperty:@"list-style" value:listStyle priority:@""];
    725 }
    726 
    727 - (NSString *)listStyleImage
    728 {
    729     return [self getPropertyValue:@"list-style-image"];
    730 }
    731 
    732 - (void)setListStyleImage:(NSString *)listStyleImage
    733 {
    734     [self setProperty:@"list-style-image" value:listStyleImage priority:@""];
    735 }
    736 
    737 - (NSString *)listStylePosition
    738 {
    739     return [self getPropertyValue:@"list-style-position"];
    740 }
    741 
    742 - (void)setListStylePosition:(NSString *)listStylePosition
    743 {
    744     [self setProperty:@"list-style-position" value:listStylePosition priority:@""];
    745 }
    746 
    747 - (NSString *)listStyleType
    748 {
    749     return [self getPropertyValue:@"list-style-type"];
    750 }
    751 
    752 - (void)setListStyleType:(NSString *)listStyleType
    753 {
    754     [self setProperty:@"list-style-type" value:listStyleType priority:@""];
    755 }
    756 
    757 - (NSString *)margin
    758 {
    759     return [self getPropertyValue:@"margin"];
    760 }
    761 
    762 - (void)setMargin:(NSString *)margin
    763 {
    764     [self setProperty:@"margin" value:margin priority:@""];
    765 }
    766 
    767 - (NSString *)marginTop
    768 {
    769     return [self getPropertyValue:@"margin-top"];
    770 }
    771 
    772 - (void)setMarginTop:(NSString *)marginTop
    773 {
    774     [self setProperty:@"margin-top" value:marginTop priority:@""];
    775 }
    776 
    777 - (NSString *)marginRight
    778 {
    779     return [self getPropertyValue:@"margin-right"];
    780 }
    781 
    782 - (void)setMarginRight:(NSString *)marginRight
    783 {
    784     [self setProperty:@"margin-right" value:marginRight priority:@""];
    785 }
    786 
    787 - (NSString *)marginBottom
    788 {
    789     return [self getPropertyValue:@"margin-bottom"];
    790 }
    791 
    792 - (void)setMarginBottom:(NSString *)marginBottom
    793 {
    794     [self setProperty:@"margin-bottom" value:marginBottom priority:@""];
    795 }
    796 
    797 - (NSString *)marginLeft
    798 {
    799     return [self getPropertyValue:@"margin-left"];
    800 }
    801 
    802 - (void)setMarginLeft:(NSString *)marginLeft
    803 {
    804     [self setProperty:@"margin-left" value:marginLeft priority:@""];
    805 }
    806 
    807 - (NSString *)markerOffset
    808 {
    809     return [self getPropertyValue:@"marker-offset"];
    810 }
    811 
    812 - (void)setMarkerOffset:(NSString *)markerOffset
    813 {
    814     [self setProperty:@"marker-offset" value:markerOffset priority:@""];
    815 }
    816 
    817 - (NSString *)marks
    818 {
    819     return [self getPropertyValue:@"marks"];
    820 }
    821 
    822 - (void)setMarks:(NSString *)marks
    823 {
    824     [self setProperty:@"marks" value:marks priority:@""];
    825 }
    826 
    827 - (NSString *)maxHeight
    828 {
    829     return [self getPropertyValue:@"max-height"];
    830 }
    831 
    832 - (void)setMaxHeight:(NSString *)maxHeight
    833 {
    834     [self setProperty:@"max-height" value:maxHeight priority:@""];
    835 }
    836 
    837 - (NSString *)maxWidth
    838 {
    839     return [self getPropertyValue:@"max-width"];
    840 }
    841 
    842 - (void)setMaxWidth:(NSString *)maxWidth
    843 {
    844     [self setProperty:@"max-width" value:maxWidth priority:@""];
    845 }
    846 
    847 - (NSString *)minHeight
    848 {
    849     return [self getPropertyValue:@"min-height"];
    850 }
    851 
    852 - (void)setMinHeight:(NSString *)minHeight
    853 {
    854     [self setProperty:@"min-height" value:minHeight priority:@""];
    855 }
    856 
    857 - (NSString *)minWidth
    858 {
    859     return [self getPropertyValue:@"min-width"];
    860 }
    861 
    862 - (void)setMinWidth:(NSString *)minWidth
    863 {
    864     [self setProperty:@"min-width" value:minWidth priority:@""];
    865 }
    866 
    867 - (NSString *)orphans
    868 {
    869     return [self getPropertyValue:@"orphans"];
    870 }
    871 
    872 - (void)setOrphans:(NSString *)orphans
    873 {
    874     [self setProperty:@"orphans" value:orphans priority:@""];
    875 }
    876 
    877 - (NSString *)outline
    878 {
    879     return [self getPropertyValue:@"outline"];
    880 }
    881 
    882 - (void)setOutline:(NSString *)outline
    883 {
    884     [self setProperty:@"outline" value:outline priority:@""];
    885 }
    886 
    887 - (NSString *)outlineColor
    888 {
    889     return [self getPropertyValue:@"outline-color"];
    890 }
    891 
    892 - (void)setOutlineColor:(NSString *)outlineColor
    893 {
    894     [self setProperty:@"outline-color" value:outlineColor priority:@""];
    895 }
    896 
    897 - (NSString *)outlineStyle
    898 {
    899     return [self getPropertyValue:@"outline-style"];
    900 }
    901 
    902 - (void)setOutlineStyle:(NSString *)outlineStyle
    903 {
    904     [self setProperty:@"outline-style" value:outlineStyle priority:@""];
    905 }
    906 
    907 - (NSString *)outlineWidth
    908 {
    909     return [self getPropertyValue:@"outline-width"];
    910 }
    911 
    912 - (void)setOutlineWidth:(NSString *)outlineWidth
    913 {
    914     [self setProperty:@"outline-width" value:outlineWidth priority:@""];
    915 }
    916 
    917 - (NSString *)overflow
    918 {
    919     return [self getPropertyValue:@"overflow"];
    920 }
    921 
    922 - (void)setOverflow:(NSString *)overflow
    923 {
    924     [self setProperty:@"overflow" value:overflow priority:@""];
    925 }
    926 
    927 - (NSString *)padding
    928 {
    929     return [self getPropertyValue:@"padding"];
    930 }
    931 
    932 - (void)setPadding:(NSString *)padding
    933 {
    934     [self setProperty:@"padding" value:padding priority:@""];
    935 }
    936 
    937 - (NSString *)paddingTop
    938 {
    939     return [self getPropertyValue:@"padding-top"];
    940 }
    941 
    942 - (void)setPaddingTop:(NSString *)paddingTop
    943 {
    944     [self setProperty:@"padding-top" value:paddingTop priority:@""];
    945 }
    946 
    947 - (NSString *)paddingRight
    948 {
    949     return [self getPropertyValue:@"padding-right"];
    950 }
    951 
    952 - (void)setPaddingRight:(NSString *)paddingRight
    953 {
    954     [self setProperty:@"padding-right" value:paddingRight priority:@""];
    955 }
    956 
    957 - (NSString *)paddingBottom
    958 {
    959     return [self getPropertyValue:@"padding-bottom"];
    960 }
    961 
    962 - (void)setPaddingBottom:(NSString *)paddingBottom
    963 {
    964     [self setProperty:@"padding-bottom" value:paddingBottom priority:@""];
    965 }
    966 
    967 - (NSString *)paddingLeft
    968 {
    969     return [self getPropertyValue:@"padding-left"];
    970 }
    971 
    972 - (void)setPaddingLeft:(NSString *)paddingLeft
    973 {
    974     [self setProperty:@"padding-left" value:paddingLeft priority:@""];
    975 }
    976 
    977 - (NSString *)page
    978 {
    979     return [self getPropertyValue:@"page"];
    980 }
    981 
    982 - (void)setPage:(NSString *)page
    983 {
    984     [self setProperty:@"page" value:page priority:@""];
    985 }
    986 
    987 - (NSString *)pageBreakAfter
    988 {
    989     return [self getPropertyValue:@"page-break-after"];
    990 }
    991 
    992 - (void)setPageBreakAfter:(NSString *)pageBreakAfter
    993 {
    994     [self setProperty:@"page-break-after" value:pageBreakAfter priority:@""];
    995 }
    996 
    997 - (NSString *)pageBreakBefore
    998 {
    999     return [self getPropertyValue:@"page-break-before"];
   1000 }
   1001 
   1002 - (void)setPageBreakBefore:(NSString *)pageBreakBefore
   1003 {
   1004     [self setProperty:@"page-break-before" value:pageBreakBefore priority:@""];
   1005 }
   1006 
   1007 - (NSString *)pageBreakInside
   1008 {
   1009     return [self getPropertyValue:@"page-break-inside"];
   1010 }
   1011 
   1012 - (void)setPageBreakInside:(NSString *)pageBreakInside
   1013 {
   1014     [self setProperty:@"page-break-inside" value:pageBreakInside priority:@""];
   1015 }
   1016 
   1017 - (NSString *)pause
   1018 {
   1019     return [self getPropertyValue:@"pause"];
   1020 }
   1021 
   1022 - (void)setPause:(NSString *)pause
   1023 {
   1024     [self setProperty:@"pause" value:pause priority:@""];
   1025 }
   1026 
   1027 - (NSString *)pauseAfter
   1028 {
   1029     return [self getPropertyValue:@"pause-after"];
   1030 }
   1031 
   1032 - (void)setPauseAfter:(NSString *)pauseAfter
   1033 {
   1034     [self setProperty:@"pause-after" value:pauseAfter priority:@""];
   1035 }
   1036 
   1037 - (NSString *)pauseBefore
   1038 {
   1039     return [self getPropertyValue:@"pause-before"];
   1040 }
   1041 
   1042 - (void)setPauseBefore:(NSString *)pauseBefore
   1043 {
   1044     [self setProperty:@"pause-before" value:pauseBefore priority:@""];
   1045 }
   1046 
   1047 - (NSString *)pitch
   1048 {
   1049     return [self getPropertyValue:@"pitch"];
   1050 }
   1051 
   1052 - (void)setPitch:(NSString *)pitch
   1053 {
   1054     [self setProperty:@"pitch" value:pitch priority:@""];
   1055 }
   1056 
   1057 - (NSString *)pitchRange
   1058 {
   1059     return [self getPropertyValue:@"pitch-range"];
   1060 }
   1061 
   1062 - (void)setPitchRange:(NSString *)pitchRange
   1063 {
   1064     [self setProperty:@"pitch-range" value:pitchRange priority:@""];
   1065 }
   1066 
   1067 - (NSString *)playDuring
   1068 {
   1069     return [self getPropertyValue:@"play-during"];
   1070 }
   1071 
   1072 - (void)setPlayDuring:(NSString *)playDuring
   1073 {
   1074     [self setProperty:@"play-during" value:playDuring priority:@""];
   1075 }
   1076 
   1077 - (NSString *)position
   1078 {
   1079     return [self getPropertyValue:@"position"];
   1080 }
   1081 
   1082 - (void)setPosition:(NSString *)position
   1083 {
   1084     [self setProperty:@"position" value:position priority:@""];
   1085 }
   1086 
   1087 - (NSString *)quotes
   1088 {
   1089     return [self getPropertyValue:@"quotes"];
   1090 }
   1091 
   1092 - (void)setQuotes:(NSString *)quotes
   1093 {
   1094     [self setProperty:@"quotes" value:quotes priority:@""];
   1095 }
   1096 
   1097 - (NSString *)richness
   1098 {
   1099     return [self getPropertyValue:@"richness"];
   1100 }
   1101 
   1102 - (void)setRichness:(NSString *)richness
   1103 {
   1104     [self setProperty:@"richness" value:richness priority:@""];
   1105 }
   1106 
   1107 - (NSString *)right
   1108 {
   1109     return [self getPropertyValue:@"right"];
   1110 }
   1111 
   1112 - (void)setRight:(NSString *)right
   1113 {
   1114     [self setProperty:@"right" value:right priority:@""];
   1115 }
   1116 
   1117 - (NSString *)size
   1118 {
   1119     return [self getPropertyValue:@"size"];
   1120 }
   1121 
   1122 - (void)setSize:(NSString *)size
   1123 {
   1124     [self setProperty:@"size" value:size priority:@""];
   1125 }
   1126 
   1127 - (NSString *)speak
   1128 {
   1129     return [self getPropertyValue:@"speak"];
   1130 }
   1131 
   1132 - (void)setSpeak:(NSString *)speak
   1133 {
   1134     [self setProperty:@"speak" value:speak priority:@""];
   1135 }
   1136 
   1137 - (NSString *)speakHeader
   1138 {
   1139     return [self getPropertyValue:@"speak-header"];
   1140 }
   1141 
   1142 - (void)setSpeakHeader:(NSString *)speakHeader
   1143 {
   1144     [self setProperty:@"speak-header" value:speakHeader priority:@""];
   1145 }
   1146 
   1147 - (NSString *)speakNumeral
   1148 {
   1149     return [self getPropertyValue:@"speak-numeral"];
   1150 }
   1151 
   1152 - (void)setSpeakNumeral:(NSString *)speakNumeral
   1153 {
   1154     [self setProperty:@"speak-numeral" value:speakNumeral priority:@""];
   1155 }
   1156 
   1157 - (NSString *)speakPunctuation
   1158 {
   1159     return [self getPropertyValue:@"speak-punctuation"];
   1160 }
   1161 
   1162 - (void)setSpeakPunctuation:(NSString *)speakPunctuation
   1163 {
   1164     [self setProperty:@"speak-punctuation" value:speakPunctuation priority:@""];
   1165 }
   1166 
   1167 - (NSString *)speechRate
   1168 {
   1169     return [self getPropertyValue:@"speech-rate"];
   1170 }
   1171 
   1172 - (void)setSpeechRate:(NSString *)speechRate
   1173 {
   1174     [self setProperty:@"speech-rate" value:speechRate priority:@""];
   1175 }
   1176 
   1177 - (NSString *)stress
   1178 {
   1179     return [self getPropertyValue:@"stress"];
   1180 }
   1181 
   1182 - (void)setStress:(NSString *)stress
   1183 {
   1184     [self setProperty:@"stress" value:stress priority:@""];
   1185 }
   1186 
   1187 - (NSString *)tableLayout
   1188 {
   1189     return [self getPropertyValue:@"table-layout"];
   1190 }
   1191 
   1192 - (void)setTableLayout:(NSString *)tableLayout
   1193 {
   1194     [self setProperty:@"table-layout" value:tableLayout priority:@""];
   1195 }
   1196 
   1197 - (NSString *)textAlign
   1198 {
   1199     return [self getPropertyValue:@"text-align"];
   1200 }
   1201 
   1202 - (void)setTextAlign:(NSString *)textAlign
   1203 {
   1204     [self setProperty:@"text-align" value:textAlign priority:@""];
   1205 }
   1206 
   1207 - (NSString *)textDecoration
   1208 {
   1209     return [self getPropertyValue:@"text-decoration"];
   1210 }
   1211 
   1212 - (void)setTextDecoration:(NSString *)textDecoration
   1213 {
   1214     [self setProperty:@"text-decoration" value:textDecoration priority:@""];
   1215 }
   1216 
   1217 - (NSString *)textIndent
   1218 {
   1219     return [self getPropertyValue:@"text-indent"];
   1220 }
   1221 
   1222 - (void)setTextIndent:(NSString *)textIndent
   1223 {
   1224     [self setProperty:@"text-indent" value:textIndent priority:@""];
   1225 }
   1226 
   1227 - (NSString *)textShadow
   1228 {
   1229     return [self getPropertyValue:@"text-shadow"];
   1230 }
   1231 
   1232 - (void)setTextShadow:(NSString *)textShadow
   1233 {
   1234     [self setProperty:@"text-shadow" value:textShadow priority:@""];
   1235 }
   1236 
   1237 - (NSString *)textTransform
   1238 {
   1239     return [self getPropertyValue:@"text-transform"];
   1240 }
   1241 
   1242 - (void)setTextTransform:(NSString *)textTransform
   1243 {
   1244     [self setProperty:@"text-transform" value:textTransform priority:@""];
   1245 }
   1246 
   1247 - (NSString *)top
   1248 {
   1249     return [self getPropertyValue:@"top"];
   1250 }
   1251 
   1252 - (void)setTop:(NSString *)top
   1253 {
   1254     [self setProperty:@"top" value:top priority:@""];
   1255 }
   1256 
   1257 - (NSString *)unicodeBidi
   1258 {
   1259     return [self getPropertyValue:@"unicode-bidi"];
   1260 }
   1261 
   1262 - (void)setUnicodeBidi:(NSString *)unicodeBidi
   1263 {
   1264     [self setProperty:@"unicode-bidi" value:unicodeBidi priority:@""];
   1265 }
   1266 
   1267 - (NSString *)verticalAlign
   1268 {
   1269     return [self getPropertyValue:@"vertical-align"];
   1270 }
   1271 
   1272 - (void)setVerticalAlign:(NSString *)verticalAlign
   1273 {
   1274     [self setProperty:@"vertical-align" value:verticalAlign priority:@""];
   1275 }
   1276 
   1277 - (NSString *)visibility
   1278 {
   1279     return [self getPropertyValue:@"visibility"];
   1280 }
   1281 
   1282 - (void)setVisibility:(NSString *)visibility
   1283 {
   1284     [self setProperty:@"visibility" value:visibility priority:@""];
   1285 }
   1286 
   1287 - (NSString *)voiceFamily
   1288 {
   1289     return [self getPropertyValue:@"voice-family"];
   1290 }
   1291 
   1292 - (void)setVoiceFamily:(NSString *)voiceFamily
   1293 {
   1294     [self setProperty:@"voice-family" value:voiceFamily priority:@""];
   1295 }
   1296 
   1297 - (NSString *)volume
   1298 {
   1299     return [self getPropertyValue:@"volume"];
   1300 }
   1301 
   1302 - (void)setVolume:(NSString *)volume
   1303 {
   1304     [self setProperty:@"volume" value:volume priority:@""];
   1305 }
   1306 
   1307 - (NSString *)whiteSpace
   1308 {
   1309     return [self getPropertyValue:@"white-space"];
   1310 }
   1311 
   1312 - (void)setWhiteSpace:(NSString *)whiteSpace
   1313 {
   1314     [self setProperty:@"white-space" value:whiteSpace priority:@""];
   1315 }
   1316 
   1317 - (NSString *)widows
   1318 {
   1319     return [self getPropertyValue:@"widows"];
   1320 }
   1321 
   1322 - (void)setWidows:(NSString *)widows
   1323 {
   1324     [self setProperty:@"widows" value:widows priority:@""];
   1325 }
   1326 
   1327 - (NSString *)width
   1328 {
   1329     return [self getPropertyValue:@"width"];
   1330 }
   1331 
   1332 - (void)setWidth:(NSString *)width
   1333 {
   1334     [self setProperty:@"width" value:width priority:@""];
   1335 }
   1336 
   1337 - (NSString *)wordSpacing
   1338 {
   1339     return [self getPropertyValue:@"word-spacing"];
   1340 }
   1341 
   1342 - (void)setWordSpacing:(NSString *)wordSpacing
   1343 {
   1344     [self setProperty:@"word-spacing" value:wordSpacing priority:@""];
   1345 }
   1346 
   1347 - (NSString *)zIndex
   1348 {
   1349     return [self getPropertyValue:@"z-index"];
   1350 }
   1351 
   1352 - (void)setZIndex:(NSString *)zIndex
   1353 {
   1354     [self setProperty:@"z-index" value:zIndex priority:@""];
   1355 }
   1356 
   1357 @end
   1358