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 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 return element; | 528 return element; |
529 } | 529 } |
530 return m_node.get(); | 530 return m_node.get(); |
531 } | 531 } |
532 | 532 |
533 PassRefPtrWillBeRawPtr<CSSValue> CSSComputedStyleDeclaration::getPropertyCSSValu
e(AtomicString customPropertyName) const | 533 PassRefPtrWillBeRawPtr<CSSValue> CSSComputedStyleDeclaration::getPropertyCSSValu
e(AtomicString customPropertyName) const |
534 { | 534 { |
535 return ComputedStyleCSSValueMapping::get(customPropertyName, *computeCompute
dStyle()); | 535 return ComputedStyleCSSValueMapping::get(customPropertyName, *computeCompute
dStyle()); |
536 } | 536 } |
537 | 537 |
| 538 const HashMap<AtomicString, RefPtr<CSSVariableData>>* CSSComputedStyleDeclaratio
n::getVariables() const |
| 539 { |
| 540 return ComputedStyleCSSValueMapping::getVariables(*computeComputedStyle()); |
| 541 } |
| 542 |
538 PassRefPtrWillBeRawPtr<CSSValue> CSSComputedStyleDeclaration::getPropertyCSSValu
e(CSSPropertyID propertyID) const | 543 PassRefPtrWillBeRawPtr<CSSValue> CSSComputedStyleDeclaration::getPropertyCSSValu
e(CSSPropertyID propertyID) const |
539 { | 544 { |
540 Node* styledNode = this->styledNode(); | 545 Node* styledNode = this->styledNode(); |
541 if (!styledNode) | 546 if (!styledNode) |
542 return nullptr; | 547 return nullptr; |
543 LayoutObject* layoutObject = styledNode->layoutObject(); | 548 LayoutObject* layoutObject = styledNode->layoutObject(); |
544 const ComputedStyle* style; | 549 const ComputedStyle* style; |
545 | 550 |
546 Document& document = styledNode->document(); | 551 Document& document = styledNode->document(); |
547 | 552 |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
696 exceptionState.throwDOMException(NoModificationAllowedError, "These styles a
re computed, and therefore the '" + getPropertyNameString(id) + "' property is r
ead-only."); | 701 exceptionState.throwDOMException(NoModificationAllowedError, "These styles a
re computed, and therefore the '" + getPropertyNameString(id) + "' property is r
ead-only."); |
697 } | 702 } |
698 | 703 |
699 DEFINE_TRACE(CSSComputedStyleDeclaration) | 704 DEFINE_TRACE(CSSComputedStyleDeclaration) |
700 { | 705 { |
701 visitor->trace(m_node); | 706 visitor->trace(m_node); |
702 CSSStyleDeclaration::trace(visitor); | 707 CSSStyleDeclaration::trace(visitor); |
703 } | 708 } |
704 | 709 |
705 } // namespace blink | 710 } // namespace blink |
OLD | NEW |