Changeset 139200 in webkit
- Timestamp:
- Jan 9, 2013 10:04:04 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r139198 r139200 1 2013-01-09 Alexis Menard <alexis@webkit.org> 2 3 Implement CSS computed style value for transition shorthand 4 https://bugs.webkit.org/show_bug.cgi?id=105035 5 6 Reviewed by Dean Jackson. 7 8 Uncomment existing tests to cover the new feature. 9 10 * transitions/transitions-parsing-expected.txt: 11 * transitions/transitions-parsing.html: 12 1 13 2013-01-09 Shinya Kawanaka <shinyak@chromium.org> 2 14 -
trunk/LayoutTests/transitions/transitions-parsing-expected.txt
r139106 r139200 300 300 PASS style.webkitTransitionDelay is '' 301 301 PASS computedStyle.webkitTransitionDelay is '0s' 302 Valid transition shorthand values. 303 PASS computedStyle.transition is 'all 0s ease 0s' 304 PASS computedStyle.webkitTransition is 'all 0s ease 0s' 305 PASS style.transition is 'none' 306 PASS computedStyle.transition is 'none 0s ease 0s' 307 PASS style.webkitTransition is 'none' 308 PASS computedStyle.webkitTransition is 'none 0s ease 0s' 309 PASS checkTransitionShorthandValue() is true 310 PASS style.transition is 'none 20s' 311 PASS computedStyle.transition is 'none 20s ease 0s' 312 PASS style.webkitTransition is 'none 20s' 313 PASS computedStyle.webkitTransition is 'none 20s ease 0s' 314 PASS checkTransitionShorthandValue() is true 315 PASS style.transition is 'none 20s ease-in' 316 PASS computedStyle.transition is 'none 20s ease-in 0s' 317 PASS style.webkitTransition is 'none 20s ease-in' 318 PASS computedStyle.webkitTransition is 'none 20s ease-in 0s' 319 PASS checkTransitionShorthandValue() is true 320 PASS style.transition is 'opacity 20s ease-in' 321 PASS computedStyle.transition is 'opacity 20s ease-in 0s' 322 PASS style.webkitTransition is 'opacity 20s ease-in' 323 PASS computedStyle.webkitTransition is 'opacity 20s ease-in 0s' 324 PASS checkTransitionShorthandValue() is true 325 PASS style.transition is 'opacity 20s ease-in 10s' 326 PASS computedStyle.transition is 'opacity 20s ease-in 10s' 327 PASS style.webkitTransition is 'opacity 20s ease-in 10s' 328 PASS computedStyle.webkitTransition is 'opacity 20s ease-in 10s' 329 PASS computedStyle.transitionDuration is '20s' 330 PASS computedStyle.webkitTransitionDuration is '20s' 331 PASS computedStyle.transitionDelay is '10s' 332 PASS computedStyle.webkitTransitionDelay is '10s' 333 PASS checkTransitionShorthandValue() is true 334 PASS style.transition is 'opacity 20s ease-in 10s' 335 PASS computedStyle.transition is 'opacity 20s ease-in 10s' 336 PASS style.webkitTransition is 'opacity 20s ease-in 10s' 337 PASS computedStyle.webkitTransition is 'opacity 20s ease-in 10s' 338 PASS computedStyle.transitionDuration is '20s' 339 PASS computedStyle.webkitTransitionDuration is '20s' 340 PASS computedStyle.transitionDelay is '10s' 341 PASS computedStyle.webkitTransitionDelay is '10s' 342 PASS checkTransitionShorthandValue() is true 343 PASS style.transition is 'opacity 20s ease-in 10s, width 10s cubic-bezier(0.32, 0, 1, 1) 20s' 344 PASS computedStyle.transition is 'opacity 20s ease-in 10s, width 10s cubic-bezier(0.32, 0, 1, 1) 20s' 345 PASS style.webkitTransition is 'opacity 20s ease-in 10s, width 10s cubic-bezier(0.32, 0, 1, 1) 20s' 346 PASS computedStyle.webkitTransition is 'opacity 20s ease-in 10s, width 10s cubic-bezier(0.32, 0, 1, 1) 20s' 347 PASS computedStyle.transitionDuration is '20s, 10s' 348 PASS computedStyle.webkitTransitionDuration is '20s, 10s' 349 PASS computedStyle.transitionDelay is '10s, 20s' 350 PASS computedStyle.webkitTransitionDelay is '10s, 20s' 351 PASS checkTransitionShorthandValue() is true 352 Invalid transition shorthand values. 353 PASS style.transition is '' 354 PASS computedStyle.transition is 'all 0s ease 0s' 355 PASS style.webkitTransition is '' 356 PASS computedStyle.webkitTransition is 'all 0s ease 0s' 357 PASS style.transition is '' 358 PASS computedStyle.transition is 'all 0s ease 0s' 359 PASS style.webkitTransition is '' 360 PASS computedStyle.webkitTransition is 'all 0s ease 0s' 361 PASS style.transition is '' 362 PASS computedStyle.transition is 'all 0s ease 0s' 363 PASS style.webkitTransition is '' 364 PASS computedStyle.webkitTransition is 'all 0s ease 0s' 365 PASS style.transition is '' 366 PASS computedStyle.transition is 'all 0s ease 0s' 367 PASS style.webkitTransition is '' 368 PASS computedStyle.webkitTransition is 'all 0s ease 0s' 369 PASS style.transition is '' 370 PASS computedStyle.transition is 'all 0s ease 0s' 371 PASS style.webkitTransition is '' 372 PASS computedStyle.webkitTransition is 'all 0s ease 0s' 373 PASS style.transition is '' 374 PASS computedStyle.transition is 'all 0s ease 0s' 375 PASS style.webkitTransition is '' 376 PASS computedStyle.webkitTransition is 'all 0s ease 0s' 377 PASS style.transition is '' 378 PASS computedStyle.transition is 'all 0s ease 0s' 379 PASS style.webkitTransition is '' 380 PASS computedStyle.webkitTransition is 'all 0s ease 0s' 302 381 PASS successfullyParsed is true 303 382 -
trunk/LayoutTests/transitions/transitions-parsing.html
r139106 r139200 17 17 computedStyle = window.getComputedStyle(e, null); 18 18 19 // This function checks the return value of computedStyle.transition and verifies WebKit can parse it. 20 function checkTransitionShorthandValue() { 21 var before = computedStyle.getPropertyValue('transition'); 22 e.style.transition = ''; 23 e.style.transition = before; 24 return (computedStyle.getPropertyValue('transition') == before); 25 } 26 19 27 debug("Valid transition-property values."); 20 28 // Initial test. … … 497 505 // Transition and -webkit-transition is not correctly implemented. 498 506 // Tracked by https://bugs.webkit.org/show_bug.cgi?id=105035. 499 /*debug("Valid transition shorthand values.");507 debug("Valid transition shorthand values."); 500 508 style.transition = ""; 501 509 // Initial test. 502 shouldBe("computedStyle.transition", "'all 0s cubic-bezier(0.25, 0.1, 0.25, 1)0s'");503 shouldBe("computedStyle.webkitTransition", "'all 0s cubic-bezier(0.25, 0.1, 0.25, 1)0s'");510 shouldBe("computedStyle.transition", "'all 0s ease 0s'"); 511 shouldBe("computedStyle.webkitTransition", "'all 0s ease 0s'"); 504 512 505 513 style.transition = "none"; 506 514 shouldBe("style.transition", "'none'"); 507 shouldBe("computedStyle.transition", "'none 0s cubic-bezier(0.25, 0.1, 0.25, 1)0s'");515 shouldBe("computedStyle.transition", "'none 0s ease 0s'"); 508 516 shouldBe("style.webkitTransition", "'none'"); 509 shouldBe("computedStyle.webkitTransition", "'none 0s cubic-bezier(0.25, 0.1, 0.25, 1) 0s'"); 517 shouldBe("computedStyle.webkitTransition", "'none 0s ease 0s'"); 518 shouldBe("checkTransitionShorthandValue()", "true"); 510 519 511 520 style.transition = "none 20s"; 512 521 shouldBe("style.transition", "'none 20s'"); 513 shouldBe("computedStyle.transition", "'none 20s cubic-bezier(0.25, 0.1, 0.25, 1)0s'");522 shouldBe("computedStyle.transition", "'none 20s ease 0s'"); 514 523 shouldBe("style.webkitTransition", "'none 20s'"); 515 shouldBe("computedStyle.webkitTransition", "'none 20s cubic-bezier(0.25, 0.1, 0.25, 1) 0s'"); 524 shouldBe("computedStyle.webkitTransition", "'none 20s ease 0s'"); 525 shouldBe("checkTransitionShorthandValue()", "true"); 516 526 517 527 style.transition = "ease-in none 20s"; 518 shouldBe("style.transition", "'ease-in none 20s'"); 519 shouldBe("computedStyle.transition", "'none 20s cubic-bezier(0.42, 0, 1, 1) 0s'"); 520 shouldBe("style.webkitTransition", "'ease-in none 20s'"); 521 shouldBe("computedStyle.webkitTransition", "'none 20s cubic-bezier(0.42, 0, 1, 1) 0s'"); 528 shouldBe("style.transition", "'none 20s ease-in'"); 529 shouldBe("computedStyle.transition", "'none 20s ease-in 0s'"); 530 shouldBe("style.webkitTransition", "'none 20s ease-in'"); 531 shouldBe("computedStyle.webkitTransition", "'none 20s ease-in 0s'"); 532 shouldBe("checkTransitionShorthandValue()", "true"); 522 533 523 534 style.transition = "ease-in opacity 20s"; 524 shouldBe("style.transition", "'ease-in opacity 20s'"); 525 shouldBe("computedStyle.transition", "'opacity 20s cubic-bezier(0.42, 0, 1, 1) 0s'"); 526 shouldBe("style.webkitTransition", "'ease-in opacity 20s'"); 527 shouldBe("computedStyle.webkitTransition", "'opacity 20s cubic-bezier(0.42, 0, 1, 1) 0s'"); 535 shouldBe("style.transition", "'opacity 20s ease-in'"); 536 shouldBe("computedStyle.transition", "'opacity 20s ease-in 0s'"); 537 shouldBe("style.webkitTransition", "'opacity 20s ease-in'"); 538 shouldBe("computedStyle.webkitTransition", "'opacity 20s ease-in 0s'"); 539 shouldBe("checkTransitionShorthandValue()", "true"); 528 540 529 541 style.transition = "ease-in opacity 20s 10s"; 530 shouldBe("style.transition", "' ease-in opacity 20s10s'");531 shouldBe("computedStyle.transition", "'opacity 20s cubic-bezier(0.42, 0, 1, 1)10s'");532 shouldBe("style.webkitTransition", "' ease-in opacity 20s10s'");533 shouldBe("computedStyle.webkitTransition", "'opacity 20s cubic-bezier(0.42, 0, 1, 1)10s'");542 shouldBe("style.transition", "'opacity 20s ease-in 10s'"); 543 shouldBe("computedStyle.transition", "'opacity 20s ease-in 10s'"); 544 shouldBe("style.webkitTransition", "'opacity 20s ease-in 10s'"); 545 shouldBe("computedStyle.webkitTransition", "'opacity 20s ease-in 10s'"); 534 546 // Let's double check here the delay and duration. As stated in the spec the first value parsed 535 547 // is assigned to the duration. … … 538 550 shouldBe("computedStyle.transitionDelay", "'10s'"); 539 551 shouldBe("computedStyle.webkitTransitionDelay", "'10s'"); 552 shouldBe("checkTransitionShorthandValue()", "true"); 540 553 541 554 style.transition = "20s ease-in opacity 10s"; 542 shouldBe("style.transition", "' 20s ease-in opacity10s'");543 shouldBe("computedStyle.transition", "'opacity 20s cubic-bezier(0.42, 0, 1, 1)10s'");544 shouldBe("style.webkitTransition", "' 20s ease-in opacity10s'");545 shouldBe("computedStyle.webkitTransition", "'opacity 20s cubic-bezier(0.42, 0, 1, 1)10s'");555 shouldBe("style.transition", "'opacity 20s ease-in 10s'"); 556 shouldBe("computedStyle.transition", "'opacity 20s ease-in 10s'"); 557 shouldBe("style.webkitTransition", "'opacity 20s ease-in 10s'"); 558 shouldBe("computedStyle.webkitTransition", "'opacity 20s ease-in 10s'"); 546 559 shouldBe("computedStyle.transitionDuration", "'20s'"); 547 560 shouldBe("computedStyle.webkitTransitionDuration", "'20s'"); 548 561 shouldBe("computedStyle.transitionDelay", "'10s'"); 549 562 shouldBe("computedStyle.webkitTransitionDelay", "'10s'"); 563 shouldBe("checkTransitionShorthandValue()", "true"); 550 564 551 565 style.transition = "ease-in opacity 20s 10s, cubic-bezier(0.32, 0, 1, 1) 10s width 20s"; 552 shouldBe("style.transition", "' ease-in opacity 20s 10s, cubic-bezier(0.32, 0, 1, 1) 10s width20s'");553 shouldBe("computedStyle.transition", "'opacity 20s cubic-bezier(0.42, 0, 1, 1)10s, width 10s cubic-bezier(0.32, 0, 1, 1) 20s'");554 shouldBe("style.webkitTransition", "' ease-in opacity 20s 10s, cubic-bezier(0.32, 0, 1, 1) 10s width20s'");555 shouldBe("computedStyle.webkitTransition", "'opacity 20s cubic-bezier(0.42, 0, 1, 1)10s, width 10s cubic-bezier(0.32, 0, 1, 1) 20s'");566 shouldBe("style.transition", "'opacity 20s ease-in 10s, width 10s cubic-bezier(0.32, 0, 1, 1) 20s'"); 567 shouldBe("computedStyle.transition", "'opacity 20s ease-in 10s, width 10s cubic-bezier(0.32, 0, 1, 1) 20s'"); 568 shouldBe("style.webkitTransition", "'opacity 20s ease-in 10s, width 10s cubic-bezier(0.32, 0, 1, 1) 20s'"); 569 shouldBe("computedStyle.webkitTransition", "'opacity 20s ease-in 10s, width 10s cubic-bezier(0.32, 0, 1, 1) 20s'"); 556 570 // Let's double check here the delay and duration. As stated in the spec the first value parsed 557 571 // is assigned to the duration. … … 560 574 shouldBe("computedStyle.transitionDelay", "'10s, 20s'"); 561 575 shouldBe("computedStyle.webkitTransitionDelay", "'10s, 20s'"); 576 shouldBe("checkTransitionShorthandValue()", "true"); 562 577 563 578 debug("Invalid transition shorthand values."); … … 566 581 style.transition = "20"; 567 582 shouldBe("style.transition", "''"); 568 shouldBe("computedStyle.transition", "'all 0s cubic-bezier(0.25, 0.1, 0.25, 1)0s'");583 shouldBe("computedStyle.transition", "'all 0s ease 0s'"); 569 584 shouldBe("style.webkitTransition", "''"); 570 shouldBe("computedStyle.webkitTransition", "'all 0s cubic-bezier(0.25, 0.1, 0.25, 1)0s'");585 shouldBe("computedStyle.webkitTransition", "'all 0s ease 0s'"); 571 586 572 587 style.transition = "20, 20"; 573 588 shouldBe("style.transition", "''"); 574 shouldBe("computedStyle.transition", "'all 0s cubic-bezier(0.25, 0.1, 0.25, 1)0s'");589 shouldBe("computedStyle.transition", "'all 0s ease 0s'"); 575 590 shouldBe("style.webkitTransition", "''"); 576 shouldBe("computedStyle.webkitTransition", "'all 0s cubic-bezier(0.25, 0.1, 0.25, 1)0s'");591 shouldBe("computedStyle.webkitTransition", "'all 0s ease 0s'"); 577 592 578 593 style.transition = "widthFoo"; 579 594 shouldBe("style.transition", "''"); 580 shouldBe("computedStyle.transition", "'all 0s cubic-bezier(0.25, 0.1, 0.25, 1)0s'");595 shouldBe("computedStyle.transition", "'all 0s ease 0s'"); 581 596 shouldBe("style.webkitTransition", "''"); 582 shouldBe("computedStyle.webkitTransition", "'all 0s cubic-bezier(0.25, 0.1, 0.25, 1)0s'");597 shouldBe("computedStyle.webkitTransition", "'all 0s ease 0s'"); 583 598 584 599 style.transition = "all 30s width ease-in"; 585 600 shouldBe("style.transition", "''"); 586 shouldBe("computedStyle.transition", "'all 0s cubic-bezier(0.25, 0.1, 0.25, 1)0s'");601 shouldBe("computedStyle.transition", "'all 0s ease 0s'"); 587 602 shouldBe("style.webkitTransition", "''"); 588 shouldBe("computedStyle.webkitTransition", "'all 0s cubic-bezier(0.25, 0.1, 0.25, 1)0s'");603 shouldBe("computedStyle.webkitTransition", "'all 0s ease 0s'"); 589 604 590 605 style.transition = "all 30s ease-in 20px"; 591 606 shouldBe("style.transition", "''"); 592 shouldBe("computedStyle.transition", "'all 0s cubic-bezier(0.25, 0.1, 0.25, 1)0s'");607 shouldBe("computedStyle.transition", "'all 0s ease 0s'"); 593 608 shouldBe("style.webkitTransition", "''"); 594 shouldBe("computedStyle.webkitTransition", "'all 0s cubic-bezier(0.25, 0.1, 0.25, 1)0s'");609 shouldBe("computedStyle.webkitTransition", "'all 0s ease 0s'"); 595 610 596 611 style.transition = "all 30s ease-in 20s, 20px"; 597 612 shouldBe("style.transition", "''"); 598 shouldBe("computedStyle.transition", "'all 0s cubic-bezier(0.25, 0.1, 0.25, 1)0s'");613 shouldBe("computedStyle.transition", "'all 0s ease 0s'"); 599 614 shouldBe("style.webkitTransition", "''"); 600 shouldBe("computedStyle.webkitTransition", "'all 0s cubic-bezier(0.25, 0.1, 0.25, 1)0s'");615 shouldBe("computedStyle.webkitTransition", "'all 0s ease 0s'"); 601 616 602 617 style.transition = "all 30s ease-in 20s, step-start(2)"; 603 618 shouldBe("style.transition", "''"); 604 shouldBe("computedStyle.transition", "'all 0s cubic-bezier(0.25, 0.1, 0.25, 1)0s'");619 shouldBe("computedStyle.transition", "'all 0s ease 0s'"); 605 620 shouldBe("style.webkitTransition", "''"); 606 shouldBe("computedStyle.webkitTransition", "'all 0s cubic-bezier(0.25, 0.1, 0.25, 1) 0s'");*/621 shouldBe("computedStyle.webkitTransition", "'all 0s ease 0s'"); 607 622 608 623 document.body.removeChild(testContainer); -
trunk/Source/WebCore/ChangeLog
r139199 r139200 1 2013-01-09 Alexis Menard <alexis@webkit.org> 2 3 Implement CSS computed style value for transition shorthand 4 https://bugs.webkit.org/show_bug.cgi?id=105035 5 6 Reviewed by Dean Jackson. 7 8 Implement support for query the transition and webkit-transition 9 shorthand from the computed style. 10 11 Test: transitions/transitions-parsing.html 12 13 * css/CSSComputedStyleDeclaration.cpp: 14 (WebCore::createTransitionPropertyValue): Factor the code to create the 15 correct value into a function to reuse it for the shorthand. 16 (WebCore::getTransitionPropertyValue): 17 (WebCore::createTimingFunctionValue): Little refactor, the intermediate 18 local variables are not needed. 19 (WebCore::getTimingFunctionValue): 20 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): 21 1 22 2013-01-09 Hajime Morrita <morrita@google.com> 2 23 -
trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
r138909 r139200 1048 1048 return cssValuePool().createValue(position.integerPosition(), CSSPrimitiveValue::CSS_NUMBER); 1049 1049 } 1050 static PassRefPtr<CSSValue> createTransitionPropertyValue(const Animation* animation) 1051 { 1052 RefPtr<CSSValue> propertyValue; 1053 if (animation->animationMode() == Animation::AnimateNone) 1054 propertyValue = cssValuePool().createIdentifierValue(CSSValueNone); 1055 else if (animation->animationMode() == Animation::AnimateAll) 1056 propertyValue = cssValuePool().createIdentifierValue(CSSValueAll); 1057 else 1058 propertyValue = cssValuePool().createValue(getPropertyNameString(animation->property()), CSSPrimitiveValue::CSS_STRING); 1059 return propertyValue.release(); 1060 } 1061 static PassRefPtr<CSSValue> getTransitionPropertyValue(const AnimationList* animList) 1062 { 1063 RefPtr<CSSValueList> list = CSSValueList::createCommaSeparated(); 1064 if (animList) { 1065 for (size_t i = 0; i < animList->size(); ++i) 1066 list->append(createTransitionPropertyValue(animList->animation(i))); 1067 } else 1068 list->append(cssValuePool().createIdentifierValue(CSSValueAll)); 1069 return list.release(); 1070 } 1050 1071 1051 1072 static PassRefPtr<CSSValue> getDelayValue(const AnimationList* animList) … … 1075 1096 } 1076 1097 1077 static PassRefPtr<CSSValue> create AnimationValue(const TimingFunction* timingFunction)1098 static PassRefPtr<CSSValue> createTimingFunctionValue(const TimingFunction* timingFunction) 1078 1099 { 1079 1100 if (timingFunction->isCubicBezierTimingFunction()) { … … 1115 1136 RefPtr<CSSValueList> list = CSSValueList::createCommaSeparated(); 1116 1137 if (animList) { 1117 for (size_t i = 0; i < animList->size(); ++i) { 1118 RefPtr<TimingFunction> timingFunction = animList->animation(i)->timingFunction(); 1119 list->append(createAnimationValue(timingFunction.get())); 1120 } 1121 } else { 1138 for (size_t i = 0; i < animList->size(); ++i) 1139 list->append(createTimingFunctionValue(animList->animation(i)->timingFunction().get())); 1140 } else 1122 1141 // Note that initialAnimationTimingFunction() is used for both transitions and animations 1123 RefPtr<TimingFunction> timingFunction = Animation::initialAnimationTimingFunction(); 1124 list->append(createAnimationValue(timingFunction.get())); 1125 } 1142 list->append(createTimingFunctionValue(Animation::initialAnimationTimingFunction().get())); 1126 1143 return list.release(); 1127 1144 } … … 2470 2487 case CSSPropertyWebkitTransitionDuration: 2471 2488 return getDurationValue(style->transitions()); 2472 case CSSPropertyWebkitTransitionProperty: { 2473 RefPtr<CSSValueList> list = CSSValueList::createCommaSeparated(); 2474 const AnimationList* t = style->transitions(); 2475 if (t) { 2476 for (size_t i = 0; i < t->size(); ++i) { 2477 RefPtr<CSSValue> propertyValue; 2478 const Animation* animation = t->animation(i); 2479 if (animation->animationMode() == Animation::AnimateNone) 2480 propertyValue = cssValuePool().createIdentifierValue(CSSValueNone); 2481 else if (animation->animationMode() == Animation::AnimateAll) 2482 propertyValue = cssValuePool().createIdentifierValue(CSSValueAll); 2483 else 2484 propertyValue = cssValuePool().createValue(getPropertyNameString(animation->property()), CSSPrimitiveValue::CSS_STRING); 2485 list->append(propertyValue); 2486 } 2487 } else 2488 list->append(cssValuePool().createIdentifierValue(CSSValueAll)); 2489 return list.release(); 2490 } 2489 case CSSPropertyWebkitTransitionProperty: 2490 return getTransitionPropertyValue(style->transitions()); 2491 2491 case CSSPropertyWebkitTransitionTimingFunction: 2492 2492 return getTimingFunctionValue(style->transitions()); 2493 case CSSPropertyWebkitTransition: { 2494 const AnimationList* animList = style->transitions(); 2495 if (animList) { 2496 RefPtr<CSSValueList> transitionsList = CSSValueList::createCommaSeparated(); 2497 for (size_t i = 0; i < animList->size(); ++i) { 2498 RefPtr<CSSValueList> list = CSSValueList::createSpaceSeparated(); 2499 const Animation* animation = animList->animation(i); 2500 list->append(createTransitionPropertyValue(animation)); 2501 list->append(cssValuePool().createValue(animation->duration(), CSSPrimitiveValue::CSS_S)); 2502 list->append(createTimingFunctionValue(animation->timingFunction().get())); 2503 list->append(cssValuePool().createValue(animation->delay(), CSSPrimitiveValue::CSS_S)); 2504 transitionsList->append(list); 2505 } 2506 return transitionsList.release(); 2507 } 2508 2509 RefPtr<CSSValueList> list = CSSValueList::createSpaceSeparated(); 2510 // transition-property default value. 2511 list->append(cssValuePool().createIdentifierValue(CSSValueAll)); 2512 list->append(cssValuePool().createValue(Animation::initialAnimationDuration(), CSSPrimitiveValue::CSS_S)); 2513 list->append(createTimingFunctionValue(Animation::initialAnimationTimingFunction().get())); 2514 list->append(cssValuePool().createValue(Animation::initialAnimationDelay(), CSSPrimitiveValue::CSS_S)); 2515 return list.release(); 2516 } 2493 2517 case CSSPropertyPointerEvents: 2494 2518 return cssValuePool().createValue(style->pointerEvents()); … … 2696 2720 case CSSPropertyWebkitTransformOriginY: 2697 2721 case CSSPropertyWebkitTransformOriginZ: 2698 case CSSPropertyWebkitTransition:2699 2722 #if ENABLE(CSS_EXCLUSIONS) 2700 2723 case CSSPropertyWebkitWrap:
Note: See TracChangeset
for help on using the changeset viewer.