| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 CreateCustomElementMicrotaskStepIfNeeded(); | 71 CreateCustomElementMicrotaskStepIfNeeded(); |
| 72 } | 72 } |
| 73 | 73 |
| 74 void HTMLImportChild::DidFinish() { | 74 void HTMLImportChild::DidFinish() { |
| 75 if (client_) | 75 if (client_) |
| 76 client_->DidFinish(); | 76 client_->DidFinish(); |
| 77 } | 77 } |
| 78 | 78 |
| 79 void HTMLImportChild::DidFinishLoading() { | 79 void HTMLImportChild::DidFinishLoading() { |
| 80 StateWillChange(); | 80 StateWillChange(); |
| 81 if (GetDocument() && GetDocument()->StyleSheets().length() > 0) | 81 if (GetDocument() && GetDocument()->GetStyleEngine().HasStyleSheets()) |
| 82 UseCounter::Count(Root()->GetDocument(), | 82 UseCounter::Count(Root()->GetDocument(), |
| 83 UseCounter::kHTMLImportsHasStyleSheets); | 83 UseCounter::kHTMLImportsHasStyleSheets); |
| 84 V0CustomElement::DidFinishLoadingImport(*(Root()->GetDocument())); | 84 V0CustomElement::DidFinishLoadingImport(*(Root()->GetDocument())); |
| 85 } | 85 } |
| 86 | 86 |
| 87 void HTMLImportChild::DidFinishUpgradingCustomElements() { | 87 void HTMLImportChild::DidFinishUpgradingCustomElements() { |
| 88 StateWillChange(); | 88 StateWillChange(); |
| 89 custom_element_microtask_step_.Clear(); | 89 custom_element_microtask_step_.Clear(); |
| 90 } | 90 } |
| 91 | 91 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 #endif | 191 #endif |
| 192 | 192 |
| 193 DEFINE_TRACE(HTMLImportChild) { | 193 DEFINE_TRACE(HTMLImportChild) { |
| 194 visitor->Trace(custom_element_microtask_step_); | 194 visitor->Trace(custom_element_microtask_step_); |
| 195 visitor->Trace(loader_); | 195 visitor->Trace(loader_); |
| 196 visitor->Trace(client_); | 196 visitor->Trace(client_); |
| 197 HTMLImport::Trace(visitor); | 197 HTMLImport::Trace(visitor); |
| 198 } | 198 } |
| 199 | 199 |
| 200 } // namespace blink | 200 } // namespace blink |
| OLD | NEW |