| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004 Zack Rusin <zack@kde.org> | 2 * Copyright (C) 2004 Zack Rusin <zack@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. |
| 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
| 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> | 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> |
| 6 * Copyright (C) 2011 Sencha, Inc. All rights reserved. | 6 * Copyright (C) 2011 Sencha, Inc. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Lesser General Public | 9 * modify it under the terms of the GNU Lesser General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 1562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1573 default: | 1573 default: |
| 1574 return false; | 1574 return false; |
| 1575 } | 1575 } |
| 1576 } | 1576 } |
| 1577 | 1577 |
| 1578 PassRefPtr<RenderStyle> CSSComputedStyleDeclaration::computeRenderStyle(CSSPrope
rtyID propertyID) const | 1578 PassRefPtr<RenderStyle> CSSComputedStyleDeclaration::computeRenderStyle(CSSPrope
rtyID propertyID) const |
| 1579 { | 1579 { |
| 1580 Node* styledNode = this->styledNode(); | 1580 Node* styledNode = this->styledNode(); |
| 1581 ASSERT(styledNode); | 1581 ASSERT(styledNode); |
| 1582 RenderObject* renderer = styledNode->renderer(); | 1582 RenderObject* renderer = styledNode->renderer(); |
| 1583 if (renderer && renderer->isComposited() && AnimationController::supportsAcc
eleratedAnimationOfProperty(propertyID) && !RuntimeEnabledFeatures::webAnimation
sCSSEnabled()) { | 1583 if (renderer && renderer->isComposited() && !RuntimeEnabledFeatures::webAnim
ationsCSSEnabled() && AnimationController::supportsAcceleratedAnimationOfPropert
y(propertyID)) { |
| 1584 AnimationUpdateBlock animationUpdateBlock(renderer->animation()); | 1584 AnimationUpdateBlock animationUpdateBlock(renderer->animation()); |
| 1585 if (m_pseudoElementSpecifier && !styledNode->isPseudoElement()) { | 1585 if (m_pseudoElementSpecifier && !styledNode->isPseudoElement()) { |
| 1586 // FIXME: This cached pseudo style will only exist if the animation
has been run at least once. | 1586 // FIXME: This cached pseudo style will only exist if the animation
has been run at least once. |
| 1587 return renderer->animation()->getAnimatedStyleForRenderer(renderer)-
>getCachedPseudoStyle(m_pseudoElementSpecifier); | 1587 return renderer->animation()->getAnimatedStyleForRenderer(renderer)-
>getCachedPseudoStyle(m_pseudoElementSpecifier); |
| 1588 } | 1588 } |
| 1589 return renderer->animation()->getAnimatedStyleForRenderer(renderer); | 1589 return renderer->animation()->getAnimatedStyleForRenderer(renderer); |
| 1590 } | 1590 } |
| 1591 return styledNode->computedStyle(styledNode->isPseudoElement() ? NOPSEUDO :
m_pseudoElementSpecifier); | 1591 return styledNode->computedStyle(styledNode->isPseudoElement() ? NOPSEUDO :
m_pseudoElementSpecifier); |
| 1592 } | 1592 } |
| 1593 | 1593 |
| (...skipping 1559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3153 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, | 3153 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, |
| 3154 CSSPropertyB
ackgroundClip }; | 3154 CSSPropertyB
ackgroundClip }; |
| 3155 | 3155 |
| 3156 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated(); | 3156 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated(); |
| 3157 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash
Seperator)))); | 3157 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash
Seperator)))); |
| 3158 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe
perator)))); | 3158 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe
perator)))); |
| 3159 return list.release(); | 3159 return list.release(); |
| 3160 } | 3160 } |
| 3161 | 3161 |
| 3162 } // namespace WebCore | 3162 } // namespace WebCore |
| OLD | NEW |