OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 // Required for using WebNodes in std maps. Note the order used is | 71 // Required for using WebNodes in std maps. Note the order used is |
72 // arbitrary and should not be expected to have any specific meaning. | 72 // arbitrary and should not be expected to have any specific meaning. |
73 BLINK_EXPORT bool lessThan(const WebNode&) const; | 73 BLINK_EXPORT bool lessThan(const WebNode&) const; |
74 | 74 |
75 bool isNull() const { return m_private.isNull(); } | 75 bool isNull() const { return m_private.isNull(); } |
76 | 76 |
77 enum NodeType { | 77 enum NodeType { |
78 ElementNode = 1, | 78 ElementNode = 1, |
79 AttributeNode = 2, | 79 AttributeNode = 2, |
80 TextNode = 3, | 80 TextNode = 3, |
81 CDataSectionNode = 4, | 81 // CDataSectionNodes are impossible to create in Blink. |
82 // EntityReferenceNodes are impossible to create in Blink. | 82 // EntityReferenceNodes are impossible to create in Blink. |
83 // EntityNodes are impossible to create in Blink. | 83 // EntityNodes are impossible to create in Blink. |
84 ProcessingInstructionsNode = 7, | 84 ProcessingInstructionsNode = 7, |
85 CommentNode = 8, | 85 CommentNode = 8, |
86 DocumentNode = 9, | 86 DocumentNode = 9, |
87 DocumentTypeNode = 10, | 87 DocumentTypeNode = 10, |
88 DocumentFragmentNode = 11, | 88 DocumentFragmentNode = 11, |
89 // NotationNodes are impossible to create in Blink. | 89 // NotationNodes are impossible to create in Blink. |
90 // XPathNamespaceNodes are impossible to create in Blink. | 90 // XPathNamespaceNodes are impossible to create in Blink. |
91 ShadowRootNode = 14 | 91 ShadowRootNode = 14 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 } | 175 } |
176 | 176 |
177 inline bool operator<(const WebNode& a, const WebNode& b) | 177 inline bool operator<(const WebNode& a, const WebNode& b) |
178 { | 178 { |
179 return a.lessThan(b); | 179 return a.lessThan(b); |
180 } | 180 } |
181 | 181 |
182 } // namespace blink | 182 } // namespace blink |
183 | 183 |
184 #endif | 184 #endif |
OLD | NEW |