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 14 matching lines...) Expand all Loading... |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #include "core/html/imports/HTMLImportChild.h" | 31 #include "core/html/imports/HTMLImportChild.h" |
32 | 32 |
33 #include "core/css/StyleSheetList.h" | 33 #include "core/css/StyleSheetList.h" |
34 #include "core/dom/Document.h" | 34 #include "core/dom/Document.h" |
| 35 #include "core/dom/StyleEngine.h" |
35 #include "core/dom/custom/CustomElement.h" | 36 #include "core/dom/custom/CustomElement.h" |
36 #include "core/dom/custom/CustomElementMicrotaskImportStep.h" | 37 #include "core/dom/custom/CustomElementMicrotaskImportStep.h" |
37 #include "core/dom/custom/CustomElementSyncMicrotaskQueue.h" | 38 #include "core/dom/custom/CustomElementSyncMicrotaskQueue.h" |
38 #include "core/frame/UseCounter.h" | 39 #include "core/frame/UseCounter.h" |
39 #include "core/html/imports/HTMLImportChildClient.h" | 40 #include "core/html/imports/HTMLImportChildClient.h" |
40 #include "core/html/imports/HTMLImportLoader.h" | 41 #include "core/html/imports/HTMLImportLoader.h" |
41 #include "core/html/imports/HTMLImportTreeRoot.h" | 42 #include "core/html/imports/HTMLImportTreeRoot.h" |
42 #include "core/html/imports/HTMLImportsController.h" | 43 #include "core/html/imports/HTMLImportsController.h" |
43 | 44 |
44 namespace blink { | 45 namespace blink { |
(...skipping 14 matching lines...) Expand all Loading... |
59 #if !ENABLE(OILPAN) | 60 #if !ENABLE(OILPAN) |
60 // dispose() should be called before the destruction. | 61 // dispose() should be called before the destruction. |
61 ASSERT(!m_loader); | 62 ASSERT(!m_loader); |
62 #endif | 63 #endif |
63 } | 64 } |
64 | 65 |
65 void HTMLImportChild::ownerInserted() | 66 void HTMLImportChild::ownerInserted() |
66 { | 67 { |
67 if (!m_loader->isDone()) | 68 if (!m_loader->isDone()) |
68 return; | 69 return; |
69 root()->document()->styleResolverChanged(); | 70 root()->document()->styleEngine().resolverChanged(FullStyleUpdate); |
70 } | 71 } |
71 | 72 |
72 void HTMLImportChild::didShareLoader() | 73 void HTMLImportChild::didShareLoader() |
73 { | 74 { |
74 createCustomElementMicrotaskStepIfNeeded(); | 75 createCustomElementMicrotaskStepIfNeeded(); |
75 stateWillChange(); | 76 stateWillChange(); |
76 } | 77 } |
77 | 78 |
78 void HTMLImportChild::didStartLoading() | 79 void HTMLImportChild::didStartLoading() |
79 { | 80 { |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 | 228 |
228 DEFINE_TRACE(HTMLImportChild) | 229 DEFINE_TRACE(HTMLImportChild) |
229 { | 230 { |
230 visitor->trace(m_customElementMicrotaskStep); | 231 visitor->trace(m_customElementMicrotaskStep); |
231 visitor->trace(m_loader); | 232 visitor->trace(m_loader); |
232 visitor->trace(m_client); | 233 visitor->trace(m_client); |
233 HTMLImport::trace(visitor); | 234 HTMLImport::trace(visitor); |
234 } | 235 } |
235 | 236 |
236 } // namespace blink | 237 } // namespace blink |
OLD | NEW |