OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2005 Frerich Raabe <raabe@kde.org> | 2 * Copyright (C) 2005 Frerich Raabe <raabe@kde.org> |
3 * Copyright (C) 2006, 2009 Apple Inc. | 3 * Copyright (C) 2006, 2009 Apple Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 case Node::CDATA_SECTION_NODE: | 77 case Node::CDATA_SECTION_NODE: |
78 case Node::COMMENT_NODE: | 78 case Node::COMMENT_NODE: |
79 case Node::DOCUMENT_NODE: | 79 case Node::DOCUMENT_NODE: |
80 case Node::ELEMENT_NODE: | 80 case Node::ELEMENT_NODE: |
81 case Node::PROCESSING_INSTRUCTION_NODE: | 81 case Node::PROCESSING_INSTRUCTION_NODE: |
82 case Node::XPATH_NAMESPACE_NODE: | 82 case Node::XPATH_NAMESPACE_NODE: |
83 return true; | 83 return true; |
84 case Node::DOCUMENT_FRAGMENT_NODE: | 84 case Node::DOCUMENT_FRAGMENT_NODE: |
85 case Node::DOCUMENT_TYPE_NODE: | 85 case Node::DOCUMENT_TYPE_NODE: |
86 case Node::ENTITY_NODE: | 86 case Node::ENTITY_NODE: |
87 case Node::ENTITY_REFERENCE_NODE: | |
88 case Node::NOTATION_NODE: | 87 case Node::NOTATION_NODE: |
89 return false; | 88 return false; |
90 case Node::TEXT_NODE: | 89 case Node::TEXT_NODE: |
91 return !(node->parentNode() && node->parentNode()->isAttributeNode()
); | 90 return !(node->parentNode() && node->parentNode()->isAttributeNode()
); |
92 } | 91 } |
93 ASSERT_NOT_REACHED(); | 92 ASSERT_NOT_REACHED(); |
94 return false; | 93 return false; |
95 } | 94 } |
96 | 95 |
97 } | 96 } |
98 } | 97 } |
OLD | NEW |