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::kDocumentNode: | 77 case Node::kDocumentNode: |
78 case Node::kElementNode: | 78 case Node::kElementNode: |
79 case Node::kProcessingInstructionNode: | 79 case Node::kProcessingInstructionNode: |
80 return true; | 80 return true; |
81 case Node::kDocumentFragmentNode: | 81 case Node::kDocumentFragmentNode: |
82 case Node::kDocumentTypeNode: | 82 case Node::kDocumentTypeNode: |
83 return false; | 83 return false; |
84 case Node::kTextNode: | 84 case Node::kTextNode: |
85 return !(node->parentNode() && node->parentNode()->isAttributeNode()); | 85 return !(node->parentNode() && node->parentNode()->isAttributeNode()); |
86 } | 86 } |
87 ASSERT_NOT_REACHED(); | 87 NOTREACHED(); |
88 return false; | 88 return false; |
89 } | 89 } |
90 | 90 |
91 } // namespace XPath | 91 } // namespace XPath |
92 } // namespace blink | 92 } // namespace blink |
OLD | NEW |