| 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 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 return layoutObject->isLayoutGrid(); | 505 return layoutObject->isLayoutGrid(); |
| 506 default: | 506 default: |
| 507 return false; | 507 return false; |
| 508 } | 508 } |
| 509 } | 509 } |
| 510 | 510 |
| 511 const ComputedStyle* CSSComputedStyleDeclaration::computeComputedStyle() const | 511 const ComputedStyle* CSSComputedStyleDeclaration::computeComputedStyle() const |
| 512 { | 512 { |
| 513 Node* styledNode = this->styledNode(); | 513 Node* styledNode = this->styledNode(); |
| 514 ASSERT(styledNode); | 514 ASSERT(styledNode); |
| 515 return styledNode->ensureComputedStyle(styledNode->isPseudoElement() ? NOPSE
UDO : m_pseudoElementSpecifier); | 515 return styledNode->ensureComputedStyle(styledNode->isPseudoElement() ? Pseud
oIdNone : m_pseudoElementSpecifier); |
| 516 } | 516 } |
| 517 | 517 |
| 518 Node* CSSComputedStyleDeclaration::styledNode() const | 518 Node* CSSComputedStyleDeclaration::styledNode() const |
| 519 { | 519 { |
| 520 if (!m_node) | 520 if (!m_node) |
| 521 return nullptr; | 521 return nullptr; |
| 522 if (m_node->isElementNode()) { | 522 if (m_node->isElementNode()) { |
| 523 if (PseudoElement* element = toElement(m_node)->pseudoElement(m_pseudoEl
ementSpecifier)) | 523 if (PseudoElement* element = toElement(m_node)->pseudoElement(m_pseudoEl
ementSpecifier)) |
| 524 return element; | 524 return element; |
| 525 } | 525 } |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 703 exceptionState.throwDOMException(NoModificationAllowedError, "These styles a
re computed, and therefore the '" + getPropertyNameString(id) + "' property is r
ead-only."); | 703 exceptionState.throwDOMException(NoModificationAllowedError, "These styles a
re computed, and therefore the '" + getPropertyNameString(id) + "' property is r
ead-only."); |
| 704 } | 704 } |
| 705 | 705 |
| 706 DEFINE_TRACE(CSSComputedStyleDeclaration) | 706 DEFINE_TRACE(CSSComputedStyleDeclaration) |
| 707 { | 707 { |
| 708 visitor->trace(m_node); | 708 visitor->trace(m_node); |
| 709 CSSStyleDeclaration::trace(visitor); | 709 CSSStyleDeclaration::trace(visitor); |
| 710 } | 710 } |
| 711 | 711 |
| 712 } // namespace blink | 712 } // namespace blink |
| OLD | NEW |