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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 15 matching lines...) Expand all Loading... |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #include "config.h" | 31 #include "config.h" |
32 | 32 |
33 #include "core/dom/CustomElementRegistry.h" | 33 #include "core/dom/CustomElementRegistry.h" |
34 | 34 |
35 #include "HTMLNames.h" | 35 #include "HTMLNames.h" |
36 #include "RuntimeEnabledFeatures.h" | |
37 #include "bindings/v8/CustomElementHelpers.h" | 36 #include "bindings/v8/CustomElementHelpers.h" |
38 #include "bindings/v8/Dictionary.h" | 37 #include "bindings/v8/Dictionary.h" |
39 #include "bindings/v8/ScriptValue.h" | 38 #include "bindings/v8/ScriptValue.h" |
40 #include "core/dom/CustomElementDefinition.h" | 39 #include "core/dom/CustomElementDefinition.h" |
41 #include "core/dom/Document.h" | 40 #include "core/dom/Document.h" |
42 #include "core/dom/Element.h" | 41 #include "core/dom/Element.h" |
43 #include "core/html/HTMLElement.h" | 42 #include "core/html/HTMLElement.h" |
44 | 43 |
45 #if ENABLE(SVG) | 44 #if ENABLE(SVG) |
46 #include "SVGNames.h" | 45 #include "SVGNames.h" |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 while (!activeCustomElementRegistries().isEmpty()) { | 318 while (!activeCustomElementRegistries().isEmpty()) { |
320 Vector<RefPtr<CustomElementRegistry> > registries; | 319 Vector<RefPtr<CustomElementRegistry> > registries; |
321 copyToVector(activeCustomElementRegistries(), registries); | 320 copyToVector(activeCustomElementRegistries(), registries); |
322 activeCustomElementRegistries().clear(); | 321 activeCustomElementRegistries().clear(); |
323 for (size_t i = 0; i < registries.size(); ++i) | 322 for (size_t i = 0; i < registries.size(); ++i) |
324 registries[i]->deliverLifecycleCallbacks(); | 323 registries[i]->deliverLifecycleCallbacks(); |
325 } | 324 } |
326 } | 325 } |
327 | 326 |
328 } | 327 } |
OLD | NEW |