| 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 { | 105 { |
| 106 if (parent()) | 106 if (parent()) |
| 107 parent()->removeChild(this); | 107 parent()->removeChild(this); |
| 108 | 108 |
| 109 ASSERT(m_loader); | 109 ASSERT(m_loader); |
| 110 m_loader->removeImport(this); | 110 m_loader->removeImport(this); |
| 111 m_loader = nullptr; | 111 m_loader = nullptr; |
| 112 } | 112 } |
| 113 #endif | 113 #endif |
| 114 | 114 |
| 115 Module* HTMLImportChild::module() const |
| 116 { |
| 117 ASSERT(m_loader); |
| 118 return m_loader->module(); |
| 119 } |
| 120 |
| 115 Document* HTMLImportChild::document() const | 121 Document* HTMLImportChild::document() const |
| 116 { | 122 { |
| 117 ASSERT(m_loader); | 123 ASSERT(m_loader); |
| 118 return m_loader->document(); | 124 return m_loader->document(); |
| 119 } | 125 } |
| 120 | 126 |
| 121 void HTMLImportChild::stateWillChange() | 127 void HTMLImportChild::stateWillChange() |
| 122 { | 128 { |
| 123 toHTMLImportTreeRoot(root())->scheduleRecalcState(); | 129 toHTMLImportTreeRoot(root())->scheduleRecalcState(); |
| 124 } | 130 } |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 | 229 |
| 224 void HTMLImportChild::trace(Visitor* visitor) | 230 void HTMLImportChild::trace(Visitor* visitor) |
| 225 { | 231 { |
| 226 visitor->trace(m_customElementMicrotaskStep); | 232 visitor->trace(m_customElementMicrotaskStep); |
| 227 visitor->trace(m_loader); | 233 visitor->trace(m_loader); |
| 228 visitor->trace(m_client); | 234 visitor->trace(m_client); |
| 229 HTMLImport::trace(visitor); | 235 HTMLImport::trace(visitor); |
| 230 } | 236 } |
| 231 | 237 |
| 232 } // namespace blink | 238 } // namespace blink |
| OLD | NEW |