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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 76 |
77 void HTMLImportChild::didFinish() | 77 void HTMLImportChild::didFinish() |
78 { | 78 { |
79 if (m_client) | 79 if (m_client) |
80 m_client->didFinish(); | 80 m_client->didFinish(); |
81 } | 81 } |
82 | 82 |
83 void HTMLImportChild::didFinishLoading() | 83 void HTMLImportChild::didFinishLoading() |
84 { | 84 { |
85 stateWillChange(); | 85 stateWillChange(); |
86 if (document() && document()->styleSheets()->length() > 0) | 86 if (document() && document()->styleSheets().length() > 0) |
87 UseCounter::count(root()->document(), UseCounter::HTMLImportsHasStyleShe
ets); | 87 UseCounter::count(root()->document(), UseCounter::HTMLImportsHasStyleShe
ets); |
88 V0CustomElement::didFinishLoadingImport(*(root()->document())); | 88 V0CustomElement::didFinishLoadingImport(*(root()->document())); |
89 } | 89 } |
90 | 90 |
91 void HTMLImportChild::didFinishUpgradingCustomElements() | 91 void HTMLImportChild::didFinishUpgradingCustomElements() |
92 { | 92 { |
93 stateWillChange(); | 93 stateWillChange(); |
94 m_customElementMicrotaskStep.clear(); | 94 m_customElementMicrotaskStep.clear(); |
95 } | 95 } |
96 | 96 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 | 208 |
209 DEFINE_TRACE(HTMLImportChild) | 209 DEFINE_TRACE(HTMLImportChild) |
210 { | 210 { |
211 visitor->trace(m_customElementMicrotaskStep); | 211 visitor->trace(m_customElementMicrotaskStep); |
212 visitor->trace(m_loader); | 212 visitor->trace(m_loader); |
213 visitor->trace(m_client); | 213 visitor->trace(m_client); |
214 HTMLImport::trace(visitor); | 214 HTMLImport::trace(visitor); |
215 } | 215 } |
216 | 216 |
217 } // namespace blink | 217 } // namespace blink |
OLD | NEW |