Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Side by Side Diff: Source/core/html/imports/LinkImport.cpp

Issue 656723005: Use C++11 features in core/html (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: mike's comments Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/html/imports/HTMLImportsController.cpp ('k') | Source/core/html/parser/AtomicHTMLToken.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698