| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "sky/engine/config.h" | |
| 6 #include "sky/engine/core/dom/custom/custom_element_registry.h" | 5 #include "sky/engine/core/dom/custom/custom_element_registry.h" |
| 7 | 6 |
| 8 #include "sky/engine/core/dom/Element.h" | 7 #include "sky/engine/core/dom/Element.h" |
| 9 #include "sky/engine/core/html/HTMLElement.h" | 8 #include "sky/engine/core/html/HTMLElement.h" |
| 10 | 9 |
| 11 namespace blink { | 10 namespace blink { |
| 12 | 11 |
| 13 CustomElementRegistry::CustomElementRegistry() { | 12 CustomElementRegistry::CustomElementRegistry() { |
| 14 } | 13 } |
| 15 | 14 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 39 RefPtr<Element> element = DartConverter<Element*>::FromDart(wrapper); | 38 RefPtr<Element> element = DartConverter<Element*>::FromDart(wrapper); |
| 40 DCHECK(element); | 39 DCHECK(element); |
| 41 DCHECK(element->isUpgradedCustomElement()); | 40 DCHECK(element->isUpgradedCustomElement()); |
| 42 return element.release(); | 41 return element.release(); |
| 43 } | 42 } |
| 44 } | 43 } |
| 45 return HTMLElement::create(QualifiedName(name), document); | 44 return HTMLElement::create(QualifiedName(name), document); |
| 46 } | 45 } |
| 47 | 46 |
| 48 } // namespace blink | 47 } // namespace blink |
| OLD | NEW |