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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 { | 58 { |
59 #if !ENABLE(OILPAN) | 59 #if !ENABLE(OILPAN) |
60 // importDestroyed() should be called before the destruction. | 60 // importDestroyed() should be called before the destruction. |
61 ASSERT(!m_loader); | 61 ASSERT(!m_loader); |
62 | 62 |
63 if (m_client) | 63 if (m_client) |
64 m_client->importChildWasDestroyed(this); | 64 m_client->importChildWasDestroyed(this); |
65 #endif | 65 #endif |
66 } | 66 } |
67 | 67 |
| 68 void HTMLImportChild::ownerInserted() |
| 69 { |
| 70 if (!m_loader->isDone()) |
| 71 return; |
| 72 root()->document()->styleResolverChanged(); |
| 73 } |
| 74 |
68 void HTMLImportChild::didShareLoader() | 75 void HTMLImportChild::didShareLoader() |
69 { | 76 { |
70 createCustomElementMicrotaskStepIfNeeded(); | 77 createCustomElementMicrotaskStepIfNeeded(); |
71 stateWillChange(); | 78 stateWillChange(); |
72 } | 79 } |
73 | 80 |
74 void HTMLImportChild::didStartLoading() | 81 void HTMLImportChild::didStartLoading() |
75 { | 82 { |
76 createCustomElementMicrotaskStepIfNeeded(); | 83 createCustomElementMicrotaskStepIfNeeded(); |
77 } | 84 } |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 | 227 |
221 void HTMLImportChild::trace(Visitor* visitor) | 228 void HTMLImportChild::trace(Visitor* visitor) |
222 { | 229 { |
223 visitor->trace(m_customElementMicrotaskStep); | 230 visitor->trace(m_customElementMicrotaskStep); |
224 visitor->trace(m_loader); | 231 visitor->trace(m_loader); |
225 visitor->trace(m_client); | 232 visitor->trace(m_client); |
226 HTMLImport::trace(visitor); | 233 HTMLImport::trace(visitor); |
227 } | 234 } |
228 | 235 |
229 } // namespace WebCore | 236 } // namespace WebCore |
OLD | NEW |