| 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 1703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2074 if (ShadowRoot* shadowRoot = userAgentShadowRoot()) | 2074 if (ShadowRoot* shadowRoot = userAgentShadowRoot()) |
| 2075 return *shadowRoot; | 2075 return *shadowRoot; |
| 2076 ShadowRoot& shadowRoot = ensureShadow().addShadowRoot(*this, ShadowRootType:
:UserAgent); | 2076 ShadowRoot& shadowRoot = ensureShadow().addShadowRoot(*this, ShadowRootType:
:UserAgent); |
| 2077 didAddUserAgentShadowRoot(shadowRoot); | 2077 didAddUserAgentShadowRoot(shadowRoot); |
| 2078 return shadowRoot; | 2078 return shadowRoot; |
| 2079 } | 2079 } |
| 2080 | 2080 |
| 2081 bool Element::childTypeAllowed(NodeType type) const | 2081 bool Element::childTypeAllowed(NodeType type) const |
| 2082 { | 2082 { |
| 2083 switch (type) { | 2083 switch (type) { |
| 2084 case ELEMENT_NODE: | 2084 case kElementNode: |
| 2085 case TEXT_NODE: | 2085 case kTextNode: |
| 2086 case COMMENT_NODE: | 2086 case kCommentNode: |
| 2087 case PROCESSING_INSTRUCTION_NODE: | 2087 case kProcessingInstructionNode: |
| 2088 case CDATA_SECTION_NODE: | 2088 case kCdataSectionNode: |
| 2089 return true; | 2089 return true; |
| 2090 default: | 2090 default: |
| 2091 break; | 2091 break; |
| 2092 } | 2092 } |
| 2093 return false; | 2093 return false; |
| 2094 } | 2094 } |
| 2095 | 2095 |
| 2096 void Element::checkForEmptyStyleChange() | 2096 void Element::checkForEmptyStyleChange() |
| 2097 { | 2097 { |
| 2098 const ComputedStyle* style = computedStyle(); | 2098 const ComputedStyle* style = computedStyle(); |
| (...skipping 1670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3769 | 3769 |
| 3770 DEFINE_TRACE_WRAPPERS(Element) | 3770 DEFINE_TRACE_WRAPPERS(Element) |
| 3771 { | 3771 { |
| 3772 if (hasRareData()) { | 3772 if (hasRareData()) { |
| 3773 visitor->traceWrappers(elementRareData()); | 3773 visitor->traceWrappers(elementRareData()); |
| 3774 } | 3774 } |
| 3775 ContainerNode::traceWrappers(visitor); | 3775 ContainerNode::traceWrappers(visitor); |
| 3776 } | 3776 } |
| 3777 | 3777 |
| 3778 } // namespace blink | 3778 } // namespace blink |
| OLD | NEW |