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 1528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1539 ShadowRoot* shadowRoot = ensureShadow()->addShadowRoot(this, ShadowRoot::Use rAgentShadowRoot); | 1539 ShadowRoot* shadowRoot = ensureShadow()->addShadowRoot(this, ShadowRoot::Use rAgentShadowRoot); |
1540 didAddUserAgentShadowRoot(shadowRoot); | 1540 didAddUserAgentShadowRoot(shadowRoot); |
1541 return shadowRoot; | 1541 return shadowRoot; |
1542 } | 1542 } |
1543 | 1543 |
1544 const AtomicString& Element::shadowPseudoId() const | 1544 const AtomicString& Element::shadowPseudoId() const |
1545 { | 1545 { |
1546 return pseudo(); | 1546 return pseudo(); |
1547 } | 1547 } |
1548 | 1548 |
1549 bool Element::isCustomElement() const | |
1550 { | |
1551 return hasRareData() && elementRareData()->isCustomElement(); | |
dglazkov
2013/05/02 03:47:12
I agree with Elliott, let's use bits.
| |
1552 } | |
1553 | |
1554 void Element::setIsCustomElement() | |
1555 { | |
1556 ensureElementRareData()->setIsCustomElement(); | |
1557 } | |
1558 | |
1549 bool Element::childTypeAllowed(NodeType type) const | 1559 bool Element::childTypeAllowed(NodeType type) const |
1550 { | 1560 { |
1551 switch (type) { | 1561 switch (type) { |
1552 case ELEMENT_NODE: | 1562 case ELEMENT_NODE: |
1553 case TEXT_NODE: | 1563 case TEXT_NODE: |
1554 case COMMENT_NODE: | 1564 case COMMENT_NODE: |
1555 case PROCESSING_INSTRUCTION_NODE: | 1565 case PROCESSING_INSTRUCTION_NODE: |
1556 case CDATA_SECTION_NODE: | 1566 case CDATA_SECTION_NODE: |
1557 case ENTITY_REFERENCE_NODE: | 1567 case ENTITY_REFERENCE_NODE: |
1558 return true; | 1568 return true; |
(...skipping 1554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3113 return 0; | 3123 return 0; |
3114 } | 3124 } |
3115 | 3125 |
3116 Attribute* UniqueElementData::attributeItem(unsigned index) | 3126 Attribute* UniqueElementData::attributeItem(unsigned index) |
3117 { | 3127 { |
3118 ASSERT_WITH_SECURITY_IMPLICATION(index < length()); | 3128 ASSERT_WITH_SECURITY_IMPLICATION(index < length()); |
3119 return &m_attributeVector.at(index); | 3129 return &m_attributeVector.at(index); |
3120 } | 3130 } |
3121 | 3131 |
3122 } // namespace WebCore | 3132 } // namespace WebCore |
OLD | NEW |