| 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 1563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1574 default: | 1574 default: |
| 1575 return false; | 1575 return false; |
| 1576 } | 1576 } |
| 1577 } | 1577 } |
| 1578 | 1578 |
| 1579 PassRefPtr<RenderStyle> CSSComputedStyleDeclaration::computeRenderStyle(CSSPrope
rtyID propertyID) const | 1579 PassRefPtr<RenderStyle> CSSComputedStyleDeclaration::computeRenderStyle(CSSPrope
rtyID propertyID) const |
| 1580 { | 1580 { |
| 1581 Node* styledNode = this->styledNode(); | 1581 Node* styledNode = this->styledNode(); |
| 1582 ASSERT(styledNode); | 1582 ASSERT(styledNode); |
| 1583 RenderObject* renderer = styledNode->renderer(); | 1583 RenderObject* renderer = styledNode->renderer(); |
| 1584 if (renderer && renderer->isComposited() && AnimationController::supportsAcc
eleratedAnimationOfProperty(propertyID) && !RuntimeEnabledFeatures::webAnimation
sCSSEnabled()) { | 1584 if (renderer && renderer->isComposited() && !RuntimeEnabledFeatures::webAnim
ationsCSSEnabled() && AnimationController::supportsAcceleratedAnimationOfPropert
y(propertyID)) { |
| 1585 AnimationUpdateBlock animationUpdateBlock(renderer->animation()); | 1585 AnimationUpdateBlock animationUpdateBlock(renderer->animation()); |
| 1586 if (m_pseudoElementSpecifier && !styledNode->isPseudoElement()) { | 1586 if (m_pseudoElementSpecifier && !styledNode->isPseudoElement()) { |
| 1587 // FIXME: This cached pseudo style will only exist if the animation
has been run at least once. | 1587 // FIXME: This cached pseudo style will only exist if the animation
has been run at least once. |
| 1588 return renderer->animation()->getAnimatedStyleForRenderer(renderer)-
>getCachedPseudoStyle(m_pseudoElementSpecifier); | 1588 return renderer->animation()->getAnimatedStyleForRenderer(renderer)-
>getCachedPseudoStyle(m_pseudoElementSpecifier); |
| 1589 } | 1589 } |
| 1590 return renderer->animation()->getAnimatedStyleForRenderer(renderer); | 1590 return renderer->animation()->getAnimatedStyleForRenderer(renderer); |
| 1591 } | 1591 } |
| 1592 return styledNode->computedStyle(styledNode->isPseudoElement() ? NOPSEUDO :
m_pseudoElementSpecifier); | 1592 return styledNode->computedStyle(styledNode->isPseudoElement() ? NOPSEUDO :
m_pseudoElementSpecifier); |
| 1593 } | 1593 } |
| 1594 | 1594 |
| (...skipping 1558 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 |