| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 if (m_child) { | 58 if (m_child) { |
| 59 m_child->clearClient(); | 59 m_child->clearClient(); |
| 60 m_child = nullptr; | 60 m_child = nullptr; |
| 61 } | 61 } |
| 62 #endif | 62 #endif |
| 63 } | 63 } |
| 64 | 64 |
| 65 Document* LinkImport::importedDocument() const | 65 Document* LinkImport::importedDocument() const |
| 66 { | 66 { |
| 67 if (!m_child || !m_owner || !m_owner->inDocument()) | 67 if (!m_child || !m_owner || !m_owner->inDocument()) |
| 68 return 0; | 68 return nullptr; |
| 69 if (m_child->loader()->hasError()) | 69 if (m_child->loader()->hasError()) |
| 70 return 0; | 70 return nullptr; |
| 71 return m_child->document(); | 71 return m_child->document(); |
| 72 } | 72 } |
| 73 | 73 |
| 74 void LinkImport::process() | 74 void LinkImport::process() |
| 75 { | 75 { |
| 76 if (m_child) | 76 if (m_child) |
| 77 return; | 77 return; |
| 78 if (!m_owner) | 78 if (!m_owner) |
| 79 return; | 79 return; |
| 80 if (!shouldLoadResource()) | 80 if (!shouldLoadResource()) |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 } | 141 } |
| 142 | 142 |
| 143 void LinkImport::trace(Visitor* visitor) | 143 void LinkImport::trace(Visitor* visitor) |
| 144 { | 144 { |
| 145 visitor->trace(m_child); | 145 visitor->trace(m_child); |
| 146 HTMLImportChildClient::trace(visitor); | 146 HTMLImportChildClient::trace(visitor); |
| 147 LinkResource::trace(visitor); | 147 LinkResource::trace(visitor); |
| 148 } | 148 } |
| 149 | 149 |
| 150 } // namespace blink | 150 } // namespace blink |
| OLD | NEW |