| 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 26 matching lines...) Expand all Loading... |
| 37 #include "core/frame/LocalFrame.h" | 37 #include "core/frame/LocalFrame.h" |
| 38 #include "core/html/imports/HTMLImportChild.h" | 38 #include "core/html/imports/HTMLImportChild.h" |
| 39 #include "core/html/imports/HTMLImportChildClient.h" | 39 #include "core/html/imports/HTMLImportChildClient.h" |
| 40 #include "core/html/imports/HTMLImportLoader.h" | 40 #include "core/html/imports/HTMLImportLoader.h" |
| 41 | 41 |
| 42 namespace WebCore { | 42 namespace WebCore { |
| 43 | 43 |
| 44 void HTMLImportsController::provideTo(Document& master) | 44 void HTMLImportsController::provideTo(Document& master) |
| 45 { | 45 { |
| 46 DEFINE_STATIC_LOCAL(const char*, name, ("HTMLImportsController")); | 46 DEFINE_STATIC_LOCAL(const char*, name, ("HTMLImportsController")); |
| 47 OwnPtr<HTMLImportsController> controller = adoptPtr(new HTMLImportsControlle
r(master)); | 47 OwnPtrWillBeRawPtr<HTMLImportsController> controller = adoptPtrWillBeNoop(ne
w HTMLImportsController(master)); |
| 48 master.setImportsController(controller.get()); | 48 master.setImportsController(controller.get()); |
| 49 DocumentSupplement::provideTo(master, name, controller.release()); | 49 DocumentSupplement::provideTo(master, name, controller.release()); |
| 50 } | 50 } |
| 51 | 51 |
| 52 HTMLImportsController::HTMLImportsController(Document& master) | 52 HTMLImportsController::HTMLImportsController(Document& master) |
| 53 : HTMLImport(HTMLImport::Sync) | 53 : HTMLImport(HTMLImport::Sync) |
| 54 , m_master(&master) | 54 , m_master(&master) |
| 55 , m_recalcTimer(this, &HTMLImportsController::recalcTimerFired) | 55 , m_recalcTimer(this, &HTMLImportsController::recalcTimerFired) |
| 56 { | 56 { |
| 57 recalcTreeState(this); // This recomputes initial state. | 57 recalcTreeState(this); // This recomputes initial state. |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 { | 223 { |
| 224 for (size_t i = 0; i < m_loaders.size(); ++i) { | 224 for (size_t i = 0; i < m_loaders.size(); ++i) { |
| 225 if (m_loaders[i]->document() == &document) | 225 if (m_loaders[i]->document() == &document) |
| 226 return m_loaders[i].get(); | 226 return m_loaders[i].get(); |
| 227 } | 227 } |
| 228 | 228 |
| 229 return 0; | 229 return 0; |
| 230 } | 230 } |
| 231 | 231 |
| 232 } // namespace WebCore | 232 } // namespace WebCore |
| OLD | NEW |