| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
| 5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 6 * (C) 2007 David Smith (catfish.man@gmail.com) | 6 * (C) 2007 David Smith (catfish.man@gmail.com) |
| 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. | 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. |
| 8 * (C) 2007 Eric Seidel (eric@webkit.org) | 8 * (C) 2007 Eric Seidel (eric@webkit.org) |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 { | 350 { |
| 351 if (!hasRareData()) | 351 if (!hasRareData()) |
| 352 return false; | 352 return false; |
| 353 | 353 |
| 354 ElementAnimations* elementAnimations = elementRareData()->elementAnimations(
); | 354 ElementAnimations* elementAnimations = elementRareData()->elementAnimations(
); |
| 355 return elementAnimations && !elementAnimations->isEmpty(); | 355 return elementAnimations && !elementAnimations->isEmpty(); |
| 356 } | 356 } |
| 357 | 357 |
| 358 Node::NodeType Element::getNodeType() const | 358 Node::NodeType Element::getNodeType() const |
| 359 { | 359 { |
| 360 return ELEMENT_NODE; | 360 return kElementNode; |
| 361 } | 361 } |
| 362 | 362 |
| 363 bool Element::hasAttribute(const QualifiedName& name) const | 363 bool Element::hasAttribute(const QualifiedName& name) const |
| 364 { | 364 { |
| 365 return hasAttributeNS(name.namespaceURI(), name.localName()); | 365 return hasAttributeNS(name.namespaceURI(), name.localName()); |
| 366 } | 366 } |
| 367 | 367 |
| 368 void Element::synchronizeAllAttributes() const | 368 void Element::synchronizeAllAttributes() const |
| 369 { | 369 { |
| 370 if (!elementData()) | 370 if (!elementData()) |
| (...skipping 1729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2100 if (ShadowRoot* shadowRoot = userAgentShadowRoot()) | 2100 if (ShadowRoot* shadowRoot = userAgentShadowRoot()) |
| 2101 return *shadowRoot; | 2101 return *shadowRoot; |
| 2102 ShadowRoot& shadowRoot = ensureShadow().addShadowRoot(*this, ShadowRootType:
:UserAgent); | 2102 ShadowRoot& shadowRoot = ensureShadow().addShadowRoot(*this, ShadowRootType:
:UserAgent); |
| 2103 didAddUserAgentShadowRoot(shadowRoot); | 2103 didAddUserAgentShadowRoot(shadowRoot); |
| 2104 return shadowRoot; | 2104 return shadowRoot; |
| 2105 } | 2105 } |
| 2106 | 2106 |
| 2107 bool Element::childTypeAllowed(NodeType type) const | 2107 bool Element::childTypeAllowed(NodeType type) const |
| 2108 { | 2108 { |
| 2109 switch (type) { | 2109 switch (type) { |
| 2110 case ELEMENT_NODE: | 2110 case kElementNode: |
| 2111 case TEXT_NODE: | 2111 case kTextNode: |
| 2112 case COMMENT_NODE: | 2112 case kCommentNode: |
| 2113 case PROCESSING_INSTRUCTION_NODE: | 2113 case kProcessingInstructionNode: |
| 2114 case CDATA_SECTION_NODE: | 2114 case kCdataSectionNode: |
| 2115 return true; | 2115 return true; |
| 2116 default: | 2116 default: |
| 2117 break; | 2117 break; |
| 2118 } | 2118 } |
| 2119 return false; | 2119 return false; |
| 2120 } | 2120 } |
| 2121 | 2121 |
| 2122 void Element::checkForEmptyStyleChange() | 2122 void Element::checkForEmptyStyleChange() |
| 2123 { | 2123 { |
| 2124 const ComputedStyle* style = computedStyle(); | 2124 const ComputedStyle* style = computedStyle(); |
| (...skipping 1670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3795 | 3795 |
| 3796 DEFINE_TRACE_WRAPPERS(Element) | 3796 DEFINE_TRACE_WRAPPERS(Element) |
| 3797 { | 3797 { |
| 3798 if (hasRareData()) { | 3798 if (hasRareData()) { |
| 3799 visitor->traceWrappers(elementRareData()); | 3799 visitor->traceWrappers(elementRareData()); |
| 3800 } | 3800 } |
| 3801 ContainerNode::traceWrappers(visitor); | 3801 ContainerNode::traceWrappers(visitor); |
| 3802 } | 3802 } |
| 3803 | 3803 |
| 3804 } // namespace blink | 3804 } // namespace blink |
| OLD | NEW |