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 1560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1571 } | 1571 } |
1572 | 1572 |
1573 bool Element::childTypeAllowed(NodeType type) const | 1573 bool Element::childTypeAllowed(NodeType type) const |
1574 { | 1574 { |
1575 switch (type) { | 1575 switch (type) { |
1576 case ELEMENT_NODE: | 1576 case ELEMENT_NODE: |
1577 case TEXT_NODE: | 1577 case TEXT_NODE: |
1578 case COMMENT_NODE: | 1578 case COMMENT_NODE: |
1579 case PROCESSING_INSTRUCTION_NODE: | 1579 case PROCESSING_INSTRUCTION_NODE: |
1580 case CDATA_SECTION_NODE: | 1580 case CDATA_SECTION_NODE: |
1581 case ENTITY_REFERENCE_NODE: | |
1582 return true; | 1581 return true; |
1583 default: | 1582 default: |
1584 break; | 1583 break; |
1585 } | 1584 } |
1586 return false; | 1585 return false; |
1587 } | 1586 } |
1588 | 1587 |
1589 static void checkForEmptyStyleChange(Element* element, RenderStyle* style) | 1588 static void checkForEmptyStyleChange(Element* element, RenderStyle* style) |
1590 { | 1589 { |
1591 if (!style && !element->styleAffectedByEmpty()) | 1590 if (!style && !element->styleAffectedByEmpty()) |
(...skipping 1550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3142 return 0; | 3141 return 0; |
3143 } | 3142 } |
3144 | 3143 |
3145 Attribute* UniqueElementData::attributeItem(unsigned index) | 3144 Attribute* UniqueElementData::attributeItem(unsigned index) |
3146 { | 3145 { |
3147 ASSERT_WITH_SECURITY_IMPLICATION(index < length()); | 3146 ASSERT_WITH_SECURITY_IMPLICATION(index < length()); |
3148 return &m_attributeVector.at(index); | 3147 return &m_attributeVector.at(index); |
3149 } | 3148 } |
3150 | 3149 |
3151 } // namespace WebCore | 3150 } // namespace WebCore |
OLD | NEW |