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