OLD | NEW |
1 /* | 1 /* |
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 static const CSSPropertyID paddingProperties[] = { | 239 static const CSSPropertyID paddingProperties[] = { |
240 CSSPropertyPaddingTop, | 240 CSSPropertyPaddingTop, |
241 CSSPropertyPaddingRight, | 241 CSSPropertyPaddingRight, |
242 CSSPropertyPaddingBottom, | 242 CSSPropertyPaddingBottom, |
243 CSSPropertyPaddingLeft | 243 CSSPropertyPaddingLeft |
244 }; | 244 }; |
245 DEFINE_STATIC_LOCAL(StylePropertyShorthand, paddingLonghands, (paddingProper
ties, WTF_ARRAY_LENGTH(paddingProperties))); | 245 DEFINE_STATIC_LOCAL(StylePropertyShorthand, paddingLonghands, (paddingProper
ties, WTF_ARRAY_LENGTH(paddingProperties))); |
246 return paddingLonghands; | 246 return paddingLonghands; |
247 } | 247 } |
248 | 248 |
| 249 const StylePropertyShorthand& transitionShorthand() |
| 250 { |
| 251 static const CSSPropertyID transitionProperties[] = { |
| 252 CSSPropertyTransitionProperty, |
| 253 CSSPropertyTransitionDuration, |
| 254 CSSPropertyTransitionTimingFunction, |
| 255 CSSPropertyTransitionDelay |
| 256 }; |
| 257 DEFINE_STATIC_LOCAL(StylePropertyShorthand, transitionLonghands, (transition
Properties, WTF_ARRAY_LENGTH(transitionProperties))); |
| 258 return transitionLonghands; |
| 259 } |
| 260 |
249 const StylePropertyShorthand& webkitAnimationShorthand() | 261 const StylePropertyShorthand& webkitAnimationShorthand() |
250 { | 262 { |
251 static const CSSPropertyID animationProperties[] = { | 263 static const CSSPropertyID animationProperties[] = { |
252 CSSPropertyWebkitAnimationName, | 264 CSSPropertyWebkitAnimationName, |
253 CSSPropertyWebkitAnimationDuration, | 265 CSSPropertyWebkitAnimationDuration, |
254 CSSPropertyWebkitAnimationTimingFunction, | 266 CSSPropertyWebkitAnimationTimingFunction, |
255 CSSPropertyWebkitAnimationDelay, | 267 CSSPropertyWebkitAnimationDelay, |
256 CSSPropertyWebkitAnimationIterationCount, | 268 CSSPropertyWebkitAnimationIterationCount, |
257 CSSPropertyWebkitAnimationDirection, | 269 CSSPropertyWebkitAnimationDirection, |
258 CSSPropertyWebkitAnimationFillMode | 270 CSSPropertyWebkitAnimationFillMode |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 case CSSPropertyFont: | 498 case CSSPropertyFont: |
487 return fontShorthand(); | 499 return fontShorthand(); |
488 case CSSPropertyMargin: | 500 case CSSPropertyMargin: |
489 return marginShorthand(); | 501 return marginShorthand(); |
490 case CSSPropertyOutline: | 502 case CSSPropertyOutline: |
491 return outlineShorthand(); | 503 return outlineShorthand(); |
492 case CSSPropertyOverflow: | 504 case CSSPropertyOverflow: |
493 return overflowShorthand(); | 505 return overflowShorthand(); |
494 case CSSPropertyPadding: | 506 case CSSPropertyPadding: |
495 return paddingShorthand(); | 507 return paddingShorthand(); |
| 508 case CSSPropertyTransition: |
| 509 return transitionShorthand(); |
496 case CSSPropertyWebkitAnimation: | 510 case CSSPropertyWebkitAnimation: |
497 return webkitAnimationShorthand(); | 511 return webkitAnimationShorthand(); |
498 case CSSPropertyWebkitBorderAfter: | 512 case CSSPropertyWebkitBorderAfter: |
499 return webkitBorderAfterShorthand(); | 513 return webkitBorderAfterShorthand(); |
500 case CSSPropertyWebkitBorderBefore: | 514 case CSSPropertyWebkitBorderBefore: |
501 return webkitBorderBeforeShorthand(); | 515 return webkitBorderBeforeShorthand(); |
502 case CSSPropertyWebkitBorderEnd: | 516 case CSSPropertyWebkitBorderEnd: |
503 return webkitBorderEndShorthand(); | 517 return webkitBorderEndShorthand(); |
504 case CSSPropertyWebkitBorderStart: | 518 case CSSPropertyWebkitBorderStart: |
505 return webkitBorderStartShorthand(); | 519 return webkitBorderStartShorthand(); |
(...skipping 30 matching lines...) Expand all Loading... |
536 return webkitWrapShorthand(); | 550 return webkitWrapShorthand(); |
537 #endif | 551 #endif |
538 default: { | 552 default: { |
539 DEFINE_STATIC_LOCAL(StylePropertyShorthand, emptyShorthand, ()); | 553 DEFINE_STATIC_LOCAL(StylePropertyShorthand, emptyShorthand, ()); |
540 return emptyShorthand; | 554 return emptyShorthand; |
541 } | 555 } |
542 } | 556 } |
543 } | 557 } |
544 | 558 |
545 } // namespace WebCore | 559 } // namespace WebCore |
OLD | NEW |