| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 { | 54 { |
| 55 return adoptRef(new CustomElementRegistrationContext()); | 55 return adoptRef(new CustomElementRegistrationContext()); |
| 56 } | 56 } |
| 57 | 57 |
| 58 ~CustomElementRegistrationContext() { } | 58 ~CustomElementRegistrationContext() { } |
| 59 | 59 |
| 60 // Definitions | 60 // Definitions |
| 61 void registerElement(Document*, CustomElementConstructorBuilder*, const Atom
icString& type, CustomElement::NameSet validNames, ExceptionState&); | 61 void registerElement(Document*, CustomElementConstructorBuilder*, const Atom
icString& type, CustomElement::NameSet validNames, ExceptionState&); |
| 62 | 62 |
| 63 PassRefPtr<Element> createCustomTagElement(Document&, const QualifiedName&); | 63 PassRefPtr<Element> createCustomTagElement(Document&, const QualifiedName&); |
| 64 static void setIsAttributeAndTypeExtension(Element*, const AtomicString& typ
e); | |
| 65 static void setTypeExtension(Element*, const AtomicString& type); | |
| 66 | 64 |
| 67 void resolve(Element*, const CustomElementDescriptor&); | 65 void resolve(Element*, const CustomElementDescriptor&); |
| 68 | 66 |
| 69 protected: | 67 protected: |
| 70 CustomElementRegistrationContext(); | 68 CustomElementRegistrationContext(); |
| 71 | 69 |
| 72 // Instance creation | |
| 73 void didGiveTypeExtension(Element*, const AtomicString& type); | |
| 74 | |
| 75 private: | 70 private: |
| 76 void resolveOrScheduleResolution(Element*, const AtomicString& typeExtension
); | 71 void resolveOrScheduleResolution(Element*); |
| 77 | 72 |
| 78 CustomElementRegistry m_registry; | 73 CustomElementRegistry m_registry; |
| 79 | 74 |
| 80 // Element creation | 75 // Element creation |
| 81 OwnPtr<CustomElementUpgradeCandidateMap> m_candidates; | 76 OwnPtr<CustomElementUpgradeCandidateMap> m_candidates; |
| 82 }; | 77 }; |
| 83 | 78 |
| 84 } | 79 } |
| 85 | 80 |
| 86 #endif // SKY_ENGINE_CORE_DOM_CUSTOM_CUSTOMELEMENTREGISTRATIONCONTEXT_H_ | 81 #endif // SKY_ENGINE_CORE_DOM_CUSTOM_CUSTOMELEMENTREGISTRATIONCONTEXT_H_ |
| 87 | 82 |
| OLD | NEW |