| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 V0CustomElementException::ContextDestroyedRegisteringDefinition, type, | 107 V0CustomElementException::ContextDestroyedRegisteringDefinition, type, |
| 108 exceptionState); | 108 exceptionState); |
| 109 return 0; | 109 return 0; |
| 110 } | 110 } |
| 111 | 111 |
| 112 return definition; | 112 return definition; |
| 113 } | 113 } |
| 114 | 114 |
| 115 V0CustomElementDefinition* V0CustomElementRegistry::find( | 115 V0CustomElementDefinition* V0CustomElementRegistry::find( |
| 116 const V0CustomElementDescriptor& descriptor) const { | 116 const V0CustomElementDescriptor& descriptor) const { |
| 117 return m_definitions.get(descriptor); | 117 return m_definitions.at(descriptor); |
| 118 } | 118 } |
| 119 | 119 |
| 120 bool V0CustomElementRegistry::nameIsDefined(const AtomicString& name) const { | 120 bool V0CustomElementRegistry::nameIsDefined(const AtomicString& name) const { |
| 121 return m_registeredTypeNames.contains(name); | 121 return m_registeredTypeNames.contains(name); |
| 122 } | 122 } |
| 123 | 123 |
| 124 void V0CustomElementRegistry::setV1(const CustomElementRegistry* v1) { | 124 void V0CustomElementRegistry::setV1(const CustomElementRegistry* v1) { |
| 125 DCHECK(!m_v1.get()); | 125 DCHECK(!m_v1.get()); |
| 126 m_v1 = v1; | 126 m_v1 = v1; |
| 127 } | 127 } |
| 128 | 128 |
| 129 bool V0CustomElementRegistry::v1NameIsDefined(const AtomicString& name) const { | 129 bool V0CustomElementRegistry::v1NameIsDefined(const AtomicString& name) const { |
| 130 return m_v1.get() && m_v1->nameIsDefined(name); | 130 return m_v1.get() && m_v1->nameIsDefined(name); |
| 131 } | 131 } |
| 132 | 132 |
| 133 DEFINE_TRACE(V0CustomElementRegistry) { | 133 DEFINE_TRACE(V0CustomElementRegistry) { |
| 134 visitor->trace(m_definitions); | 134 visitor->trace(m_definitions); |
| 135 visitor->trace(m_v1); | 135 visitor->trace(m_v1); |
| 136 } | 136 } |
| 137 | 137 |
| 138 } // namespace blink | 138 } // namespace blink |
| OLD | NEW |