| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 { | 67 { |
| 68 if (m_child) | 68 if (m_child) |
| 69 return; | 69 return; |
| 70 if (!m_owner) | 70 if (!m_owner) |
| 71 return; | 71 return; |
| 72 if (!shouldLoadResource()) | 72 if (!shouldLoadResource()) |
| 73 return; | 73 return; |
| 74 | 74 |
| 75 if (!m_owner->document().import()) { | 75 if (!m_owner->document().import()) { |
| 76 ASSERT(m_owner->document().frame()); // The document should be the maste
r. | 76 ASSERT(m_owner->document().frame()); // The document should be the maste
r. |
| 77 HTMLImportsController::provideTo(&m_owner->document()); | 77 HTMLImportsController::provideTo(m_owner->document()); |
| 78 } | 78 } |
| 79 | 79 |
| 80 LinkRequestBuilder builder(m_owner); | 80 LinkRequestBuilder builder(m_owner); |
| 81 if (!builder.isValid()) { | 81 if (!builder.isValid()) { |
| 82 didFinish(); | 82 didFinish(); |
| 83 return; | 83 return; |
| 84 } | 84 } |
| 85 | 85 |
| 86 HTMLImport* parent = m_owner->document().import(); | 86 HTMLImport* parent = m_owner->document().import(); |
| 87 HTMLImportsController* controller = parent->controller(); | 87 HTMLImportsController* controller = parent->controller(); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 { | 136 { |
| 137 return m_child && m_child->isDone() && !m_child->loaderHasError(); | 137 return m_child && m_child->isDone() && !m_child->loaderHasError(); |
| 138 } | 138 } |
| 139 | 139 |
| 140 bool LinkImport::ownsLoader() const | 140 bool LinkImport::ownsLoader() const |
| 141 { | 141 { |
| 142 return m_child && m_child->hasLoader() && m_child->ownsLoader(); | 142 return m_child && m_child->hasLoader() && m_child->ownsLoader(); |
| 143 } | 143 } |
| 144 | 144 |
| 145 } // namespace WebCore | 145 } // namespace WebCore |
| OLD | NEW |