DOMCSS.mm 31 KB

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