| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) | 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) |
| 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) | 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) |
| 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
All rights reserved. | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
All rights reserved. |
| 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
| 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> | 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> |
| 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. | 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. |
| 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
| (...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 834 RefPtr<Keyframe> firstOffsetKeyframe; | 834 RefPtr<Keyframe> firstOffsetKeyframe; |
| 835 for (size_t j = 0; j < offsets.size(); ++j) { | 835 for (size_t j = 0; j < offsets.size(); ++j) { |
| 836 RefPtr<Keyframe> keyframe = Keyframe::create(); | 836 RefPtr<Keyframe> keyframe = Keyframe::create(); |
| 837 keyframe->setOffset(offsets[j]); | 837 keyframe->setOffset(offsets[j]); |
| 838 const StylePropertySet* properties = styleKeyframe->properties(); | 838 const StylePropertySet* properties = styleKeyframe->properties(); |
| 839 for (unsigned k = 0; k < properties->propertyCount(); k++) { | 839 for (unsigned k = 0; k < properties->propertyCount(); k++) { |
| 840 CSSPropertyID property = properties->propertyAt(k).id(); | 840 CSSPropertyID property = properties->propertyAt(k).id(); |
| 841 // FIXME: Build the correct chained timing function when this pr
operty is specified. | 841 // FIXME: Build the correct chained timing function when this pr
operty is specified. |
| 842 if (property == CSSPropertyWebkitAnimationTimingFunction || prop
erty == CSSPropertyAnimationTimingFunction) | 842 if (property == CSSPropertyWebkitAnimationTimingFunction || prop
erty == CSSPropertyAnimationTimingFunction) |
| 843 continue; | 843 continue; |
| 844 if (!CSSAnimations::isAnimatableProperty(property)) |
| 845 continue; |
| 844 keyframe->setPropertyValue(property, firstOffsetKeyframe ? first
OffsetKeyframe->propertyValue(property) : CSSAnimatableValueFactory::create(prop
erty, keyframeStyle.get()).get()); | 846 keyframe->setPropertyValue(property, firstOffsetKeyframe ? first
OffsetKeyframe->propertyValue(property) : CSSAnimatableValueFactory::create(prop
erty, keyframeStyle.get()).get()); |
| 845 } | 847 } |
| 846 if (!firstOffsetKeyframe) | 848 if (!firstOffsetKeyframe) |
| 847 firstOffsetKeyframe = keyframe; | 849 firstOffsetKeyframe = keyframe; |
| 848 keyframes.append(keyframe); | 850 keyframes.append(keyframe); |
| 849 } | 851 } |
| 850 } | 852 } |
| 851 | 853 |
| 852 if (keyframes.isEmpty()) | 854 if (keyframes.isEmpty()) |
| 853 return; | 855 return; |
| (...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1548 m_matchedPropertiesSearches, m_matchedPropertiesHit, m_matchedProperties
SharedInheritedHit, m_matchedPropertiesToCache, m_matchedPropertiesEnteredIntoCa
che); | 1550 m_matchedPropertiesSearches, m_matchedPropertiesHit, m_matchedProperties
SharedInheritedHit, m_matchedPropertiesToCache, m_matchedPropertiesEnteredIntoCa
che); |
| 1549 | 1551 |
| 1550 fprintf(stderr, "Total:\n"); | 1552 fprintf(stderr, "Total:\n"); |
| 1551 printStyleStats(m_totalSearches, m_totalElementsEligibleForSharing, m_totalS
tylesShared, m_totalSearchFoundSiblingForSharing, m_totalSearchesMissedSharing, | 1553 printStyleStats(m_totalSearches, m_totalElementsEligibleForSharing, m_totalS
tylesShared, m_totalSearchFoundSiblingForSharing, m_totalSearchesMissedSharing, |
| 1552 m_totalMatchedPropertiesSearches, m_totalMatchedPropertiesHit, m_totalMa
tchedPropertiesSharedInheritedHit, m_totalMatchedPropertiesToCache, m_totalMatch
edPropertiesEnteredIntoCache); | 1554 m_totalMatchedPropertiesSearches, m_totalMatchedPropertiesHit, m_totalMa
tchedPropertiesSharedInheritedHit, m_totalMatchedPropertiesToCache, m_totalMatch
edPropertiesEnteredIntoCache); |
| 1553 fprintf(stderr, "-----------------------------------------------------------
---------------------\n"); | 1555 fprintf(stderr, "-----------------------------------------------------------
---------------------\n"); |
| 1554 } | 1556 } |
| 1555 #endif | 1557 #endif |
| 1556 | 1558 |
| 1557 } // namespace WebCore | 1559 } // namespace WebCore |
| OLD | NEW |