| 1 | // This file is automatically generated from CSSProperties.json by the makeprop.pl script. Do not edit it. |
| 2 | |
| 3 | #include "config.h" |
| 4 | #include "StylePropertyShorthandFunctions.h" |
| 5 | |
| 6 | #include "StylePropertyShorthand.h" |
| 7 | |
| 8 | namespace WebCore { |
| 9 | |
| 10 | StylePropertyShorthand allShorthand() |
| 11 | { |
| 12 | static const CSSPropertyID allProperties[] = { |
| 13 | CSSPropertyColor, |
| 14 | CSSPropertyColorScheme, |
| 15 | CSSPropertyDisplay, |
| 16 | CSSPropertyFontFamily, |
| 17 | CSSPropertyFontFeatureSettings, |
| 18 | CSSPropertyFontOpticalSizing, |
| 19 | CSSPropertyFontSize, |
| 20 | CSSPropertyFontStretch, |
| 21 | CSSPropertyFontStyle, |
| 22 | CSSPropertyFontSynthesis, |
| 23 | CSSPropertyFontVariantAlternates, |
| 24 | CSSPropertyFontVariantCaps, |
| 25 | CSSPropertyFontVariantEastAsian, |
| 26 | CSSPropertyFontVariantLigatures, |
| 27 | CSSPropertyFontVariantNumeric, |
| 28 | CSSPropertyFontVariantPosition, |
| 29 | CSSPropertyFontVariationSettings, |
| 30 | CSSPropertyFontWeight, |
| 31 | CSSPropertyTextRendering, |
| 32 | CSSPropertyWritingMode, |
| 33 | CSSPropertyZoom, |
| 34 | CSSPropertyWebkitFontKerning, |
| 35 | CSSPropertyWebkitFontSmoothing, |
| 36 | CSSPropertyWebkitLocale, |
| 37 | CSSPropertyWebkitTextOrientation, |
| 38 | CSSPropertyWebkitTextZoom, |
| 39 | CSSPropertyAlignContent, |
| 40 | CSSPropertyAlignItems, |
| 41 | CSSPropertyAlignSelf, |
| 42 | CSSPropertyAlignmentBaseline, |
| 43 | CSSPropertyAlt, |
| 44 | CSSPropertyAnimationDelay, |
| 45 | CSSPropertyAnimationDirection, |
| 46 | CSSPropertyAnimationDuration, |
| 47 | CSSPropertyAnimationFillMode, |
| 48 | CSSPropertyAnimationIterationCount, |
| 49 | CSSPropertyAnimationName, |
| 50 | CSSPropertyAnimationPlayState, |
| 51 | CSSPropertyAnimationTimingFunction, |
| 52 | CSSPropertyBackgroundAttachment, |
| 53 | CSSPropertyBackgroundBlendMode, |
| 54 | CSSPropertyBackgroundClip, |
| 55 | CSSPropertyBackgroundColor, |
| 56 | CSSPropertyBackgroundImage, |
| 57 | CSSPropertyBackgroundOrigin, |
| 58 | CSSPropertyBackgroundPositionX, |
| 59 | CSSPropertyBackgroundPositionY, |
| 60 | CSSPropertyBackgroundRepeatX, |
| 61 | CSSPropertyBackgroundRepeatY, |
| 62 | CSSPropertyBackgroundSize, |
| 63 | CSSPropertyBaselineShift, |
| 64 | CSSPropertyBlockSize, |
| 65 | CSSPropertyBorderBlockEndColor, |
| 66 | CSSPropertyBorderBlockEndStyle, |
| 67 | CSSPropertyBorderBlockEndWidth, |
| 68 | CSSPropertyBorderBlockStartColor, |
| 69 | CSSPropertyBorderBlockStartStyle, |
| 70 | CSSPropertyBorderBlockStartWidth, |
| 71 | CSSPropertyBorderBottomColor, |
| 72 | CSSPropertyBorderBottomLeftRadius, |
| 73 | CSSPropertyBorderBottomRightRadius, |
| 74 | CSSPropertyBorderBottomStyle, |
| 75 | CSSPropertyBorderBottomWidth, |
| 76 | CSSPropertyBorderCollapse, |
| 77 | CSSPropertyBorderImageOutset, |
| 78 | CSSPropertyBorderImageRepeat, |
| 79 | CSSPropertyBorderImageSlice, |
| 80 | CSSPropertyBorderImageSource, |
| 81 | CSSPropertyBorderImageWidth, |
| 82 | CSSPropertyBorderInlineEndColor, |
| 83 | CSSPropertyBorderInlineEndStyle, |
| 84 | CSSPropertyBorderInlineEndWidth, |
| 85 | CSSPropertyBorderInlineStartColor, |
| 86 | CSSPropertyBorderInlineStartStyle, |
| 87 | CSSPropertyBorderInlineStartWidth, |
| 88 | CSSPropertyBorderLeftColor, |
| 89 | CSSPropertyBorderLeftStyle, |
| 90 | CSSPropertyBorderLeftWidth, |
| 91 | CSSPropertyBorderRightColor, |
| 92 | CSSPropertyBorderRightStyle, |
| 93 | CSSPropertyBorderRightWidth, |
| 94 | CSSPropertyBorderTopColor, |
| 95 | CSSPropertyBorderTopLeftRadius, |
| 96 | CSSPropertyBorderTopRightRadius, |
| 97 | CSSPropertyBorderTopStyle, |
| 98 | CSSPropertyBorderTopWidth, |
| 99 | CSSPropertyBottom, |
| 100 | CSSPropertyBoxShadow, |
| 101 | CSSPropertyBoxSizing, |
| 102 | CSSPropertyBreakAfter, |
| 103 | CSSPropertyBreakBefore, |
| 104 | CSSPropertyBreakInside, |
| 105 | CSSPropertyBufferedRendering, |
| 106 | CSSPropertyCaptionSide, |
| 107 | CSSPropertyCaretColor, |
| 108 | CSSPropertyClear, |
| 109 | CSSPropertyClip, |
| 110 | CSSPropertyClipPath, |
| 111 | CSSPropertyClipRule, |
| 112 | CSSPropertyColorInterpolation, |
| 113 | CSSPropertyColorInterpolationFilters, |
| 114 | CSSPropertyColorProfile, |
| 115 | CSSPropertyColorRendering, |
| 116 | CSSPropertyColumnCount, |
| 117 | CSSPropertyColumnFill, |
| 118 | CSSPropertyColumnGap, |
| 119 | CSSPropertyColumnRuleColor, |
| 120 | CSSPropertyColumnRuleStyle, |
| 121 | CSSPropertyColumnRuleWidth, |
| 122 | CSSPropertyColumnSpan, |
| 123 | CSSPropertyColumnWidth, |
| 124 | CSSPropertyContent, |
| 125 | CSSPropertyCounterIncrement, |
| 126 | CSSPropertyCounterReset, |
| 127 | CSSPropertyCursor, |
| 128 | CSSPropertyCx, |
| 129 | CSSPropertyCy, |
| 130 | CSSPropertyDominantBaseline, |
| 131 | CSSPropertyEmptyCells, |
| 132 | CSSPropertyEnableBackground, |
| 133 | CSSPropertyFill, |
| 134 | CSSPropertyFillOpacity, |
| 135 | CSSPropertyFillRule, |
| 136 | CSSPropertyFilter, |
| 137 | CSSPropertyFlexBasis, |
| 138 | CSSPropertyFlexDirection, |
| 139 | CSSPropertyFlexGrow, |
| 140 | CSSPropertyFlexShrink, |
| 141 | CSSPropertyFlexWrap, |
| 142 | CSSPropertyFloat, |
| 143 | CSSPropertyFloodColor, |
| 144 | CSSPropertyFloodOpacity, |
| 145 | CSSPropertyFontDisplay, |
| 146 | CSSPropertyGlyphOrientationHorizontal, |
| 147 | CSSPropertyGlyphOrientationVertical, |
| 148 | CSSPropertyGridAutoColumns, |
| 149 | CSSPropertyGridAutoFlow, |
| 150 | CSSPropertyGridAutoRows, |
| 151 | CSSPropertyGridColumnEnd, |
| 152 | CSSPropertyGridColumnStart, |
| 153 | CSSPropertyGridRowEnd, |
| 154 | CSSPropertyGridRowStart, |
| 155 | CSSPropertyGridTemplateAreas, |
| 156 | CSSPropertyGridTemplateColumns, |
| 157 | CSSPropertyGridTemplateRows, |
| 158 | CSSPropertyHangingPunctuation, |
| 159 | CSSPropertyHeight, |
| 160 | CSSPropertyImageRendering, |
| 161 | CSSPropertyInlineSize, |
| 162 | CSSPropertyInsetBlockEnd, |
| 163 | CSSPropertyInsetBlockStart, |
| 164 | CSSPropertyInsetInlineEnd, |
| 165 | CSSPropertyInsetInlineStart, |
| 166 | CSSPropertyJustifyContent, |
| 167 | CSSPropertyJustifyItems, |
| 168 | CSSPropertyJustifySelf, |
| 169 | CSSPropertyKerning, |
| 170 | CSSPropertyLeft, |
| 171 | CSSPropertyLetterSpacing, |
| 172 | CSSPropertyLightingColor, |
| 173 | CSSPropertyLineBreak, |
| 174 | CSSPropertyLineHeight, |
| 175 | CSSPropertyListStyleImage, |
| 176 | CSSPropertyListStylePosition, |
| 177 | CSSPropertyListStyleType, |
| 178 | CSSPropertyMarginBlockEnd, |
| 179 | CSSPropertyMarginBlockStart, |
| 180 | CSSPropertyMarginBottom, |
| 181 | CSSPropertyMarginInlineEnd, |
| 182 | CSSPropertyMarginInlineStart, |
| 183 | CSSPropertyMarginLeft, |
| 184 | CSSPropertyMarginRight, |
| 185 | CSSPropertyMarginTop, |
| 186 | CSSPropertyMarkerEnd, |
| 187 | CSSPropertyMarkerMid, |
| 188 | CSSPropertyMarkerStart, |
| 189 | CSSPropertyMask, |
| 190 | CSSPropertyMaskType, |
| 191 | CSSPropertyMaxBlockSize, |
| 192 | CSSPropertyMaxHeight, |
| 193 | CSSPropertyMaxInlineSize, |
| 194 | CSSPropertyMaxWidth, |
| 195 | CSSPropertyMinBlockSize, |
| 196 | CSSPropertyMinHeight, |
| 197 | CSSPropertyMinInlineSize, |
| 198 | CSSPropertyMinWidth, |
| 199 | CSSPropertyObjectFit, |
| 200 | CSSPropertyObjectPosition, |
| 201 | CSSPropertyOpacity, |
| 202 | CSSPropertyOrder, |
| 203 | CSSPropertyOrphans, |
| 204 | CSSPropertyOutlineColor, |
| 205 | CSSPropertyOutlineOffset, |
| 206 | CSSPropertyOutlineStyle, |
| 207 | CSSPropertyOutlineWidth, |
| 208 | CSSPropertyOverflowWrap, |
| 209 | CSSPropertyOverflowX, |
| 210 | CSSPropertyOverflowY, |
| 211 | CSSPropertyPaddingBlockEnd, |
| 212 | CSSPropertyPaddingBlockStart, |
| 213 | CSSPropertyPaddingBottom, |
| 214 | CSSPropertyPaddingInlineEnd, |
| 215 | CSSPropertyPaddingInlineStart, |
| 216 | CSSPropertyPaddingLeft, |
| 217 | CSSPropertyPaddingRight, |
| 218 | CSSPropertyPaddingTop, |
| 219 | CSSPropertyPage, |
| 220 | CSSPropertyPaintOrder, |
| 221 | CSSPropertyPerspective, |
| 222 | CSSPropertyPerspectiveOriginX, |
| 223 | CSSPropertyPerspectiveOriginY, |
| 224 | CSSPropertyPointerEvents, |
| 225 | CSSPropertyPosition, |
| 226 | CSSPropertyQuotes, |
| 227 | CSSPropertyR, |
| 228 | CSSPropertyResize, |
| 229 | CSSPropertyRight, |
| 230 | CSSPropertyRowGap, |
| 231 | CSSPropertyRx, |
| 232 | CSSPropertyRy, |
| 233 | CSSPropertyShapeImageThreshold, |
| 234 | CSSPropertyShapeMargin, |
| 235 | CSSPropertyShapeOutside, |
| 236 | CSSPropertyShapeRendering, |
| 237 | CSSPropertySize, |
| 238 | CSSPropertySpeakAs, |
| 239 | CSSPropertySrc, |
| 240 | CSSPropertyStopColor, |
| 241 | CSSPropertyStopOpacity, |
| 242 | CSSPropertyStroke, |
| 243 | CSSPropertyStrokeColor, |
| 244 | CSSPropertyStrokeDasharray, |
| 245 | CSSPropertyStrokeDashoffset, |
| 246 | CSSPropertyStrokeLinecap, |
| 247 | CSSPropertyStrokeLinejoin, |
| 248 | CSSPropertyStrokeMiterlimit, |
| 249 | CSSPropertyStrokeOpacity, |
| 250 | CSSPropertyStrokeWidth, |
| 251 | CSSPropertyTabSize, |
| 252 | CSSPropertyTableLayout, |
| 253 | CSSPropertyTextAlign, |
| 254 | CSSPropertyTextAnchor, |
| 255 | CSSPropertyTextDecoration, |
| 256 | CSSPropertyTextDecorationColor, |
| 257 | CSSPropertyTextDecorationLine, |
| 258 | CSSPropertyTextDecorationSkip, |
| 259 | CSSPropertyTextDecorationStyle, |
| 260 | CSSPropertyTextDecorationThickness, |
| 261 | CSSPropertyTextIndent, |
| 262 | CSSPropertyTextOverflow, |
| 263 | CSSPropertyTextShadow, |
| 264 | CSSPropertyTextTransform, |
| 265 | CSSPropertyTextUnderlineOffset, |
| 266 | CSSPropertyTextUnderlinePosition, |
| 267 | CSSPropertyTop, |
| 268 | CSSPropertyTransform, |
| 269 | CSSPropertyTransformBox, |
| 270 | CSSPropertyTransformOriginX, |
| 271 | CSSPropertyTransformOriginY, |
| 272 | CSSPropertyTransformOriginZ, |
| 273 | CSSPropertyTransformStyle, |
| 274 | CSSPropertyTransitionDelay, |
| 275 | CSSPropertyTransitionDuration, |
| 276 | CSSPropertyTransitionProperty, |
| 277 | CSSPropertyTransitionTimingFunction, |
| 278 | CSSPropertyUnicodeRange, |
| 279 | CSSPropertyVectorEffect, |
| 280 | CSSPropertyVerticalAlign, |
| 281 | CSSPropertyVisibility, |
| 282 | CSSPropertyWhiteSpace, |
| 283 | CSSPropertyWidows, |
| 284 | CSSPropertyWidth, |
| 285 | CSSPropertyWillChange, |
| 286 | CSSPropertyWordBreak, |
| 287 | CSSPropertyWordSpacing, |
| 288 | CSSPropertyWordWrap, |
| 289 | CSSPropertyX, |
| 290 | CSSPropertyY, |
| 291 | CSSPropertyZIndex, |
| 292 | CSSPropertyAppleColorFilter, |
| 293 | CSSPropertyWebkitAppearance, |
| 294 | CSSPropertyWebkitAspectRatio, |
| 295 | CSSPropertyWebkitBackfaceVisibility, |
| 296 | CSSPropertyWebkitBackgroundClip, |
| 297 | CSSPropertyWebkitBackgroundComposite, |
| 298 | CSSPropertyWebkitBackgroundOrigin, |
| 299 | CSSPropertyWebkitBackgroundSize, |
| 300 | CSSPropertyWebkitBorderFit, |
| 301 | CSSPropertyWebkitBorderHorizontalSpacing, |
| 302 | CSSPropertyWebkitBorderImage, |
| 303 | CSSPropertyWebkitBorderVerticalSpacing, |
| 304 | CSSPropertyWebkitBoxAlign, |
| 305 | CSSPropertyWebkitBoxDecorationBreak, |
| 306 | CSSPropertyWebkitBoxDirection, |
| 307 | CSSPropertyWebkitBoxFlex, |
| 308 | CSSPropertyWebkitBoxFlexGroup, |
| 309 | CSSPropertyWebkitBoxLines, |
| 310 | CSSPropertyWebkitBoxOrdinalGroup, |
| 311 | CSSPropertyWebkitBoxOrient, |
| 312 | CSSPropertyWebkitBoxPack, |
| 313 | CSSPropertyWebkitBoxReflect, |
| 314 | CSSPropertyWebkitBoxShadow, |
| 315 | CSSPropertyWebkitClipPath, |
| 316 | CSSPropertyWebkitColumnAxis, |
| 317 | CSSPropertyWebkitColumnProgression, |
| 318 | CSSPropertyWebkitFontSizeDelta, |
| 319 | CSSPropertyWebkitHyphenateCharacter, |
| 320 | CSSPropertyWebkitHyphenateLimitAfter, |
| 321 | CSSPropertyWebkitHyphenateLimitBefore, |
| 322 | CSSPropertyWebkitHyphenateLimitLines, |
| 323 | CSSPropertyWebkitHyphens, |
| 324 | CSSPropertyWebkitInitialLetter, |
| 325 | CSSPropertyWebkitLineAlign, |
| 326 | CSSPropertyWebkitLineBoxContain, |
| 327 | CSSPropertyWebkitLineClamp, |
| 328 | CSSPropertyWebkitLineGrid, |
| 329 | CSSPropertyWebkitLineSnap, |
| 330 | CSSPropertyWebkitMarginAfterCollapse, |
| 331 | CSSPropertyWebkitMarginBeforeCollapse, |
| 332 | CSSPropertyWebkitMarginBottomCollapse, |
| 333 | CSSPropertyWebkitMarginTopCollapse, |
| 334 | CSSPropertyWebkitMarqueeDirection, |
| 335 | CSSPropertyWebkitMarqueeIncrement, |
| 336 | CSSPropertyWebkitMarqueeRepetition, |
| 337 | CSSPropertyWebkitMarqueeSpeed, |
| 338 | CSSPropertyWebkitMarqueeStyle, |
| 339 | CSSPropertyWebkitMaskBoxImage, |
| 340 | CSSPropertyWebkitMaskBoxImageOutset, |
| 341 | CSSPropertyWebkitMaskBoxImageRepeat, |
| 342 | CSSPropertyWebkitMaskBoxImageSlice, |
| 343 | CSSPropertyWebkitMaskBoxImageSource, |
| 344 | CSSPropertyWebkitMaskBoxImageWidth, |
| 345 | CSSPropertyWebkitMaskClip, |
| 346 | CSSPropertyWebkitMaskComposite, |
| 347 | CSSPropertyWebkitMaskImage, |
| 348 | CSSPropertyWebkitMaskOrigin, |
| 349 | CSSPropertyWebkitMaskPositionX, |
| 350 | CSSPropertyWebkitMaskPositionY, |
| 351 | CSSPropertyWebkitMaskRepeatX, |
| 352 | CSSPropertyWebkitMaskRepeatY, |
| 353 | CSSPropertyWebkitMaskSize, |
| 354 | CSSPropertyWebkitMaskSourceType, |
| 355 | CSSPropertyWebkitNbspMode, |
| 356 | CSSPropertyWebkitPrintColorAdjust, |
| 357 | CSSPropertyWebkitRtlOrdering, |
| 358 | CSSPropertyWebkitRubyPosition, |
| 359 | CSSPropertyWebkitTapHighlightColor, |
| 360 | CSSPropertyWebkitTextCombine, |
| 361 | CSSPropertyWebkitTextDecorationsInEffect, |
| 362 | CSSPropertyWebkitTextEmphasisColor, |
| 363 | CSSPropertyWebkitTextEmphasisPosition, |
| 364 | CSSPropertyWebkitTextEmphasisStyle, |
| 365 | CSSPropertyWebkitTextFillColor, |
| 366 | CSSPropertyWebkitTextSecurity, |
| 367 | CSSPropertyWebkitTextStrokeColor, |
| 368 | CSSPropertyWebkitTextStrokeWidth, |
| 369 | CSSPropertyWebkitTransformStyle, |
| 370 | CSSPropertyWebkitUserDrag, |
| 371 | CSSPropertyWebkitUserModify, |
| 372 | CSSPropertyWebkitUserSelect, |
| 373 | }; |
| 374 | return StylePropertyShorthand(CSSPropertyAll, allProperties); |
| 375 | } |
| 376 | |
| 377 | StylePropertyShorthand animationShorthand() |
| 378 | { |
| 379 | static const CSSPropertyID animationProperties[] = { |
| 380 | CSSPropertyAnimationName, |
| 381 | CSSPropertyAnimationDuration, |
| 382 | CSSPropertyAnimationTimingFunction, |
| 383 | CSSPropertyAnimationDelay, |
| 384 | CSSPropertyAnimationIterationCount, |
| 385 | CSSPropertyAnimationDirection, |
| 386 | CSSPropertyAnimationFillMode, |
| 387 | CSSPropertyAnimationPlayState, |
| 388 | }; |
| 389 | return StylePropertyShorthand(CSSPropertyAnimation, animationProperties); |
| 390 | } |
| 391 | |
| 392 | StylePropertyShorthand backgroundShorthand() |
| 393 | { |
| 394 | static const CSSPropertyID backgroundProperties[] = { |
| 395 | CSSPropertyBackgroundImage, |
| 396 | CSSPropertyBackgroundPositionX, |
| 397 | CSSPropertyBackgroundPositionY, |
| 398 | CSSPropertyBackgroundSize, |
| 399 | CSSPropertyBackgroundRepeatX, |
| 400 | CSSPropertyBackgroundRepeatY, |
| 401 | CSSPropertyBackgroundAttachment, |
| 402 | CSSPropertyBackgroundOrigin, |
| 403 | CSSPropertyBackgroundClip, |
| 404 | CSSPropertyBackgroundColor, |
| 405 | }; |
| 406 | return StylePropertyShorthand(CSSPropertyBackground, backgroundProperties); |
| 407 | } |
| 408 | |
| 409 | StylePropertyShorthand backgroundPositionShorthand() |
| 410 | { |
| 411 | static const CSSPropertyID backgroundPositionProperties[] = { |
| 412 | CSSPropertyBackgroundPositionX, |
| 413 | CSSPropertyBackgroundPositionY, |
| 414 | }; |
| 415 | return StylePropertyShorthand(CSSPropertyBackgroundPosition, backgroundPositionProperties); |
| 416 | } |
| 417 | |
| 418 | StylePropertyShorthand backgroundRepeatShorthand() |
| 419 | { |
| 420 | static const CSSPropertyID backgroundRepeatProperties[] = { |
| 421 | CSSPropertyBackgroundRepeatX, |
| 422 | CSSPropertyBackgroundRepeatY, |
| 423 | }; |
| 424 | return StylePropertyShorthand(CSSPropertyBackgroundRepeat, backgroundRepeatProperties); |
| 425 | } |
| 426 | |
| 427 | StylePropertyShorthand borderShorthand() |
| 428 | { |
| 429 | static const CSSPropertyID borderProperties[] = { |
| 430 | CSSPropertyBorderTopColor, |
| 431 | CSSPropertyBorderTopStyle, |
| 432 | CSSPropertyBorderTopWidth, |
| 433 | CSSPropertyBorderRightColor, |
| 434 | CSSPropertyBorderRightStyle, |
| 435 | CSSPropertyBorderRightWidth, |
| 436 | CSSPropertyBorderBottomColor, |
| 437 | CSSPropertyBorderBottomStyle, |
| 438 | CSSPropertyBorderBottomWidth, |
| 439 | CSSPropertyBorderLeftColor, |
| 440 | CSSPropertyBorderLeftStyle, |
| 441 | CSSPropertyBorderLeftWidth, |
| 442 | }; |
| 443 | return StylePropertyShorthand(CSSPropertyBorder, borderProperties); |
| 444 | } |
| 445 | |
| 446 | StylePropertyShorthand borderBlockShorthand() |
| 447 | { |
| 448 | static const CSSPropertyID borderBlockProperties[] = { |
| 449 | CSSPropertyBorderBlockStartColor, |
| 450 | CSSPropertyBorderBlockStartStyle, |
| 451 | CSSPropertyBorderBlockStartWidth, |
| 452 | CSSPropertyBorderBlockEndColor, |
| 453 | CSSPropertyBorderBlockEndStyle, |
| 454 | CSSPropertyBorderBlockEndWidth, |
| 455 | }; |
| 456 | return StylePropertyShorthand(CSSPropertyBorderBlock, borderBlockProperties); |
| 457 | } |
| 458 | |
| 459 | StylePropertyShorthand borderBlockColorShorthand() |
| 460 | { |
| 461 | static const CSSPropertyID borderBlockColorProperties[] = { |
| 462 | CSSPropertyBorderBlockStartColor, |
| 463 | CSSPropertyBorderBlockEndColor, |
| 464 | }; |
| 465 | return StylePropertyShorthand(CSSPropertyBorderBlockColor, borderBlockColorProperties); |
| 466 | } |
| 467 | |
| 468 | StylePropertyShorthand borderBlockEndShorthand() |
| 469 | { |
| 470 | static const CSSPropertyID borderBlockEndProperties[] = { |
| 471 | CSSPropertyBorderBlockEndWidth, |
| 472 | CSSPropertyBorderBlockEndStyle, |
| 473 | CSSPropertyBorderBlockEndColor, |
| 474 | }; |
| 475 | return StylePropertyShorthand(CSSPropertyBorderBlockEnd, borderBlockEndProperties); |
| 476 | } |
| 477 | |
| 478 | StylePropertyShorthand borderBlockStartShorthand() |
| 479 | { |
| 480 | static const CSSPropertyID borderBlockStartProperties[] = { |
| 481 | CSSPropertyBorderBlockStartWidth, |
| 482 | CSSPropertyBorderBlockStartStyle, |
| 483 | CSSPropertyBorderBlockStartColor, |
| 484 | }; |
| 485 | return StylePropertyShorthand(CSSPropertyBorderBlockStart, borderBlockStartProperties); |
| 486 | } |
| 487 | |
| 488 | StylePropertyShorthand borderBlockStyleShorthand() |
| 489 | { |
| 490 | static const CSSPropertyID borderBlockStyleProperties[] = { |
| 491 | CSSPropertyBorderBlockStartStyle, |
| 492 | CSSPropertyBorderBlockEndStyle, |
| 493 | }; |
| 494 | return StylePropertyShorthand(CSSPropertyBorderBlockStyle, borderBlockStyleProperties); |
| 495 | } |
| 496 | |
| 497 | StylePropertyShorthand borderBlockWidthShorthand() |
| 498 | { |
| 499 | static const CSSPropertyID borderBlockWidthProperties[] = { |
| 500 | CSSPropertyBorderBlockStartWidth, |
| 501 | CSSPropertyBorderBlockEndWidth, |
| 502 | }; |
| 503 | return StylePropertyShorthand(CSSPropertyBorderBlockWidth, borderBlockWidthProperties); |
| 504 | } |
| 505 | |
| 506 | StylePropertyShorthand borderBottomShorthand() |
| 507 | { |
| 508 | static const CSSPropertyID borderBottomProperties[] = { |
| 509 | CSSPropertyBorderBottomWidth, |
| 510 | CSSPropertyBorderBottomStyle, |
| 511 | CSSPropertyBorderBottomColor, |
| 512 | }; |
| 513 | return StylePropertyShorthand(CSSPropertyBorderBottom, borderBottomProperties); |
| 514 | } |
| 515 | |
| 516 | StylePropertyShorthand borderColorShorthand() |
| 517 | { |
| 518 | static const CSSPropertyID borderColorProperties[] = { |
| 519 | CSSPropertyBorderTopColor, |
| 520 | CSSPropertyBorderRightColor, |
| 521 | CSSPropertyBorderBottomColor, |
| 522 | CSSPropertyBorderLeftColor, |
| 523 | }; |
| 524 | return StylePropertyShorthand(CSSPropertyBorderColor, borderColorProperties); |
| 525 | } |
| 526 | |
| 527 | StylePropertyShorthand borderImageShorthand() |
| 528 | { |
| 529 | static const CSSPropertyID borderImageProperties[] = { |
| 530 | CSSPropertyBorderImageSource, |
| 531 | CSSPropertyBorderImageSlice, |
| 532 | CSSPropertyBorderImageWidth, |
| 533 | CSSPropertyBorderImageOutset, |
| 534 | CSSPropertyBorderImageRepeat, |
| 535 | }; |
| 536 | return StylePropertyShorthand(CSSPropertyBorderImage, borderImageProperties); |
| 537 | } |
| 538 | |
| 539 | StylePropertyShorthand borderInlineShorthand() |
| 540 | { |
| 541 | static const CSSPropertyID borderInlineProperties[] = { |
| 542 | CSSPropertyBorderInlineStartColor, |
| 543 | CSSPropertyBorderInlineStartStyle, |
| 544 | CSSPropertyBorderInlineStartWidth, |
| 545 | CSSPropertyBorderInlineEndColor, |
| 546 | CSSPropertyBorderInlineEndStyle, |
| 547 | CSSPropertyBorderInlineEndWidth, |
| 548 | }; |
| 549 | return StylePropertyShorthand(CSSPropertyBorderInline, borderInlineProperties); |
| 550 | } |
| 551 | |
| 552 | StylePropertyShorthand borderInlineColorShorthand() |
| 553 | { |
| 554 | static const CSSPropertyID borderInlineColorProperties[] = { |
| 555 | CSSPropertyBorderInlineStartColor, |
| 556 | CSSPropertyBorderInlineEndColor, |
| 557 | }; |
| 558 | return StylePropertyShorthand(CSSPropertyBorderInlineColor, borderInlineColorProperties); |
| 559 | } |
| 560 | |
| 561 | StylePropertyShorthand borderInlineEndShorthand() |
| 562 | { |
| 563 | static const CSSPropertyID borderInlineEndProperties[] = { |
| 564 | CSSPropertyBorderInlineEndWidth, |
| 565 | CSSPropertyBorderInlineEndStyle, |
| 566 | CSSPropertyBorderInlineEndColor, |
| 567 | }; |
| 568 | return StylePropertyShorthand(CSSPropertyBorderInlineEnd, borderInlineEndProperties); |
| 569 | } |
| 570 | |
| 571 | StylePropertyShorthand borderInlineStartShorthand() |
| 572 | { |
| 573 | static const CSSPropertyID borderInlineStartProperties[] = { |
| 574 | CSSPropertyBorderInlineStartWidth, |
| 575 | CSSPropertyBorderInlineStartStyle, |
| 576 | CSSPropertyBorderInlineStartColor, |
| 577 | }; |
| 578 | return StylePropertyShorthand(CSSPropertyBorderInlineStart, borderInlineStartProperties); |
| 579 | } |
| 580 | |
| 581 | StylePropertyShorthand borderInlineStyleShorthand() |
| 582 | { |
| 583 | static const CSSPropertyID borderInlineStyleProperties[] = { |
| 584 | CSSPropertyBorderInlineStartStyle, |
| 585 | CSSPropertyBorderInlineEndStyle, |
| 586 | }; |
| 587 | return StylePropertyShorthand(CSSPropertyBorderInlineStyle, borderInlineStyleProperties); |
| 588 | } |
| 589 | |
| 590 | StylePropertyShorthand borderInlineWidthShorthand() |
| 591 | { |
| 592 | static const CSSPropertyID borderInlineWidthProperties[] = { |
| 593 | CSSPropertyBorderInlineStartWidth, |
| 594 | CSSPropertyBorderInlineEndWidth, |
| 595 | }; |
| 596 | return StylePropertyShorthand(CSSPropertyBorderInlineWidth, borderInlineWidthProperties); |
| 597 | } |
| 598 | |
| 599 | StylePropertyShorthand borderLeftShorthand() |
| 600 | { |
| 601 | static const CSSPropertyID borderLeftProperties[] = { |
| 602 | CSSPropertyBorderLeftWidth, |
| 603 | CSSPropertyBorderLeftStyle, |
| 604 | CSSPropertyBorderLeftColor, |
| 605 | }; |
| 606 | return StylePropertyShorthand(CSSPropertyBorderLeft, borderLeftProperties); |
| 607 | } |
| 608 | |
| 609 | StylePropertyShorthand borderRadiusShorthand() |
| 610 | { |
| 611 | static const CSSPropertyID borderRadiusProperties[] = { |
| 612 | CSSPropertyBorderTopLeftRadius, |
| 613 | CSSPropertyBorderTopRightRadius, |
| 614 | CSSPropertyBorderBottomRightRadius, |
| 615 | CSSPropertyBorderBottomLeftRadius, |
| 616 | }; |
| 617 | return StylePropertyShorthand(CSSPropertyBorderRadius, borderRadiusProperties); |
| 618 | } |
| 619 | |
| 620 | StylePropertyShorthand borderRightShorthand() |
| 621 | { |
| 622 | static const CSSPropertyID borderRightProperties[] = { |
| 623 | CSSPropertyBorderRightWidth, |
| 624 | CSSPropertyBorderRightStyle, |
| 625 | CSSPropertyBorderRightColor, |
| 626 | }; |
| 627 | return StylePropertyShorthand(CSSPropertyBorderRight, borderRightProperties); |
| 628 | } |
| 629 | |
| 630 | StylePropertyShorthand borderSpacingShorthand() |
| 631 | { |
| 632 | static const CSSPropertyID borderSpacingProperties[] = { |
| 633 | CSSPropertyWebkitBorderHorizontalSpacing, |
| 634 | CSSPropertyWebkitBorderVerticalSpacing, |
| 635 | }; |
| 636 | return StylePropertyShorthand(CSSPropertyBorderSpacing, borderSpacingProperties); |
| 637 | } |
| 638 | |
| 639 | StylePropertyShorthand borderStyleShorthand() |
| 640 | { |
| 641 | static const CSSPropertyID borderStyleProperties[] = { |
| 642 | CSSPropertyBorderTopStyle, |
| 643 | CSSPropertyBorderRightStyle, |
| 644 | CSSPropertyBorderBottomStyle, |
| 645 | CSSPropertyBorderLeftStyle, |
| 646 | }; |
| 647 | return StylePropertyShorthand(CSSPropertyBorderStyle, borderStyleProperties); |
| 648 | } |
| 649 | |
| 650 | StylePropertyShorthand borderTopShorthand() |
| 651 | { |
| 652 | static const CSSPropertyID borderTopProperties[] = { |
| 653 | CSSPropertyBorderTopWidth, |
| 654 | CSSPropertyBorderTopStyle, |
| 655 | CSSPropertyBorderTopColor, |
| 656 | }; |
| 657 | return StylePropertyShorthand(CSSPropertyBorderTop, borderTopProperties); |
| 658 | } |
| 659 | |
| 660 | StylePropertyShorthand borderWidthShorthand() |
| 661 | { |
| 662 | static const CSSPropertyID borderWidthProperties[] = { |
| 663 | CSSPropertyBorderTopWidth, |
| 664 | CSSPropertyBorderRightWidth, |
| 665 | CSSPropertyBorderBottomWidth, |
| 666 | CSSPropertyBorderLeftWidth, |
| 667 | }; |
| 668 | return StylePropertyShorthand(CSSPropertyBorderWidth, borderWidthProperties); |
| 669 | } |
| 670 | |
| 671 | StylePropertyShorthand columnRuleShorthand() |
| 672 | { |
| 673 | static const CSSPropertyID columnRuleProperties[] = { |
| 674 | CSSPropertyColumnRuleWidth, |
| 675 | CSSPropertyColumnRuleStyle, |
| 676 | CSSPropertyColumnRuleColor, |
| 677 | }; |
| 678 | return StylePropertyShorthand(CSSPropertyColumnRule, columnRuleProperties); |
| 679 | } |
| 680 | |
| 681 | StylePropertyShorthand columnsShorthand() |
| 682 | { |
| 683 | static const CSSPropertyID columnsProperties[] = { |
| 684 | CSSPropertyColumnWidth, |
| 685 | CSSPropertyColumnCount, |
| 686 | }; |
| 687 | return StylePropertyShorthand(CSSPropertyColumns, columnsProperties); |
| 688 | } |
| 689 | |
| 690 | StylePropertyShorthand flexShorthand() |
| 691 | { |
| 692 | static const CSSPropertyID flexProperties[] = { |
| 693 | CSSPropertyFlexGrow, |
| 694 | CSSPropertyFlexShrink, |
| 695 | CSSPropertyFlexBasis, |
| 696 | }; |
| 697 | return StylePropertyShorthand(CSSPropertyFlex, flexProperties); |
| 698 | } |
| 699 | |
| 700 | StylePropertyShorthand flexFlowShorthand() |
| 701 | { |
| 702 | static const CSSPropertyID flexFlowProperties[] = { |
| 703 | CSSPropertyFlexDirection, |
| 704 | CSSPropertyFlexWrap, |
| 705 | }; |
| 706 | return StylePropertyShorthand(CSSPropertyFlexFlow, flexFlowProperties); |
| 707 | } |
| 708 | |
| 709 | StylePropertyShorthand fontShorthand() |
| 710 | { |
| 711 | static const CSSPropertyID fontProperties[] = { |
| 712 | CSSPropertyFontFamily, |
| 713 | CSSPropertyFontSize, |
| 714 | CSSPropertyFontStyle, |
| 715 | CSSPropertyFontVariantCaps, |
| 716 | CSSPropertyFontWeight, |
| 717 | CSSPropertyFontStretch, |
| 718 | CSSPropertyLineHeight, |
| 719 | }; |
| 720 | return StylePropertyShorthand(CSSPropertyFont, fontProperties); |
| 721 | } |
| 722 | |
| 723 | StylePropertyShorthand fontVariantShorthand() |
| 724 | { |
| 725 | static const CSSPropertyID fontVariantProperties[] = { |
| 726 | CSSPropertyFontVariantLigatures, |
| 727 | CSSPropertyFontVariantPosition, |
| 728 | CSSPropertyFontVariantCaps, |
| 729 | CSSPropertyFontVariantNumeric, |
| 730 | CSSPropertyFontVariantAlternates, |
| 731 | CSSPropertyFontVariantEastAsian, |
| 732 | }; |
| 733 | return StylePropertyShorthand(CSSPropertyFontVariant, fontVariantProperties); |
| 734 | } |
| 735 | |
| 736 | StylePropertyShorthand gapShorthand() |
| 737 | { |
| 738 | static const CSSPropertyID gapProperties[] = { |
| 739 | CSSPropertyRowGap, |
| 740 | CSSPropertyColumnGap, |
| 741 | }; |
| 742 | return StylePropertyShorthand(CSSPropertyGap, gapProperties); |
| 743 | } |
| 744 | |
| 745 | StylePropertyShorthand gridShorthand() |
| 746 | { |
| 747 | static const CSSPropertyID gridProperties[] = { |
| 748 | CSSPropertyGridTemplateRows, |
| 749 | CSSPropertyGridTemplateColumns, |
| 750 | CSSPropertyGridTemplateAreas, |
| 751 | CSSPropertyGridAutoFlow, |
| 752 | CSSPropertyGridAutoRows, |
| 753 | CSSPropertyGridAutoColumns, |
| 754 | }; |
| 755 | return StylePropertyShorthand(CSSPropertyGrid, gridProperties); |
| 756 | } |
| 757 | |
| 758 | StylePropertyShorthand gridAreaShorthand() |
| 759 | { |
| 760 | static const CSSPropertyID gridAreaProperties[] = { |
| 761 | CSSPropertyGridRowStart, |
| 762 | CSSPropertyGridColumnStart, |
| 763 | CSSPropertyGridRowEnd, |
| 764 | CSSPropertyGridColumnEnd, |
| 765 | }; |
| 766 | return StylePropertyShorthand(CSSPropertyGridArea, gridAreaProperties); |
| 767 | } |
| 768 | |
| 769 | StylePropertyShorthand gridColumnShorthand() |
| 770 | { |
| 771 | static const CSSPropertyID gridColumnProperties[] = { |
| 772 | CSSPropertyGridColumnStart, |
| 773 | CSSPropertyGridColumnEnd, |
| 774 | }; |
| 775 | return StylePropertyShorthand(CSSPropertyGridColumn, gridColumnProperties); |
| 776 | } |
| 777 | |
| 778 | StylePropertyShorthand gridRowShorthand() |
| 779 | { |
| 780 | static const CSSPropertyID gridRowProperties[] = { |
| 781 | CSSPropertyGridRowStart, |
| 782 | CSSPropertyGridRowEnd, |
| 783 | }; |
| 784 | return StylePropertyShorthand(CSSPropertyGridRow, gridRowProperties); |
| 785 | } |
| 786 | |
| 787 | StylePropertyShorthand gridTemplateShorthand() |
| 788 | { |
| 789 | static const CSSPropertyID gridTemplateProperties[] = { |
| 790 | CSSPropertyGridTemplateRows, |
| 791 | CSSPropertyGridTemplateColumns, |
| 792 | CSSPropertyGridTemplateAreas, |
| 793 | }; |
| 794 | return StylePropertyShorthand(CSSPropertyGridTemplate, gridTemplateProperties); |
| 795 | } |
| 796 | |
| 797 | StylePropertyShorthand insetShorthand() |
| 798 | { |
| 799 | static const CSSPropertyID insetProperties[] = { |
| 800 | CSSPropertyTop, |
| 801 | CSSPropertyRight, |
| 802 | CSSPropertyBottom, |
| 803 | CSSPropertyLeft, |
| 804 | }; |
| 805 | return StylePropertyShorthand(CSSPropertyInset, insetProperties); |
| 806 | } |
| 807 | |
| 808 | StylePropertyShorthand insetBlockShorthand() |
| 809 | { |
| 810 | static const CSSPropertyID insetBlockProperties[] = { |
| 811 | CSSPropertyInsetBlockStart, |
| 812 | CSSPropertyInsetBlockEnd, |
| 813 | }; |
| 814 | return StylePropertyShorthand(CSSPropertyInsetBlock, insetBlockProperties); |
| 815 | } |
| 816 | |
| 817 | StylePropertyShorthand insetInlineShorthand() |
| 818 | { |
| 819 | static const CSSPropertyID insetInlineProperties[] = { |
| 820 | CSSPropertyInsetInlineStart, |
| 821 | CSSPropertyInsetInlineEnd, |
| 822 | }; |
| 823 | return StylePropertyShorthand(CSSPropertyInsetInline, insetInlineProperties); |
| 824 | } |
| 825 | |
| 826 | StylePropertyShorthand listStyleShorthand() |
| 827 | { |
| 828 | static const CSSPropertyID listStyleProperties[] = { |
| 829 | CSSPropertyListStyleType, |
| 830 | CSSPropertyListStylePosition, |
| 831 | CSSPropertyListStyleImage, |
| 832 | }; |
| 833 | return StylePropertyShorthand(CSSPropertyListStyle, listStyleProperties); |
| 834 | } |
| 835 | |
| 836 | StylePropertyShorthand marginShorthand() |
| 837 | { |
| 838 | static const CSSPropertyID marginProperties[] = { |
| 839 | CSSPropertyMarginTop, |
| 840 | CSSPropertyMarginRight, |
| 841 | CSSPropertyMarginBottom, |
| 842 | CSSPropertyMarginLeft, |
| 843 | }; |
| 844 | return StylePropertyShorthand(CSSPropertyMargin, marginProperties); |
| 845 | } |
| 846 | |
| 847 | StylePropertyShorthand marginBlockShorthand() |
| 848 | { |
| 849 | static const CSSPropertyID marginBlockProperties[] = { |
| 850 | CSSPropertyMarginBlockStart, |
| 851 | CSSPropertyMarginBlockEnd, |
| 852 | }; |
| 853 | return StylePropertyShorthand(CSSPropertyMarginBlock, marginBlockProperties); |
| 854 | } |
| 855 | |
| 856 | StylePropertyShorthand marginInlineShorthand() |
| 857 | { |
| 858 | static const CSSPropertyID marginInlineProperties[] = { |
| 859 | CSSPropertyMarginInlineStart, |
| 860 | CSSPropertyMarginInlineEnd, |
| 861 | }; |
| 862 | return StylePropertyShorthand(CSSPropertyMarginInline, marginInlineProperties); |
| 863 | } |
| 864 | |
| 865 | StylePropertyShorthand markerShorthand() |
| 866 | { |
| 867 | static const CSSPropertyID markerProperties[] = { |
| 868 | CSSPropertyMarkerStart, |
| 869 | CSSPropertyMarkerMid, |
| 870 | CSSPropertyMarkerEnd, |
| 871 | }; |
| 872 | return StylePropertyShorthand(CSSPropertyMarker, markerProperties); |
| 873 | } |
| 874 | |
| 875 | StylePropertyShorthand outlineShorthand() |
| 876 | { |
| 877 | static const CSSPropertyID outlineProperties[] = { |
| 878 | CSSPropertyOutlineColor, |
| 879 | CSSPropertyOutlineStyle, |
| 880 | CSSPropertyOutlineWidth, |
| 881 | }; |
| 882 | return StylePropertyShorthand(CSSPropertyOutline, outlineProperties); |
| 883 | } |
| 884 | |
| 885 | StylePropertyShorthand overflowShorthand() |
| 886 | { |
| 887 | static const CSSPropertyID overflowProperties[] = { |
| 888 | CSSPropertyOverflowX, |
| 889 | CSSPropertyOverflowY, |
| 890 | }; |
| 891 | return StylePropertyShorthand(CSSPropertyOverflow, overflowProperties); |
| 892 | } |
| 893 | |
| 894 | StylePropertyShorthand paddingShorthand() |
| 895 | { |
| 896 | static const CSSPropertyID paddingProperties[] = { |
| 897 | CSSPropertyPaddingTop, |
| 898 | CSSPropertyPaddingRight, |
| 899 | CSSPropertyPaddingBottom, |
| 900 | CSSPropertyPaddingLeft, |
| 901 | }; |
| 902 | return StylePropertyShorthand(CSSPropertyPadding, paddingProperties); |
| 903 | } |
| 904 | |
| 905 | StylePropertyShorthand paddingBlockShorthand() |
| 906 | { |
| 907 | static const CSSPropertyID paddingBlockProperties[] = { |
| 908 | CSSPropertyPaddingBlockStart, |
| 909 | CSSPropertyPaddingBlockEnd, |
| 910 | }; |
| 911 | return StylePropertyShorthand(CSSPropertyPaddingBlock, paddingBlockProperties); |
| 912 | } |
| 913 | |
| 914 | StylePropertyShorthand paddingInlineShorthand() |
| 915 | { |
| 916 | static const CSSPropertyID paddingInlineProperties[] = { |
| 917 | CSSPropertyPaddingInlineStart, |
| 918 | CSSPropertyPaddingInlineEnd, |
| 919 | }; |
| 920 | return StylePropertyShorthand(CSSPropertyPaddingInline, paddingInlineProperties); |
| 921 | } |
| 922 | |
| 923 | StylePropertyShorthand pageBreakAfterShorthand() |
| 924 | { |
| 925 | static const CSSPropertyID pageBreakAfterProperties[] = { |
| 926 | CSSPropertyBreakAfter, |
| 927 | }; |
| 928 | return StylePropertyShorthand(CSSPropertyPageBreakAfter, pageBreakAfterProperties); |
| 929 | } |
| 930 | |
| 931 | StylePropertyShorthand pageBreakBeforeShorthand() |
| 932 | { |
| 933 | static const CSSPropertyID pageBreakBeforeProperties[] = { |
| 934 | CSSPropertyBreakBefore, |
| 935 | }; |
| 936 | return StylePropertyShorthand(CSSPropertyPageBreakBefore, pageBreakBeforeProperties); |
| 937 | } |
| 938 | |
| 939 | StylePropertyShorthand pageBreakInsideShorthand() |
| 940 | { |
| 941 | static const CSSPropertyID pageBreakInsideProperties[] = { |
| 942 | CSSPropertyBreakInside, |
| 943 | }; |
| 944 | return StylePropertyShorthand(CSSPropertyPageBreakInside, pageBreakInsideProperties); |
| 945 | } |
| 946 | |
| 947 | StylePropertyShorthand perspectiveOriginShorthand() |
| 948 | { |
| 949 | static const CSSPropertyID perspectiveOriginProperties[] = { |
| 950 | CSSPropertyPerspectiveOriginX, |
| 951 | CSSPropertyPerspectiveOriginY, |
| 952 | }; |
| 953 | return StylePropertyShorthand(CSSPropertyPerspectiveOrigin, perspectiveOriginProperties); |
| 954 | } |
| 955 | |
| 956 | StylePropertyShorthand placeContentShorthand() |
| 957 | { |
| 958 | static const CSSPropertyID placeContentProperties[] = { |
| 959 | CSSPropertyAlignContent, |
| 960 | CSSPropertyJustifyContent, |
| 961 | }; |
| 962 | return StylePropertyShorthand(CSSPropertyPlaceContent, placeContentProperties); |
| 963 | } |
| 964 | |
| 965 | StylePropertyShorthand placeItemsShorthand() |
| 966 | { |
| 967 | static const CSSPropertyID placeItemsProperties[] = { |
| 968 | CSSPropertyAlignItems, |
| 969 | CSSPropertyJustifyItems, |
| 970 | }; |
| 971 | return StylePropertyShorthand(CSSPropertyPlaceItems, placeItemsProperties); |
| 972 | } |
| 973 | |
| 974 | StylePropertyShorthand placeSelfShorthand() |
| 975 | { |
| 976 | static const CSSPropertyID placeSelfProperties[] = { |
| 977 | CSSPropertyAlignSelf, |
| 978 | CSSPropertyJustifySelf, |
| 979 | }; |
| 980 | return StylePropertyShorthand(CSSPropertyPlaceSelf, placeSelfProperties); |
| 981 | } |
| 982 | |
| 983 | StylePropertyShorthand transformOriginShorthand() |
| 984 | { |
| 985 | static const CSSPropertyID transformOriginProperties[] = { |
| 986 | CSSPropertyTransformOriginX, |
| 987 | CSSPropertyTransformOriginY, |
| 988 | CSSPropertyTransformOriginZ, |
| 989 | }; |
| 990 | return StylePropertyShorthand(CSSPropertyTransformOrigin, transformOriginProperties); |
| 991 | } |
| 992 | |
| 993 | StylePropertyShorthand transitionShorthand() |
| 994 | { |
| 995 | static const CSSPropertyID transitionProperties[] = { |
| 996 | CSSPropertyTransitionProperty, |
| 997 | CSSPropertyTransitionDuration, |
| 998 | CSSPropertyTransitionTimingFunction, |
| 999 | CSSPropertyTransitionDelay, |
| 1000 | }; |
| 1001 | return StylePropertyShorthand(CSSPropertyTransition, transitionProperties); |
| 1002 | } |
| 1003 | |
| 1004 | StylePropertyShorthand webkitBorderRadiusShorthand() |
| 1005 | { |
| 1006 | static const CSSPropertyID webkitBorderRadiusProperties[] = { |
| 1007 | CSSPropertyBorderTopLeftRadius, |
| 1008 | CSSPropertyBorderTopRightRadius, |
| 1009 | CSSPropertyBorderBottomRightRadius, |
| 1010 | CSSPropertyBorderBottomLeftRadius, |
| 1011 | }; |
| 1012 | return StylePropertyShorthand(CSSPropertyWebkitBorderRadius, webkitBorderRadiusProperties); |
| 1013 | } |
| 1014 | |
| 1015 | StylePropertyShorthand webkitColumnBreakAfterShorthand() |
| 1016 | { |
| 1017 | static const CSSPropertyID webkitColumnBreakAfterProperties[] = { |
| 1018 | CSSPropertyBreakAfter, |
| 1019 | }; |
| 1020 | return StylePropertyShorthand(CSSPropertyWebkitColumnBreakAfter, webkitColumnBreakAfterProperties); |
| 1021 | } |
| 1022 | |
| 1023 | StylePropertyShorthand webkitColumnBreakBeforeShorthand() |
| 1024 | { |
| 1025 | static const CSSPropertyID webkitColumnBreakBeforeProperties[] = { |
| 1026 | CSSPropertyBreakBefore, |
| 1027 | }; |
| 1028 | return StylePropertyShorthand(CSSPropertyWebkitColumnBreakBefore, webkitColumnBreakBeforeProperties); |
| 1029 | } |
| 1030 | |
| 1031 | StylePropertyShorthand webkitColumnBreakInsideShorthand() |
| 1032 | { |
| 1033 | static const CSSPropertyID webkitColumnBreakInsideProperties[] = { |
| 1034 | CSSPropertyBreakInside, |
| 1035 | }; |
| 1036 | return StylePropertyShorthand(CSSPropertyWebkitColumnBreakInside, webkitColumnBreakInsideProperties); |
| 1037 | } |
| 1038 | |
| 1039 | StylePropertyShorthand webkitMarginCollapseShorthand() |
| 1040 | { |
| 1041 | static const CSSPropertyID webkitMarginCollapseProperties[] = { |
| 1042 | CSSPropertyWebkitMarginBeforeCollapse, |
| 1043 | CSSPropertyWebkitMarginAfterCollapse, |
| 1044 | }; |
| 1045 | return StylePropertyShorthand(CSSPropertyWebkitMarginCollapse, webkitMarginCollapseProperties); |
| 1046 | } |
| 1047 | |
| 1048 | StylePropertyShorthand webkitMarqueeShorthand() |
| 1049 | { |
| 1050 | static const CSSPropertyID webkitMarqueeProperties[] = { |
| 1051 | CSSPropertyWebkitMarqueeDirection, |
| 1052 | CSSPropertyWebkitMarqueeIncrement, |
| 1053 | CSSPropertyWebkitMarqueeRepetition, |
| 1054 | CSSPropertyWebkitMarqueeStyle, |
| 1055 | CSSPropertyWebkitMarqueeSpeed, |
| 1056 | }; |
| 1057 | return StylePropertyShorthand(CSSPropertyWebkitMarquee, webkitMarqueeProperties); |
| 1058 | } |
| 1059 | |
| 1060 | StylePropertyShorthand webkitMaskShorthand() |
| 1061 | { |
| 1062 | static const CSSPropertyID webkitMaskProperties[] = { |
| 1063 | CSSPropertyWebkitMaskImage, |
| 1064 | CSSPropertyWebkitMaskSourceType, |
| 1065 | CSSPropertyWebkitMaskPositionX, |
| 1066 | CSSPropertyWebkitMaskPositionY, |
| 1067 | CSSPropertyWebkitMaskSize, |
| 1068 | CSSPropertyWebkitMaskRepeatX, |
| 1069 | CSSPropertyWebkitMaskRepeatY, |
| 1070 | CSSPropertyWebkitMaskOrigin, |
| 1071 | CSSPropertyWebkitMaskClip, |
| 1072 | }; |
| 1073 | return StylePropertyShorthand(CSSPropertyWebkitMask, webkitMaskProperties); |
| 1074 | } |
| 1075 | |
| 1076 | StylePropertyShorthand webkitMaskPositionShorthand() |
| 1077 | { |
| 1078 | static const CSSPropertyID webkitMaskPositionProperties[] = { |
| 1079 | CSSPropertyWebkitMaskPositionX, |
| 1080 | CSSPropertyWebkitMaskPositionY, |
| 1081 | }; |
| 1082 | return StylePropertyShorthand(CSSPropertyWebkitMaskPosition, webkitMaskPositionProperties); |
| 1083 | } |
| 1084 | |
| 1085 | StylePropertyShorthand webkitMaskRepeatShorthand() |
| 1086 | { |
| 1087 | static const CSSPropertyID webkitMaskRepeatProperties[] = { |
| 1088 | CSSPropertyWebkitMaskRepeatX, |
| 1089 | CSSPropertyWebkitMaskRepeatY, |
| 1090 | }; |
| 1091 | return StylePropertyShorthand(CSSPropertyWebkitMaskRepeat, webkitMaskRepeatProperties); |
| 1092 | } |
| 1093 | |
| 1094 | StylePropertyShorthand webkitTextDecorationShorthand() |
| 1095 | { |
| 1096 | static const CSSPropertyID webkitTextDecorationProperties[] = { |
| 1097 | CSSPropertyTextDecorationLine, |
| 1098 | CSSPropertyTextDecorationStyle, |
| 1099 | CSSPropertyTextDecorationColor, |
| 1100 | }; |
| 1101 | return StylePropertyShorthand(CSSPropertyWebkitTextDecoration, webkitTextDecorationProperties); |
| 1102 | } |
| 1103 | |
| 1104 | StylePropertyShorthand webkitTextEmphasisShorthand() |
| 1105 | { |
| 1106 | static const CSSPropertyID webkitTextEmphasisProperties[] = { |
| 1107 | CSSPropertyWebkitTextEmphasisStyle, |
| 1108 | CSSPropertyWebkitTextEmphasisColor, |
| 1109 | }; |
| 1110 | return StylePropertyShorthand(CSSPropertyWebkitTextEmphasis, webkitTextEmphasisProperties); |
| 1111 | } |
| 1112 | |
| 1113 | StylePropertyShorthand webkitTextStrokeShorthand() |
| 1114 | { |
| 1115 | static const CSSPropertyID webkitTextStrokeProperties[] = { |
| 1116 | CSSPropertyWebkitTextStrokeWidth, |
| 1117 | CSSPropertyWebkitTextStrokeColor, |
| 1118 | }; |
| 1119 | return StylePropertyShorthand(CSSPropertyWebkitTextStroke, webkitTextStrokeProperties); |
| 1120 | } |
| 1121 | |
| 1122 | StylePropertyShorthand shorthandForProperty(CSSPropertyID propertyID) |
| 1123 | { |
| 1124 | switch (propertyID) { |
| 1125 | case CSSPropertyAll: |
| 1126 | return allShorthand(); |
| 1127 | case CSSPropertyAnimation: |
| 1128 | return animationShorthand(); |
| 1129 | case CSSPropertyBackground: |
| 1130 | return backgroundShorthand(); |
| 1131 | case CSSPropertyBackgroundPosition: |
| 1132 | return backgroundPositionShorthand(); |
| 1133 | case CSSPropertyBackgroundRepeat: |
| 1134 | return backgroundRepeatShorthand(); |
| 1135 | case CSSPropertyBorder: |
| 1136 | return borderShorthand(); |
| 1137 | case CSSPropertyBorderBlock: |
| 1138 | return borderBlockShorthand(); |
| 1139 | case CSSPropertyBorderBlockColor: |
| 1140 | return borderBlockColorShorthand(); |
| 1141 | case CSSPropertyBorderBlockEnd: |
| 1142 | return borderBlockEndShorthand(); |
| 1143 | case CSSPropertyBorderBlockStart: |
| 1144 | return borderBlockStartShorthand(); |
| 1145 | case CSSPropertyBorderBlockStyle: |
| 1146 | return borderBlockStyleShorthand(); |
| 1147 | case CSSPropertyBorderBlockWidth: |
| 1148 | return borderBlockWidthShorthand(); |
| 1149 | case CSSPropertyBorderBottom: |
| 1150 | return borderBottomShorthand(); |
| 1151 | case CSSPropertyBorderColor: |
| 1152 | return borderColorShorthand(); |
| 1153 | case CSSPropertyBorderImage: |
| 1154 | return borderImageShorthand(); |
| 1155 | case CSSPropertyBorderInline: |
| 1156 | return borderInlineShorthand(); |
| 1157 | case CSSPropertyBorderInlineColor: |
| 1158 | return borderInlineColorShorthand(); |
| 1159 | case CSSPropertyBorderInlineEnd: |
| 1160 | return borderInlineEndShorthand(); |
| 1161 | case CSSPropertyBorderInlineStart: |
| 1162 | return borderInlineStartShorthand(); |
| 1163 | case CSSPropertyBorderInlineStyle: |
| 1164 | return borderInlineStyleShorthand(); |
| 1165 | case CSSPropertyBorderInlineWidth: |
| 1166 | return borderInlineWidthShorthand(); |
| 1167 | case CSSPropertyBorderLeft: |
| 1168 | return borderLeftShorthand(); |
| 1169 | case CSSPropertyBorderRadius: |
| 1170 | return borderRadiusShorthand(); |
| 1171 | case CSSPropertyBorderRight: |
| 1172 | return borderRightShorthand(); |
| 1173 | case CSSPropertyBorderSpacing: |
| 1174 | return borderSpacingShorthand(); |
| 1175 | case CSSPropertyBorderStyle: |
| 1176 | return borderStyleShorthand(); |
| 1177 | case CSSPropertyBorderTop: |
| 1178 | return borderTopShorthand(); |
| 1179 | case CSSPropertyBorderWidth: |
| 1180 | return borderWidthShorthand(); |
| 1181 | case CSSPropertyColumnRule: |
| 1182 | return columnRuleShorthand(); |
| 1183 | case CSSPropertyColumns: |
| 1184 | return columnsShorthand(); |
| 1185 | case CSSPropertyFlex: |
| 1186 | return flexShorthand(); |
| 1187 | case CSSPropertyFlexFlow: |
| 1188 | return flexFlowShorthand(); |
| 1189 | case CSSPropertyFont: |
| 1190 | return fontShorthand(); |
| 1191 | case CSSPropertyFontVariant: |
| 1192 | return fontVariantShorthand(); |
| 1193 | case CSSPropertyGap: |
| 1194 | return gapShorthand(); |
| 1195 | case CSSPropertyGrid: |
| 1196 | return gridShorthand(); |
| 1197 | case CSSPropertyGridArea: |
| 1198 | return gridAreaShorthand(); |
| 1199 | case CSSPropertyGridColumn: |
| 1200 | return gridColumnShorthand(); |
| 1201 | case CSSPropertyGridRow: |
| 1202 | return gridRowShorthand(); |
| 1203 | case CSSPropertyGridTemplate: |
| 1204 | return gridTemplateShorthand(); |
| 1205 | case CSSPropertyInset: |
| 1206 | return insetShorthand(); |
| 1207 | case CSSPropertyInsetBlock: |
| 1208 | return insetBlockShorthand(); |
| 1209 | case CSSPropertyInsetInline: |
| 1210 | return insetInlineShorthand(); |
| 1211 | case CSSPropertyListStyle: |
| 1212 | return listStyleShorthand(); |
| 1213 | case CSSPropertyMargin: |
| 1214 | return marginShorthand(); |
| 1215 | case CSSPropertyMarginBlock: |
| 1216 | return marginBlockShorthand(); |
| 1217 | case CSSPropertyMarginInline: |
| 1218 | return marginInlineShorthand(); |
| 1219 | case CSSPropertyMarker: |
| 1220 | return markerShorthand(); |
| 1221 | case CSSPropertyOutline: |
| 1222 | return outlineShorthand(); |
| 1223 | case CSSPropertyOverflow: |
| 1224 | return overflowShorthand(); |
| 1225 | case CSSPropertyPadding: |
| 1226 | return paddingShorthand(); |
| 1227 | case CSSPropertyPaddingBlock: |
| 1228 | return paddingBlockShorthand(); |
| 1229 | case CSSPropertyPaddingInline: |
| 1230 | return paddingInlineShorthand(); |
| 1231 | case CSSPropertyPageBreakAfter: |
| 1232 | return pageBreakAfterShorthand(); |
| 1233 | case CSSPropertyPageBreakBefore: |
| 1234 | return pageBreakBeforeShorthand(); |
| 1235 | case CSSPropertyPageBreakInside: |
| 1236 | return pageBreakInsideShorthand(); |
| 1237 | case CSSPropertyPerspectiveOrigin: |
| 1238 | return perspectiveOriginShorthand(); |
| 1239 | case CSSPropertyPlaceContent: |
| 1240 | return placeContentShorthand(); |
| 1241 | case CSSPropertyPlaceItems: |
| 1242 | return placeItemsShorthand(); |
| 1243 | case CSSPropertyPlaceSelf: |
| 1244 | return placeSelfShorthand(); |
| 1245 | case CSSPropertyTransformOrigin: |
| 1246 | return transformOriginShorthand(); |
| 1247 | case CSSPropertyTransition: |
| 1248 | return transitionShorthand(); |
| 1249 | case CSSPropertyWebkitBorderRadius: |
| 1250 | return webkitBorderRadiusShorthand(); |
| 1251 | case CSSPropertyWebkitColumnBreakAfter: |
| 1252 | return webkitColumnBreakAfterShorthand(); |
| 1253 | case CSSPropertyWebkitColumnBreakBefore: |
| 1254 | return webkitColumnBreakBeforeShorthand(); |
| 1255 | case CSSPropertyWebkitColumnBreakInside: |
| 1256 | return webkitColumnBreakInsideShorthand(); |
| 1257 | case CSSPropertyWebkitMarginCollapse: |
| 1258 | return webkitMarginCollapseShorthand(); |
| 1259 | case CSSPropertyWebkitMarquee: |
| 1260 | return webkitMarqueeShorthand(); |
| 1261 | case CSSPropertyWebkitMask: |
| 1262 | return webkitMaskShorthand(); |
| 1263 | case CSSPropertyWebkitMaskPosition: |
| 1264 | return webkitMaskPositionShorthand(); |
| 1265 | case CSSPropertyWebkitMaskRepeat: |
| 1266 | return webkitMaskRepeatShorthand(); |
| 1267 | case CSSPropertyWebkitTextDecoration: |
| 1268 | return webkitTextDecorationShorthand(); |
| 1269 | case CSSPropertyWebkitTextEmphasis: |
| 1270 | return webkitTextEmphasisShorthand(); |
| 1271 | case CSSPropertyWebkitTextStroke: |
| 1272 | return webkitTextStrokeShorthand(); |
| 1273 | default: |
| 1274 | return { }; |
| 1275 | } |
| 1276 | } |
| 1277 | StylePropertyShorthandVector matchingShorthandsForLonghand(CSSPropertyID propertyID) |
| 1278 | { |
| 1279 | switch (propertyID) { |
| 1280 | case CSSPropertyAnimationDelay: |
| 1281 | case CSSPropertyAnimationDirection: |
| 1282 | case CSSPropertyAnimationDuration: |
| 1283 | case CSSPropertyAnimationFillMode: |
| 1284 | case CSSPropertyAnimationIterationCount: |
| 1285 | case CSSPropertyAnimationName: |
| 1286 | case CSSPropertyAnimationPlayState: |
| 1287 | case CSSPropertyAnimationTimingFunction: |
| 1288 | return StylePropertyShorthandVector{allShorthand(), animationShorthand()}; |
| 1289 | case CSSPropertyBackgroundPositionX: |
| 1290 | case CSSPropertyBackgroundPositionY: |
| 1291 | return StylePropertyShorthandVector{allShorthand(), backgroundShorthand(), backgroundPositionShorthand()}; |
| 1292 | case CSSPropertyBackgroundRepeatX: |
| 1293 | case CSSPropertyBackgroundRepeatY: |
| 1294 | return StylePropertyShorthandVector{allShorthand(), backgroundShorthand(), backgroundRepeatShorthand()}; |
| 1295 | case CSSPropertyBackgroundAttachment: |
| 1296 | case CSSPropertyBackgroundClip: |
| 1297 | case CSSPropertyBackgroundColor: |
| 1298 | case CSSPropertyBackgroundImage: |
| 1299 | case CSSPropertyBackgroundOrigin: |
| 1300 | case CSSPropertyBackgroundSize: |
| 1301 | return StylePropertyShorthandVector{allShorthand(), backgroundShorthand()}; |
| 1302 | case CSSPropertyBorderBlockEndColor: |
| 1303 | return StylePropertyShorthandVector{allShorthand(), borderBlockShorthand(), borderBlockColorShorthand(), borderBlockEndShorthand()}; |
| 1304 | case CSSPropertyBorderBlockStartColor: |
| 1305 | return StylePropertyShorthandVector{allShorthand(), borderBlockShorthand(), borderBlockColorShorthand(), borderBlockStartShorthand()}; |
| 1306 | case CSSPropertyBorderBlockEndStyle: |
| 1307 | return StylePropertyShorthandVector{allShorthand(), borderBlockShorthand(), borderBlockEndShorthand(), borderBlockStyleShorthand()}; |
| 1308 | case CSSPropertyBorderBlockEndWidth: |
| 1309 | return StylePropertyShorthandVector{allShorthand(), borderBlockShorthand(), borderBlockEndShorthand(), borderBlockWidthShorthand()}; |
| 1310 | case CSSPropertyBorderBlockStartStyle: |
| 1311 | return StylePropertyShorthandVector{allShorthand(), borderBlockShorthand(), borderBlockStartShorthand(), borderBlockStyleShorthand()}; |
| 1312 | case CSSPropertyBorderBlockStartWidth: |
| 1313 | return StylePropertyShorthandVector{allShorthand(), borderBlockShorthand(), borderBlockStartShorthand(), borderBlockWidthShorthand()}; |
| 1314 | case CSSPropertyBorderImageOutset: |
| 1315 | case CSSPropertyBorderImageRepeat: |
| 1316 | case CSSPropertyBorderImageSlice: |
| 1317 | case CSSPropertyBorderImageSource: |
| 1318 | case CSSPropertyBorderImageWidth: |
| 1319 | return StylePropertyShorthandVector{allShorthand(), borderImageShorthand()}; |
| 1320 | case CSSPropertyBorderInlineEndColor: |
| 1321 | return StylePropertyShorthandVector{allShorthand(), borderInlineShorthand(), borderInlineColorShorthand(), borderInlineEndShorthand()}; |
| 1322 | case CSSPropertyBorderInlineStartColor: |
| 1323 | return StylePropertyShorthandVector{allShorthand(), borderInlineShorthand(), borderInlineColorShorthand(), borderInlineStartShorthand()}; |
| 1324 | case CSSPropertyBorderInlineEndStyle: |
| 1325 | return StylePropertyShorthandVector{allShorthand(), borderInlineShorthand(), borderInlineEndShorthand(), borderInlineStyleShorthand()}; |
| 1326 | case CSSPropertyBorderInlineEndWidth: |
| 1327 | return StylePropertyShorthandVector{allShorthand(), borderInlineShorthand(), borderInlineEndShorthand(), borderInlineWidthShorthand()}; |
| 1328 | case CSSPropertyBorderInlineStartStyle: |
| 1329 | return StylePropertyShorthandVector{allShorthand(), borderInlineShorthand(), borderInlineStartShorthand(), borderInlineStyleShorthand()}; |
| 1330 | case CSSPropertyBorderInlineStartWidth: |
| 1331 | return StylePropertyShorthandVector{allShorthand(), borderInlineShorthand(), borderInlineStartShorthand(), borderInlineWidthShorthand()}; |
| 1332 | case CSSPropertyBorderBottomColor: |
| 1333 | return StylePropertyShorthandVector{allShorthand(), borderShorthand(), borderBottomShorthand(), borderColorShorthand()}; |
| 1334 | case CSSPropertyBorderBottomStyle: |
| 1335 | return StylePropertyShorthandVector{allShorthand(), borderShorthand(), borderBottomShorthand(), borderStyleShorthand()}; |
| 1336 | case CSSPropertyBorderBottomWidth: |
| 1337 | return StylePropertyShorthandVector{allShorthand(), borderShorthand(), borderBottomShorthand(), borderWidthShorthand()}; |
| 1338 | case CSSPropertyBorderLeftColor: |
| 1339 | return StylePropertyShorthandVector{allShorthand(), borderShorthand(), borderColorShorthand(), borderLeftShorthand()}; |
| 1340 | case CSSPropertyBorderRightColor: |
| 1341 | return StylePropertyShorthandVector{allShorthand(), borderShorthand(), borderColorShorthand(), borderRightShorthand()}; |
| 1342 | case CSSPropertyBorderTopColor: |
| 1343 | return StylePropertyShorthandVector{allShorthand(), borderShorthand(), borderColorShorthand(), borderTopShorthand()}; |
| 1344 | case CSSPropertyBorderLeftStyle: |
| 1345 | return StylePropertyShorthandVector{allShorthand(), borderShorthand(), borderLeftShorthand(), borderStyleShorthand()}; |
| 1346 | case CSSPropertyBorderLeftWidth: |
| 1347 | return StylePropertyShorthandVector{allShorthand(), borderShorthand(), borderLeftShorthand(), borderWidthShorthand()}; |
| 1348 | case CSSPropertyBorderRightStyle: |
| 1349 | return StylePropertyShorthandVector{allShorthand(), borderShorthand(), borderRightShorthand(), borderStyleShorthand()}; |
| 1350 | case CSSPropertyBorderRightWidth: |
| 1351 | return StylePropertyShorthandVector{allShorthand(), borderShorthand(), borderRightShorthand(), borderWidthShorthand()}; |
| 1352 | case CSSPropertyBorderTopStyle: |
| 1353 | return StylePropertyShorthandVector{allShorthand(), borderShorthand(), borderStyleShorthand(), borderTopShorthand()}; |
| 1354 | case CSSPropertyBorderTopWidth: |
| 1355 | return StylePropertyShorthandVector{allShorthand(), borderShorthand(), borderTopShorthand(), borderWidthShorthand()}; |
| 1356 | case CSSPropertyWebkitBorderHorizontalSpacing: |
| 1357 | case CSSPropertyWebkitBorderVerticalSpacing: |
| 1358 | return StylePropertyShorthandVector{allShorthand(), borderSpacingShorthand()}; |
| 1359 | case CSSPropertyColumnRuleColor: |
| 1360 | case CSSPropertyColumnRuleStyle: |
| 1361 | case CSSPropertyColumnRuleWidth: |
| 1362 | return StylePropertyShorthandVector{allShorthand(), columnRuleShorthand()}; |
| 1363 | case CSSPropertyColumnCount: |
| 1364 | case CSSPropertyColumnWidth: |
| 1365 | return StylePropertyShorthandVector{allShorthand(), columnsShorthand()}; |
| 1366 | case CSSPropertyFlexDirection: |
| 1367 | case CSSPropertyFlexWrap: |
| 1368 | return StylePropertyShorthandVector{allShorthand(), flexFlowShorthand()}; |
| 1369 | case CSSPropertyFlexBasis: |
| 1370 | case CSSPropertyFlexGrow: |
| 1371 | case CSSPropertyFlexShrink: |
| 1372 | return StylePropertyShorthandVector{allShorthand(), flexShorthand()}; |
| 1373 | case CSSPropertyFontVariantCaps: |
| 1374 | return StylePropertyShorthandVector{allShorthand(), fontShorthand(), fontVariantShorthand()}; |
| 1375 | case CSSPropertyFontFamily: |
| 1376 | case CSSPropertyFontSize: |
| 1377 | case CSSPropertyFontStretch: |
| 1378 | case CSSPropertyFontStyle: |
| 1379 | case CSSPropertyFontWeight: |
| 1380 | case CSSPropertyLineHeight: |
| 1381 | return StylePropertyShorthandVector{allShorthand(), fontShorthand()}; |
| 1382 | case CSSPropertyFontVariantAlternates: |
| 1383 | case CSSPropertyFontVariantEastAsian: |
| 1384 | case CSSPropertyFontVariantLigatures: |
| 1385 | case CSSPropertyFontVariantNumeric: |
| 1386 | case CSSPropertyFontVariantPosition: |
| 1387 | return StylePropertyShorthandVector{allShorthand(), fontVariantShorthand()}; |
| 1388 | case CSSPropertyColumnGap: |
| 1389 | case CSSPropertyRowGap: |
| 1390 | return StylePropertyShorthandVector{allShorthand(), gapShorthand()}; |
| 1391 | case CSSPropertyGridColumnEnd: |
| 1392 | case CSSPropertyGridColumnStart: |
| 1393 | return StylePropertyShorthandVector{allShorthand(), gridAreaShorthand(), gridColumnShorthand()}; |
| 1394 | case CSSPropertyGridRowEnd: |
| 1395 | case CSSPropertyGridRowStart: |
| 1396 | return StylePropertyShorthandVector{allShorthand(), gridAreaShorthand(), gridRowShorthand()}; |
| 1397 | case CSSPropertyGridTemplateAreas: |
| 1398 | case CSSPropertyGridTemplateColumns: |
| 1399 | case CSSPropertyGridTemplateRows: |
| 1400 | return StylePropertyShorthandVector{allShorthand(), gridShorthand(), gridTemplateShorthand()}; |
| 1401 | case CSSPropertyGridAutoColumns: |
| 1402 | case CSSPropertyGridAutoFlow: |
| 1403 | case CSSPropertyGridAutoRows: |
| 1404 | return StylePropertyShorthandVector{allShorthand(), gridShorthand()}; |
| 1405 | case CSSPropertyInsetBlockEnd: |
| 1406 | case CSSPropertyInsetBlockStart: |
| 1407 | return StylePropertyShorthandVector{allShorthand(), insetBlockShorthand()}; |
| 1408 | case CSSPropertyInsetInlineEnd: |
| 1409 | case CSSPropertyInsetInlineStart: |
| 1410 | return StylePropertyShorthandVector{allShorthand(), insetInlineShorthand()}; |
| 1411 | case CSSPropertyBottom: |
| 1412 | case CSSPropertyLeft: |
| 1413 | case CSSPropertyRight: |
| 1414 | case CSSPropertyTop: |
| 1415 | return StylePropertyShorthandVector{allShorthand(), insetShorthand()}; |
| 1416 | case CSSPropertyListStyleImage: |
| 1417 | case CSSPropertyListStylePosition: |
| 1418 | case CSSPropertyListStyleType: |
| 1419 | return StylePropertyShorthandVector{allShorthand(), listStyleShorthand()}; |
| 1420 | case CSSPropertyMarginBlockEnd: |
| 1421 | case CSSPropertyMarginBlockStart: |
| 1422 | return StylePropertyShorthandVector{allShorthand(), marginBlockShorthand()}; |
| 1423 | case CSSPropertyMarginInlineEnd: |
| 1424 | case CSSPropertyMarginInlineStart: |
| 1425 | return StylePropertyShorthandVector{allShorthand(), marginInlineShorthand()}; |
| 1426 | case CSSPropertyMarginBottom: |
| 1427 | case CSSPropertyMarginLeft: |
| 1428 | case CSSPropertyMarginRight: |
| 1429 | case CSSPropertyMarginTop: |
| 1430 | return StylePropertyShorthandVector{allShorthand(), marginShorthand()}; |
| 1431 | case CSSPropertyMarkerEnd: |
| 1432 | case CSSPropertyMarkerMid: |
| 1433 | case CSSPropertyMarkerStart: |
| 1434 | return StylePropertyShorthandVector{allShorthand(), markerShorthand()}; |
| 1435 | case CSSPropertyOutlineColor: |
| 1436 | case CSSPropertyOutlineStyle: |
| 1437 | case CSSPropertyOutlineWidth: |
| 1438 | return StylePropertyShorthandVector{allShorthand(), outlineShorthand()}; |
| 1439 | case CSSPropertyOverflowX: |
| 1440 | case CSSPropertyOverflowY: |
| 1441 | return StylePropertyShorthandVector{allShorthand(), overflowShorthand()}; |
| 1442 | case CSSPropertyPaddingBlockEnd: |
| 1443 | case CSSPropertyPaddingBlockStart: |
| 1444 | return StylePropertyShorthandVector{allShorthand(), paddingBlockShorthand()}; |
| 1445 | case CSSPropertyPaddingInlineEnd: |
| 1446 | case CSSPropertyPaddingInlineStart: |
| 1447 | return StylePropertyShorthandVector{allShorthand(), paddingInlineShorthand()}; |
| 1448 | case CSSPropertyPaddingBottom: |
| 1449 | case CSSPropertyPaddingLeft: |
| 1450 | case CSSPropertyPaddingRight: |
| 1451 | case CSSPropertyPaddingTop: |
| 1452 | return StylePropertyShorthandVector{allShorthand(), paddingShorthand()}; |
| 1453 | case CSSPropertyPerspectiveOriginX: |
| 1454 | case CSSPropertyPerspectiveOriginY: |
| 1455 | return StylePropertyShorthandVector{allShorthand(), perspectiveOriginShorthand()}; |
| 1456 | case CSSPropertyAlignContent: |
| 1457 | case CSSPropertyJustifyContent: |
| 1458 | return StylePropertyShorthandVector{allShorthand(), placeContentShorthand()}; |
| 1459 | case CSSPropertyAlignItems: |
| 1460 | case CSSPropertyJustifyItems: |
| 1461 | return StylePropertyShorthandVector{allShorthand(), placeItemsShorthand()}; |
| 1462 | case CSSPropertyAlignSelf: |
| 1463 | case CSSPropertyJustifySelf: |
| 1464 | return StylePropertyShorthandVector{allShorthand(), placeSelfShorthand()}; |
| 1465 | case CSSPropertyTransformOriginX: |
| 1466 | case CSSPropertyTransformOriginY: |
| 1467 | case CSSPropertyTransformOriginZ: |
| 1468 | return StylePropertyShorthandVector{allShorthand(), transformOriginShorthand()}; |
| 1469 | case CSSPropertyTransitionDelay: |
| 1470 | case CSSPropertyTransitionDuration: |
| 1471 | case CSSPropertyTransitionProperty: |
| 1472 | case CSSPropertyTransitionTimingFunction: |
| 1473 | return StylePropertyShorthandVector{allShorthand(), transitionShorthand()}; |
| 1474 | case CSSPropertyAppleColorFilter: |
| 1475 | case CSSPropertyWebkitAppearance: |
| 1476 | case CSSPropertyWebkitAspectRatio: |
| 1477 | case CSSPropertyWebkitBackfaceVisibility: |
| 1478 | case CSSPropertyWebkitBackgroundClip: |
| 1479 | case CSSPropertyWebkitBackgroundComposite: |
| 1480 | case CSSPropertyWebkitBackgroundOrigin: |
| 1481 | case CSSPropertyWebkitBackgroundSize: |
| 1482 | case CSSPropertyWebkitBorderFit: |
| 1483 | case CSSPropertyWebkitBorderImage: |
| 1484 | case CSSPropertyWebkitBoxAlign: |
| 1485 | case CSSPropertyWebkitBoxDecorationBreak: |
| 1486 | case CSSPropertyWebkitBoxDirection: |
| 1487 | case CSSPropertyWebkitBoxFlex: |
| 1488 | case CSSPropertyWebkitBoxFlexGroup: |
| 1489 | case CSSPropertyWebkitBoxLines: |
| 1490 | case CSSPropertyWebkitBoxOrdinalGroup: |
| 1491 | case CSSPropertyWebkitBoxOrient: |
| 1492 | case CSSPropertyWebkitBoxPack: |
| 1493 | case CSSPropertyWebkitBoxReflect: |
| 1494 | case CSSPropertyWebkitBoxShadow: |
| 1495 | case CSSPropertyWebkitClipPath: |
| 1496 | case CSSPropertyWebkitColumnAxis: |
| 1497 | case CSSPropertyWebkitColumnProgression: |
| 1498 | case CSSPropertyWebkitFontKerning: |
| 1499 | case CSSPropertyWebkitFontSizeDelta: |
| 1500 | case CSSPropertyWebkitFontSmoothing: |
| 1501 | case CSSPropertyWebkitHyphenateCharacter: |
| 1502 | case CSSPropertyWebkitHyphenateLimitAfter: |
| 1503 | case CSSPropertyWebkitHyphenateLimitBefore: |
| 1504 | case CSSPropertyWebkitHyphenateLimitLines: |
| 1505 | case CSSPropertyWebkitHyphens: |
| 1506 | case CSSPropertyWebkitInitialLetter: |
| 1507 | case CSSPropertyWebkitLineAlign: |
| 1508 | case CSSPropertyWebkitLineBoxContain: |
| 1509 | case CSSPropertyWebkitLineClamp: |
| 1510 | case CSSPropertyWebkitLineGrid: |
| 1511 | case CSSPropertyWebkitLineSnap: |
| 1512 | case CSSPropertyWebkitLocale: |
| 1513 | case CSSPropertyWebkitMarginBottomCollapse: |
| 1514 | case CSSPropertyWebkitMarginTopCollapse: |
| 1515 | case CSSPropertyWebkitMaskBoxImage: |
| 1516 | case CSSPropertyWebkitMaskBoxImageOutset: |
| 1517 | case CSSPropertyWebkitMaskBoxImageRepeat: |
| 1518 | case CSSPropertyWebkitMaskBoxImageSlice: |
| 1519 | case CSSPropertyWebkitMaskBoxImageSource: |
| 1520 | case CSSPropertyWebkitMaskBoxImageWidth: |
| 1521 | case CSSPropertyWebkitMaskComposite: |
| 1522 | case CSSPropertyWebkitNbspMode: |
| 1523 | case CSSPropertyWebkitPrintColorAdjust: |
| 1524 | case CSSPropertyWebkitRtlOrdering: |
| 1525 | case CSSPropertyWebkitRubyPosition: |
| 1526 | case CSSPropertyWebkitTapHighlightColor: |
| 1527 | case CSSPropertyWebkitTextCombine: |
| 1528 | case CSSPropertyWebkitTextDecorationsInEffect: |
| 1529 | case CSSPropertyWebkitTextEmphasisPosition: |
| 1530 | case CSSPropertyWebkitTextFillColor: |
| 1531 | case CSSPropertyWebkitTextOrientation: |
| 1532 | case CSSPropertyWebkitTextSecurity: |
| 1533 | case CSSPropertyWebkitTextZoom: |
| 1534 | case CSSPropertyWebkitTransformStyle: |
| 1535 | case CSSPropertyWebkitUserDrag: |
| 1536 | case CSSPropertyWebkitUserModify: |
| 1537 | case CSSPropertyWebkitUserSelect: |
| 1538 | case CSSPropertyAlignmentBaseline: |
| 1539 | case CSSPropertyAlt: |
| 1540 | case CSSPropertyBackgroundBlendMode: |
| 1541 | case CSSPropertyBaselineShift: |
| 1542 | case CSSPropertyBlockSize: |
| 1543 | case CSSPropertyBorderCollapse: |
| 1544 | case CSSPropertyBoxShadow: |
| 1545 | case CSSPropertyBoxSizing: |
| 1546 | case CSSPropertyBufferedRendering: |
| 1547 | case CSSPropertyCaptionSide: |
| 1548 | case CSSPropertyCaretColor: |
| 1549 | case CSSPropertyClear: |
| 1550 | case CSSPropertyClip: |
| 1551 | case CSSPropertyClipPath: |
| 1552 | case CSSPropertyClipRule: |
| 1553 | case CSSPropertyColor: |
| 1554 | case CSSPropertyColorInterpolation: |
| 1555 | case CSSPropertyColorInterpolationFilters: |
| 1556 | case CSSPropertyColorProfile: |
| 1557 | case CSSPropertyColorRendering: |
| 1558 | case CSSPropertyColorScheme: |
| 1559 | case CSSPropertyColumnFill: |
| 1560 | case CSSPropertyColumnSpan: |
| 1561 | case CSSPropertyContent: |
| 1562 | case CSSPropertyCounterIncrement: |
| 1563 | case CSSPropertyCounterReset: |
| 1564 | case CSSPropertyCursor: |
| 1565 | case CSSPropertyCx: |
| 1566 | case CSSPropertyCy: |
| 1567 | case CSSPropertyDisplay: |
| 1568 | case CSSPropertyDominantBaseline: |
| 1569 | case CSSPropertyEmptyCells: |
| 1570 | case CSSPropertyEnableBackground: |
| 1571 | case CSSPropertyFill: |
| 1572 | case CSSPropertyFillOpacity: |
| 1573 | case CSSPropertyFillRule: |
| 1574 | case CSSPropertyFilter: |
| 1575 | case CSSPropertyFloat: |
| 1576 | case CSSPropertyFloodColor: |
| 1577 | case CSSPropertyFloodOpacity: |
| 1578 | case CSSPropertyFontDisplay: |
| 1579 | case CSSPropertyFontFeatureSettings: |
| 1580 | case CSSPropertyFontOpticalSizing: |
| 1581 | case CSSPropertyFontSynthesis: |
| 1582 | case CSSPropertyFontVariationSettings: |
| 1583 | case CSSPropertyGlyphOrientationHorizontal: |
| 1584 | case CSSPropertyGlyphOrientationVertical: |
| 1585 | case CSSPropertyHangingPunctuation: |
| 1586 | case CSSPropertyHeight: |
| 1587 | case CSSPropertyImageRendering: |
| 1588 | case CSSPropertyInlineSize: |
| 1589 | case CSSPropertyKerning: |
| 1590 | case CSSPropertyLetterSpacing: |
| 1591 | case CSSPropertyLightingColor: |
| 1592 | case CSSPropertyLineBreak: |
| 1593 | case CSSPropertyMask: |
| 1594 | case CSSPropertyMaskType: |
| 1595 | case CSSPropertyMaxBlockSize: |
| 1596 | case CSSPropertyMaxHeight: |
| 1597 | case CSSPropertyMaxInlineSize: |
| 1598 | case CSSPropertyMaxWidth: |
| 1599 | case CSSPropertyMinBlockSize: |
| 1600 | case CSSPropertyMinHeight: |
| 1601 | case CSSPropertyMinInlineSize: |
| 1602 | case CSSPropertyMinWidth: |
| 1603 | case CSSPropertyObjectFit: |
| 1604 | case CSSPropertyObjectPosition: |
| 1605 | case CSSPropertyOpacity: |
| 1606 | case CSSPropertyOrder: |
| 1607 | case CSSPropertyOrphans: |
| 1608 | case CSSPropertyOutlineOffset: |
| 1609 | case CSSPropertyOverflowWrap: |
| 1610 | case CSSPropertyPage: |
| 1611 | case CSSPropertyPaintOrder: |
| 1612 | case CSSPropertyPerspective: |
| 1613 | case CSSPropertyPointerEvents: |
| 1614 | case CSSPropertyPosition: |
| 1615 | case CSSPropertyQuotes: |
| 1616 | case CSSPropertyR: |
| 1617 | case CSSPropertyResize: |
| 1618 | case CSSPropertyRx: |
| 1619 | case CSSPropertyRy: |
| 1620 | case CSSPropertyShapeImageThreshold: |
| 1621 | case CSSPropertyShapeMargin: |
| 1622 | case CSSPropertyShapeOutside: |
| 1623 | case CSSPropertyShapeRendering: |
| 1624 | case CSSPropertySize: |
| 1625 | case CSSPropertySpeakAs: |
| 1626 | case CSSPropertySrc: |
| 1627 | case CSSPropertyStopColor: |
| 1628 | case CSSPropertyStopOpacity: |
| 1629 | case CSSPropertyStroke: |
| 1630 | case CSSPropertyStrokeColor: |
| 1631 | case CSSPropertyStrokeDasharray: |
| 1632 | case CSSPropertyStrokeDashoffset: |
| 1633 | case CSSPropertyStrokeLinecap: |
| 1634 | case CSSPropertyStrokeLinejoin: |
| 1635 | case CSSPropertyStrokeMiterlimit: |
| 1636 | case CSSPropertyStrokeOpacity: |
| 1637 | case CSSPropertyStrokeWidth: |
| 1638 | case CSSPropertyTabSize: |
| 1639 | case CSSPropertyTableLayout: |
| 1640 | case CSSPropertyTextAlign: |
| 1641 | case CSSPropertyTextAnchor: |
| 1642 | case CSSPropertyTextDecoration: |
| 1643 | case CSSPropertyTextDecorationSkip: |
| 1644 | case CSSPropertyTextDecorationThickness: |
| 1645 | case CSSPropertyTextIndent: |
| 1646 | case CSSPropertyTextOverflow: |
| 1647 | case CSSPropertyTextRendering: |
| 1648 | case CSSPropertyTextShadow: |
| 1649 | case CSSPropertyTextTransform: |
| 1650 | case CSSPropertyTextUnderlineOffset: |
| 1651 | case CSSPropertyTextUnderlinePosition: |
| 1652 | case CSSPropertyTransform: |
| 1653 | case CSSPropertyTransformBox: |
| 1654 | case CSSPropertyTransformStyle: |
| 1655 | case CSSPropertyUnicodeRange: |
| 1656 | case CSSPropertyVectorEffect: |
| 1657 | case CSSPropertyVerticalAlign: |
| 1658 | case CSSPropertyVisibility: |
| 1659 | case CSSPropertyWhiteSpace: |
| 1660 | case CSSPropertyWidows: |
| 1661 | case CSSPropertyWidth: |
| 1662 | case CSSPropertyWillChange: |
| 1663 | case CSSPropertyWordBreak: |
| 1664 | case CSSPropertyWordSpacing: |
| 1665 | case CSSPropertyWordWrap: |
| 1666 | case CSSPropertyWritingMode: |
| 1667 | case CSSPropertyX: |
| 1668 | case CSSPropertyY: |
| 1669 | case CSSPropertyZIndex: |
| 1670 | case CSSPropertyZoom: |
| 1671 | return StylePropertyShorthandVector{allShorthand()}; |
| 1672 | case CSSPropertyBorderBottomLeftRadius: |
| 1673 | case CSSPropertyBorderBottomRightRadius: |
| 1674 | case CSSPropertyBorderTopLeftRadius: |
| 1675 | case CSSPropertyBorderTopRightRadius: |
| 1676 | return StylePropertyShorthandVector{webkitBorderRadiusShorthand(), allShorthand(), borderRadiusShorthand()}; |
| 1677 | case CSSPropertyBreakAfter: |
| 1678 | return StylePropertyShorthandVector{webkitColumnBreakAfterShorthand(), allShorthand(), pageBreakAfterShorthand()}; |
| 1679 | case CSSPropertyBreakBefore: |
| 1680 | return StylePropertyShorthandVector{webkitColumnBreakBeforeShorthand(), allShorthand(), pageBreakBeforeShorthand()}; |
| 1681 | case CSSPropertyBreakInside: |
| 1682 | return StylePropertyShorthandVector{webkitColumnBreakInsideShorthand(), allShorthand(), pageBreakInsideShorthand()}; |
| 1683 | case CSSPropertyWebkitMarginAfterCollapse: |
| 1684 | case CSSPropertyWebkitMarginBeforeCollapse: |
| 1685 | return StylePropertyShorthandVector{webkitMarginCollapseShorthand(), allShorthand()}; |
| 1686 | case CSSPropertyWebkitMarqueeDirection: |
| 1687 | case CSSPropertyWebkitMarqueeIncrement: |
| 1688 | case CSSPropertyWebkitMarqueeRepetition: |
| 1689 | case CSSPropertyWebkitMarqueeSpeed: |
| 1690 | case CSSPropertyWebkitMarqueeStyle: |
| 1691 | return StylePropertyShorthandVector{webkitMarqueeShorthand(), allShorthand()}; |
| 1692 | case CSSPropertyWebkitMaskClip: |
| 1693 | case CSSPropertyWebkitMaskImage: |
| 1694 | case CSSPropertyWebkitMaskOrigin: |
| 1695 | case CSSPropertyWebkitMaskSize: |
| 1696 | case CSSPropertyWebkitMaskSourceType: |
| 1697 | return StylePropertyShorthandVector{webkitMaskShorthand(), allShorthand()}; |
| 1698 | case CSSPropertyWebkitMaskPositionX: |
| 1699 | case CSSPropertyWebkitMaskPositionY: |
| 1700 | return StylePropertyShorthandVector{webkitMaskShorthand(), webkitMaskPositionShorthand(), allShorthand()}; |
| 1701 | case CSSPropertyWebkitMaskRepeatX: |
| 1702 | case CSSPropertyWebkitMaskRepeatY: |
| 1703 | return StylePropertyShorthandVector{webkitMaskShorthand(), webkitMaskRepeatShorthand(), allShorthand()}; |
| 1704 | case CSSPropertyTextDecorationColor: |
| 1705 | case CSSPropertyTextDecorationLine: |
| 1706 | case CSSPropertyTextDecorationStyle: |
| 1707 | return StylePropertyShorthandVector{webkitTextDecorationShorthand(), allShorthand()}; |
| 1708 | case CSSPropertyWebkitTextEmphasisColor: |
| 1709 | case CSSPropertyWebkitTextEmphasisStyle: |
| 1710 | return StylePropertyShorthandVector{webkitTextEmphasisShorthand(), allShorthand()}; |
| 1711 | case CSSPropertyWebkitTextStrokeColor: |
| 1712 | case CSSPropertyWebkitTextStrokeWidth: |
| 1713 | return StylePropertyShorthandVector{webkitTextStrokeShorthand(), allShorthand()}; |
| 1714 | default: |
| 1715 | return { }; |
| 1716 | } |
| 1717 | } |
| 1718 | } // namespace WebCore |
| 1719 | |