| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 18 matching lines...) Expand all Loading... |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #include "core/dom/shadow/InsertionPoint.h" | 32 #include "core/dom/shadow/InsertionPoint.h" |
| 33 | 33 |
| 34 #include "HTMLNames.h" | 34 #include "HTMLNames.h" |
| 35 #include "core/dom/ElementTraversal.h" | 35 #include "core/dom/ElementTraversal.h" |
| 36 #include "core/dom/QualifiedName.h" | 36 #include "core/dom/QualifiedName.h" |
| 37 #include "core/dom/StaticNodeList.h" | 37 #include "core/dom/StaticNodeList.h" |
| 38 #include "core/dom/shadow/ElementShadow.h" | 38 #include "core/dom/shadow/ElementShadow.h" |
| 39 #include "core/dom/shadow/ShadowRoot.h" | |
| 40 #include "core/html/shadow/HTMLContentElement.h" | 39 #include "core/html/shadow/HTMLContentElement.h" |
| 41 #include "core/html/shadow/HTMLShadowElement.h" | 40 #include "core/html/shadow/HTMLShadowElement.h" |
| 42 | 41 |
| 43 namespace WebCore { | 42 namespace WebCore { |
| 44 | 43 |
| 45 using namespace HTMLNames; | 44 using namespace HTMLNames; |
| 46 | 45 |
| 47 InsertionPoint::InsertionPoint(const QualifiedName& tagName, Document& document) | 46 InsertionPoint::InsertionPoint(const QualifiedName& tagName, Document& document) |
| 48 : HTMLElement(tagName, document, CreateInsertionPoint) | 47 : HTMLElement(tagName, document, CreateInsertionPoint) |
| 49 , m_registeredWithShadowRoot(false) | 48 , m_registeredWithShadowRoot(false) |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 if (!insertionPoints) | 309 if (!insertionPoints) |
| 311 return; | 310 return; |
| 312 for (size_t i = 0; i < insertionPoints->size(); ++i) | 311 for (size_t i = 0; i < insertionPoints->size(); ++i) |
| 313 results.append(insertionPoints->at(i).get()); | 312 results.append(insertionPoints->at(i).get()); |
| 314 ASSERT(current != insertionPoints->last().get()); | 313 ASSERT(current != insertionPoints->last().get()); |
| 315 current = insertionPoints->last().get(); | 314 current = insertionPoints->last().get(); |
| 316 } | 315 } |
| 317 } | 316 } |
| 318 | 317 |
| 319 } // namespace WebCore | 318 } // namespace WebCore |
| OLD | NEW |