| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 16 matching lines...) Expand all Loading... |
| 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 #ifndef SKY_ENGINE_CORE_DOM_CUSTOM_CUSTOMELEMENTREGISTRATIONCONTEXT_H_ | 31 #ifndef SKY_ENGINE_CORE_DOM_CUSTOM_CUSTOMELEMENTREGISTRATIONCONTEXT_H_ |
| 32 #define SKY_ENGINE_CORE_DOM_CUSTOM_CUSTOMELEMENTREGISTRATIONCONTEXT_H_ | 32 #define SKY_ENGINE_CORE_DOM_CUSTOM_CUSTOMELEMENTREGISTRATIONCONTEXT_H_ |
| 33 | 33 |
| 34 #include "sky/engine/core/dom/QualifiedName.h" | 34 #include "sky/engine/core/dom/QualifiedName.h" |
| 35 #include "sky/engine/core/dom/custom/CustomElementDescriptor.h" | 35 #include "sky/engine/core/dom/custom/CustomElementDescriptor.h" |
| 36 #include "sky/engine/core/dom/custom/CustomElementRegistry.h" | 36 #include "sky/engine/core/dom/custom/CustomElementRegistry.h" |
| 37 #include "sky/engine/core/dom/custom/CustomElementUpgradeCandidateMap.h" | |
| 38 #include "sky/engine/platform/heap/Handle.h" | 37 #include "sky/engine/platform/heap/Handle.h" |
| 39 #include "sky/engine/wtf/HashMap.h" | 38 #include "sky/engine/wtf/HashMap.h" |
| 40 #include "sky/engine/wtf/PassOwnPtr.h" | 39 #include "sky/engine/wtf/PassOwnPtr.h" |
| 41 #include "sky/engine/wtf/PassRefPtr.h" | 40 #include "sky/engine/wtf/PassRefPtr.h" |
| 42 #include "sky/engine/wtf/text/AtomicString.h" | 41 #include "sky/engine/wtf/text/AtomicString.h" |
| 43 | 42 |
| 44 namespace blink { | 43 namespace blink { |
| 45 | 44 |
| 46 class CustomElementConstructorBuilder; | 45 class CustomElementConstructorBuilder; |
| 47 class Document; | 46 class Document; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 64 | 63 |
| 65 void resolve(Element*, const CustomElementDescriptor&); | 64 void resolve(Element*, const CustomElementDescriptor&); |
| 66 | 65 |
| 67 protected: | 66 protected: |
| 68 CustomElementRegistrationContext(); | 67 CustomElementRegistrationContext(); |
| 69 | 68 |
| 70 private: | 69 private: |
| 71 void resolveOrScheduleResolution(Element*); | 70 void resolveOrScheduleResolution(Element*); |
| 72 | 71 |
| 73 CustomElementRegistry m_registry; | 72 CustomElementRegistry m_registry; |
| 74 | |
| 75 // Element creation | |
| 76 OwnPtr<CustomElementUpgradeCandidateMap> m_candidates; | |
| 77 }; | 73 }; |
| 78 | 74 |
| 79 } | 75 } |
| 80 | 76 |
| 81 #endif // SKY_ENGINE_CORE_DOM_CUSTOM_CUSTOMELEMENTREGISTRATIONCONTEXT_H_ | 77 #endif // SKY_ENGINE_CORE_DOM_CUSTOM_CUSTOMELEMENTREGISTRATIONCONTEXT_H_ |
| 82 | 78 |
| OLD | NEW |