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 19 matching lines...) Expand all Loading... |
30 | 30 |
31 #include "config.h" | 31 #include "config.h" |
32 #include "core/html/imports/HTMLImportChild.h" | 32 #include "core/html/imports/HTMLImportChild.h" |
33 | 33 |
34 #include "core/dom/Document.h" | 34 #include "core/dom/Document.h" |
35 #include "core/dom/custom/CustomElement.h" | 35 #include "core/dom/custom/CustomElement.h" |
36 #include "core/dom/custom/CustomElementMicrotaskDispatcher.h" | 36 #include "core/dom/custom/CustomElementMicrotaskDispatcher.h" |
37 #include "core/dom/custom/CustomElementMicrotaskImportStep.h" | 37 #include "core/dom/custom/CustomElementMicrotaskImportStep.h" |
38 #include "core/html/imports/HTMLImportChildClient.h" | 38 #include "core/html/imports/HTMLImportChildClient.h" |
39 #include "core/html/imports/HTMLImportLoader.h" | 39 #include "core/html/imports/HTMLImportLoader.h" |
| 40 #include "core/html/imports/HTMLImportTreeRoot.h" |
40 #include "core/html/imports/HTMLImportsController.h" | 41 #include "core/html/imports/HTMLImportsController.h" |
41 | 42 |
42 namespace WebCore { | 43 namespace WebCore { |
43 | 44 |
44 HTMLImportChild::HTMLImportChild(const KURL& url, HTMLImportLoader* loader, Sync
Mode sync) | 45 HTMLImportChild::HTMLImportChild(const KURL& url, HTMLImportLoader* loader, Sync
Mode sync) |
45 : HTMLImport(sync) | 46 : HTMLImport(sync) |
46 , m_url(url) | 47 , m_url(url) |
47 , m_weakFactory(this) | 48 , m_weakFactory(this) |
48 , m_loader(loader) | 49 , m_loader(loader) |
49 , m_client(0) | 50 , m_client(0) |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 } | 117 } |
117 } | 118 } |
118 | 119 |
119 Document* HTMLImportChild::document() const | 120 Document* HTMLImportChild::document() const |
120 { | 121 { |
121 return m_loader ? m_loader->document() : 0; | 122 return m_loader ? m_loader->document() : 0; |
122 } | 123 } |
123 | 124 |
124 void HTMLImportChild::stateWillChange() | 125 void HTMLImportChild::stateWillChange() |
125 { | 126 { |
126 toHTMLImportsController(root())->scheduleRecalcState(); | 127 toHTMLImportTreeRoot(root())->scheduleRecalcState(); |
127 } | 128 } |
128 | 129 |
129 void HTMLImportChild::stateDidChange() | 130 void HTMLImportChild::stateDidChange() |
130 { | 131 { |
131 HTMLImport::stateDidChange(); | 132 HTMLImport::stateDidChange(); |
132 | 133 |
133 if (state().isReady()) | 134 if (state().isReady()) |
134 didFinish(); | 135 didFinish(); |
135 } | 136 } |
136 | 137 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 fprintf(stderr, " loader=%p first=%d, step=%p sync=%s url=%s", | 212 fprintf(stderr, " loader=%p first=%d, step=%p sync=%s url=%s", |
212 m_loader, | 213 m_loader, |
213 isFirst, | 214 isFirst, |
214 m_customElementMicrotaskStep.get(), | 215 m_customElementMicrotaskStep.get(), |
215 isSync() ? "Y" : "N", | 216 isSync() ? "Y" : "N", |
216 url().string().utf8().data()); | 217 url().string().utf8().data()); |
217 } | 218 } |
218 #endif | 219 #endif |
219 | 220 |
220 } // namespace WebCore | 221 } // namespace WebCore |
OLD | NEW |