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 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
676 { | 676 { |
677 exceptionState.throwDOMException(NoModificationAllowedError, "These styles a
re computed, and therefore the '" + name + "' property is read-only."); | 677 exceptionState.throwDOMException(NoModificationAllowedError, "These styles a
re computed, and therefore the '" + name + "' property is read-only."); |
678 return String(); | 678 return String(); |
679 } | 679 } |
680 | 680 |
681 const CSSValue* CSSComputedStyleDeclaration::getPropertyCSSValueInternal(CSSProp
ertyID propertyID) | 681 const CSSValue* CSSComputedStyleDeclaration::getPropertyCSSValueInternal(CSSProp
ertyID propertyID) |
682 { | 682 { |
683 return getPropertyCSSValue(propertyID); | 683 return getPropertyCSSValue(propertyID); |
684 } | 684 } |
685 | 685 |
| 686 const CSSValue* CSSComputedStyleDeclaration::getPropertyCSSValueInternal(AtomicS
tring customPropertyName) |
| 687 { |
| 688 return getPropertyCSSValue(customPropertyName); |
| 689 } |
| 690 |
686 String CSSComputedStyleDeclaration::getPropertyValueInternal(CSSPropertyID prope
rtyID) | 691 String CSSComputedStyleDeclaration::getPropertyValueInternal(CSSPropertyID prope
rtyID) |
687 { | 692 { |
688 return getPropertyValue(propertyID); | 693 return getPropertyValue(propertyID); |
689 } | 694 } |
690 | 695 |
691 void CSSComputedStyleDeclaration::setPropertyInternal(CSSPropertyID id, const St
ring&, const String&, bool, ExceptionState& exceptionState) | 696 void CSSComputedStyleDeclaration::setPropertyInternal(CSSPropertyID id, const St
ring&, const String&, bool, ExceptionState& exceptionState) |
692 { | 697 { |
693 // TODO(leviw): This code is currently unreachable, but shouldn't be. | 698 // TODO(leviw): This code is currently unreachable, but shouldn't be. |
694 exceptionState.throwDOMException(NoModificationAllowedError, "These styles a
re computed, and therefore the '" + getPropertyNameString(id) + "' property is r
ead-only."); | 699 exceptionState.throwDOMException(NoModificationAllowedError, "These styles a
re computed, and therefore the '" + getPropertyNameString(id) + "' property is r
ead-only."); |
695 } | 700 } |
696 | 701 |
697 DEFINE_TRACE(CSSComputedStyleDeclaration) | 702 DEFINE_TRACE(CSSComputedStyleDeclaration) |
698 { | 703 { |
699 visitor->trace(m_node); | 704 visitor->trace(m_node); |
700 CSSStyleDeclaration::trace(visitor); | 705 CSSStyleDeclaration::trace(visitor); |
701 } | 706 } |
702 | 707 |
703 } // namespace blink | 708 } // namespace blink |
OLD | NEW |