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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 bool HTMLImportChild::isLoaded() const | 93 bool HTMLImportChild::isLoaded() const |
94 { | 94 { |
95 return m_loader && m_loader->isDone(); | 95 return m_loader && m_loader->isDone(); |
96 } | 96 } |
97 | 97 |
98 bool HTMLImportChild::isFirst() const | 98 bool HTMLImportChild::isFirst() const |
99 { | 99 { |
100 return m_loader && m_loader->isFirstImport(this); | 100 return m_loader && m_loader->isFirstImport(this); |
101 } | 101 } |
102 | 102 |
103 Document* HTMLImportChild::importedDocument() const | |
104 { | |
105 if (!m_loader) | |
106 return 0; | |
107 return m_loader->importedDocument(); | |
108 } | |
109 | |
110 void HTMLImportChild::importDestroyed() | 103 void HTMLImportChild::importDestroyed() |
111 { | 104 { |
112 if (parent()) | 105 if (parent()) |
113 parent()->removeChild(this); | 106 parent()->removeChild(this); |
114 if (m_loader) { | 107 if (m_loader) { |
115 m_loader->removeImport(this); | 108 m_loader->removeImport(this); |
116 m_loader = 0; | 109 m_loader = 0; |
117 } | 110 } |
118 } | 111 } |
119 | 112 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 fprintf(stderr, " loader=%p first=%d, step=%p sync=%s url=%s", | 205 fprintf(stderr, " loader=%p first=%d, step=%p sync=%s url=%s", |
213 m_loader, | 206 m_loader, |
214 isFirst, | 207 isFirst, |
215 m_customElementMicrotaskStep.get(), | 208 m_customElementMicrotaskStep.get(), |
216 isSync() ? "Y" : "N", | 209 isSync() ? "Y" : "N", |
217 url().string().utf8().data()); | 210 url().string().utf8().data()); |
218 } | 211 } |
219 #endif | 212 #endif |
220 | 213 |
221 } // namespace WebCore | 214 } // namespace WebCore |
OLD | NEW |