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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 HTMLImportChild::HTMLImportChild(const KURL& url, | 47 HTMLImportChild::HTMLImportChild(const KURL& url, |
48 HTMLImportLoader* loader, | 48 HTMLImportLoader* loader, |
49 SyncMode sync) | 49 SyncMode sync) |
50 : HTMLImport(sync), m_url(url), m_loader(loader), m_client(nullptr) {} | 50 : HTMLImport(sync), m_url(url), m_loader(loader), m_client(nullptr) {} |
51 | 51 |
52 HTMLImportChild::~HTMLImportChild() {} | 52 HTMLImportChild::~HTMLImportChild() {} |
53 | 53 |
54 void HTMLImportChild::ownerInserted() { | 54 void HTMLImportChild::ownerInserted() { |
55 if (!m_loader->isDone()) | 55 if (!m_loader->isDone()) |
56 return; | 56 return; |
57 root()->document()->styleEngine().resolverChanged(FullStyleUpdate); | 57 document()->styleEngine().importAddedOrRemoved(); |
58 } | 58 } |
59 | 59 |
60 void HTMLImportChild::didShareLoader() { | 60 void HTMLImportChild::didShareLoader() { |
61 createCustomElementMicrotaskStepIfNeeded(); | 61 createCustomElementMicrotaskStepIfNeeded(); |
62 stateWillChange(); | 62 stateWillChange(); |
63 } | 63 } |
64 | 64 |
65 void HTMLImportChild::didStartLoading() { | 65 void HTMLImportChild::didStartLoading() { |
66 createCustomElementMicrotaskStepIfNeeded(); | 66 createCustomElementMicrotaskStepIfNeeded(); |
67 } | 67 } |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 #endif | 186 #endif |
187 | 187 |
188 DEFINE_TRACE(HTMLImportChild) { | 188 DEFINE_TRACE(HTMLImportChild) { |
189 visitor->trace(m_customElementMicrotaskStep); | 189 visitor->trace(m_customElementMicrotaskStep); |
190 visitor->trace(m_loader); | 190 visitor->trace(m_loader); |
191 visitor->trace(m_client); | 191 visitor->trace(m_client); |
192 HTMLImport::trace(visitor); | 192 HTMLImport::trace(visitor); |
193 } | 193 } |
194 | 194 |
195 } // namespace blink | 195 } // namespace blink |
OLD | NEW |