| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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" | 5 #include "sky/engine/config.h" |
| 6 #include "sky/engine/core/html/HTMLImportElement.h" | 6 #include "sky/engine/core/html/HTMLImportElement.h" |
| 7 | 7 |
| 8 #include "gen/sky/core/EventTypeNames.h" | 8 #include "gen/sky/core/EventTypeNames.h" |
| 9 #include "sky/engine/core/dom/Document.h" | 9 #include "sky/engine/core/dom/Document.h" |
| 10 #include "sky/engine/core/events/Event.h" | 10 #include "sky/engine/core/events/Event.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 } | 67 } |
| 68 | 68 |
| 69 void HTMLImportElement::importChildWasDestroyed(HTMLImportChild* child) | 69 void HTMLImportElement::importChildWasDestroyed(HTMLImportChild* child) |
| 70 { | 70 { |
| 71 ASSERT(m_child == child); | 71 ASSERT(m_child == child); |
| 72 m_child = nullptr; | 72 m_child = nullptr; |
| 73 } | 73 } |
| 74 | 74 |
| 75 bool HTMLImportElement::isSync() const | 75 bool HTMLImportElement::isSync() const |
| 76 { | 76 { |
| 77 return true; | 77 return !hasAttribute(HTMLNames::asyncAttr); |
| 78 } | 78 } |
| 79 | 79 |
| 80 Element* HTMLImportElement::link() | 80 Element* HTMLImportElement::link() |
| 81 { | 81 { |
| 82 return this; | 82 return this; |
| 83 } | 83 } |
| 84 | 84 |
| 85 } | 85 } |
| OLD | NEW |