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 1599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1610 return false; | 1610 return false; |
1611 } | 1611 } |
1612 } | 1612 } |
1613 | 1613 |
1614 PassRefPtr<RenderStyle> CSSComputedStyleDeclaration::computeRenderStyle(CSSPrope
rtyID propertyID) const | 1614 PassRefPtr<RenderStyle> CSSComputedStyleDeclaration::computeRenderStyle(CSSPrope
rtyID propertyID) const |
1615 { | 1615 { |
1616 Node* styledNode = this->styledNode(); | 1616 Node* styledNode = this->styledNode(); |
1617 ASSERT(styledNode); | 1617 ASSERT(styledNode); |
1618 RenderObject* renderer = styledNode->renderer(); | 1618 RenderObject* renderer = styledNode->renderer(); |
1619 if (renderer && renderer->isComposited() && !RuntimeEnabledFeatures::webAnim
ationsCSSEnabled() && AnimationController::supportsAcceleratedAnimationOfPropert
y(propertyID)) { | 1619 if (renderer && renderer->isComposited() && !RuntimeEnabledFeatures::webAnim
ationsCSSEnabled() && AnimationController::supportsAcceleratedAnimationOfPropert
y(propertyID)) { |
1620 AnimationUpdateBlock animationUpdateBlock(renderer->animation()); | 1620 AnimationUpdateBlock animationUpdateBlock(renderer->animation().get()); |
1621 if (m_pseudoElementSpecifier && !styledNode->isPseudoElement()) { | 1621 if (m_pseudoElementSpecifier && !styledNode->isPseudoElement()) { |
1622 // FIXME: This cached pseudo style will only exist if the animation
has been run at least once. | 1622 // FIXME: This cached pseudo style will only exist if the animation
has been run at least once. |
1623 return renderer->animation()->getAnimatedStyleForRenderer(renderer)-
>getCachedPseudoStyle(m_pseudoElementSpecifier); | 1623 return renderer->animation()->getAnimatedStyleForRenderer(renderer)-
>getCachedPseudoStyle(m_pseudoElementSpecifier); |
1624 } | 1624 } |
1625 return renderer->animation()->getAnimatedStyleForRenderer(renderer); | 1625 return renderer->animation()->getAnimatedStyleForRenderer(renderer); |
1626 } | 1626 } |
1627 return styledNode->computedStyle(styledNode->isPseudoElement() ? NOPSEUDO :
m_pseudoElementSpecifier); | 1627 return styledNode->computedStyle(styledNode->isPseudoElement() ? NOPSEUDO :
m_pseudoElementSpecifier); |
1628 } | 1628 } |
1629 | 1629 |
1630 Node* CSSComputedStyleDeclaration::styledNode() const | 1630 Node* CSSComputedStyleDeclaration::styledNode() const |
(...skipping 1563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3194 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, | 3194 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, |
3195 CSSPropertyB
ackgroundClip }; | 3195 CSSPropertyB
ackgroundClip }; |
3196 | 3196 |
3197 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated(); | 3197 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated(); |
3198 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash
Seperator)))); | 3198 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash
Seperator)))); |
3199 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe
perator)))); | 3199 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe
perator)))); |
3200 return list.release(); | 3200 return list.release(); |
3201 } | 3201 } |
3202 | 3202 |
3203 } // namespace WebCore | 3203 } // namespace WebCore |
OLD | NEW |