OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright (C) 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2012 Google Inc. All rights reserved. |
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 are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * 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 11 matching lines...) Expand all Loading... |
22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 */ | 26 */ |
27 | 27 |
28 #include "config.h" | 28 #include "config.h" |
29 #include "core/dom/shadow/ComposedShadowTreeWalker.h" | 29 #include "core/dom/shadow/ComposedShadowTreeWalker.h" |
30 | 30 |
31 #include "core/dom/Element.h" | 31 #include "core/dom/Element.h" |
32 #include "core/dom/PseudoElement.h" | |
33 #include "core/dom/shadow/ContentDistributor.h" | 32 #include "core/dom/shadow/ContentDistributor.h" |
34 #include "core/dom/shadow/ElementShadow.h" | 33 #include "core/dom/shadow/ElementShadow.h" |
35 #include "core/dom/shadow/InsertionPoint.h" | 34 #include "core/dom/shadow/InsertionPoint.h" |
36 #include "core/html/shadow/HTMLContentElement.h" | |
37 #include "core/html/shadow/HTMLShadowElement.h" | |
38 | 35 |
39 namespace WebCore { | 36 namespace WebCore { |
40 | 37 |
41 static inline ElementShadow* shadowFor(const Node* node) | 38 static inline ElementShadow* shadowFor(const Node* node) |
42 { | 39 { |
43 if (node && node->isElementNode()) | 40 if (node && node->isElementNode()) |
44 return toElement(node)->shadow(); | 41 return toElement(node)->shadow(); |
45 return 0; | 42 return 0; |
46 } | 43 } |
47 | 44 |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 if (Node* n = traversePreviousSibling(m_node)) { | 303 if (Node* n = traversePreviousSibling(m_node)) { |
307 while (Node* child = traverseLastChild(n)) | 304 while (Node* child = traverseLastChild(n)) |
308 n = child; | 305 n = child; |
309 m_node = n; | 306 m_node = n; |
310 } else | 307 } else |
311 parent(); | 308 parent(); |
312 assertPostcondition(); | 309 assertPostcondition(); |
313 } | 310 } |
314 | 311 |
315 } // namespace | 312 } // namespace |
OLD | NEW |