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 3115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3126 return getPropertyCSSValue(propertyID); | 3126 return getPropertyCSSValue(propertyID); |
3127 } | 3127 } |
3128 | 3128 |
3129 String CSSComputedStyleDeclaration::getPropertyValueInternal(CSSPropertyID prope
rtyID) | 3129 String CSSComputedStyleDeclaration::getPropertyValueInternal(CSSPropertyID prope
rtyID) |
3130 { | 3130 { |
3131 return getPropertyValue(propertyID); | 3131 return getPropertyValue(propertyID); |
3132 } | 3132 } |
3133 | 3133 |
3134 void CSSComputedStyleDeclaration::setPropertyInternal(CSSPropertyID id, const St
ring&, bool, ExceptionState& exceptionState) | 3134 void CSSComputedStyleDeclaration::setPropertyInternal(CSSPropertyID id, const St
ring&, bool, ExceptionState& exceptionState) |
3135 { | 3135 { |
3136 exceptionState.throwDOMException(NoModificationAllowedError, "Failed to set
the '" + getPropertyNameString(id) + "' property on a computed 'CSSStyleDeclarat
ion': computed styles are read-only."); | 3136 exceptionState.throwDOMException(NoModificationAllowedError, "This object is
computed, and therefore read-only."); |
3137 } | 3137 } |
3138 | 3138 |
3139 const HashMap<AtomicString, String>* CSSComputedStyleDeclaration::variableMap()
const | 3139 const HashMap<AtomicString, String>* CSSComputedStyleDeclaration::variableMap()
const |
3140 { | 3140 { |
3141 ASSERT(RuntimeEnabledFeatures::cssVariablesEnabled()); | 3141 ASSERT(RuntimeEnabledFeatures::cssVariablesEnabled()); |
3142 Node* styledNode = this->styledNode(); | 3142 Node* styledNode = this->styledNode(); |
3143 if (!styledNode) | 3143 if (!styledNode) |
3144 return 0; | 3144 return 0; |
3145 RefPtr<RenderStyle> style = styledNode->computedStyle(styledNode->isPseudoEl
ement() ? NOPSEUDO : m_pseudoElementSpecifier); | 3145 RefPtr<RenderStyle> style = styledNode->computedStyle(styledNode->isPseudoEl
ement() ? NOPSEUDO : m_pseudoElementSpecifier); |
3146 if (!style) | 3146 if (!style) |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3226 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, | 3226 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, |
3227 CSSPropertyB
ackgroundClip }; | 3227 CSSPropertyB
ackgroundClip }; |
3228 | 3228 |
3229 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated(); | 3229 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated(); |
3230 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash
Seperator)))); | 3230 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash
Seperator)))); |
3231 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe
perator)))); | 3231 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe
perator)))); |
3232 return list.release(); | 3232 return list.release(); |
3233 } | 3233 } |
3234 | 3234 |
3235 } // namespace WebCore | 3235 } // namespace WebCore |
OLD | NEW |