| 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 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 634 | 634 |
| 635 CSSRule* CSSComputedStyleDeclaration::parentRule() const | 635 CSSRule* CSSComputedStyleDeclaration::parentRule() const |
| 636 { | 636 { |
| 637 return nullptr; | 637 return nullptr; |
| 638 } | 638 } |
| 639 | 639 |
| 640 String CSSComputedStyleDeclaration::getPropertyValue(const String& propertyName) | 640 String CSSComputedStyleDeclaration::getPropertyValue(const String& propertyName) |
| 641 { | 641 { |
| 642 CSSPropertyID propertyID = cssPropertyID(propertyName); | 642 CSSPropertyID propertyID = cssPropertyID(propertyName); |
| 643 if (!propertyID) { | 643 if (!propertyID) { |
| 644 if (RuntimeEnabledFeatures::cssVariablesEnabled() && CSSVariableParser::
isValidVariableName(propertyName)) { | 644 if (CSSVariableParser::isValidVariableName(propertyName)) { |
| 645 const CSSValue* value = getPropertyCSSValue(AtomicString(propertyNam
e)); | 645 const CSSValue* value = getPropertyCSSValue(AtomicString(propertyNam
e)); |
| 646 if (value) | 646 if (value) |
| 647 return value->cssText(); | 647 return value->cssText(); |
| 648 } | 648 } |
| 649 return String(); | 649 return String(); |
| 650 } | 650 } |
| 651 ASSERT(CSSPropertyMetadata::isEnabledProperty(propertyID)); | 651 ASSERT(CSSPropertyMetadata::isEnabledProperty(propertyID)); |
| 652 return getPropertyValue(propertyID); | 652 return getPropertyValue(propertyID); |
| 653 } | 653 } |
| 654 | 654 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 700 exceptionState.throwDOMException(NoModificationAllowedError, "These styles a
re computed, and therefore the '" + getPropertyNameString(id) + "' property is r
ead-only."); | 700 exceptionState.throwDOMException(NoModificationAllowedError, "These styles a
re computed, and therefore the '" + getPropertyNameString(id) + "' property is r
ead-only."); |
| 701 } | 701 } |
| 702 | 702 |
| 703 DEFINE_TRACE(CSSComputedStyleDeclaration) | 703 DEFINE_TRACE(CSSComputedStyleDeclaration) |
| 704 { | 704 { |
| 705 visitor->trace(m_node); | 705 visitor->trace(m_node); |
| 706 CSSStyleDeclaration::trace(visitor); | 706 CSSStyleDeclaration::trace(visitor); |
| 707 } | 707 } |
| 708 | 708 |
| 709 } // namespace blink | 709 } // namespace blink |
| OLD | NEW |