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

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

Issue 298413004: Remove the importedDocument functions from HTML imports classes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/imports/HTMLImportChild.h ('k') | Source/core/html/imports/HTMLImportLoader.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 bool HTMLImportChild::isLoaded() const 93 bool HTMLImportChild::isLoaded() const
94 { 94 {
95 return m_loader && m_loader->isDone(); 95 return m_loader && m_loader->isDone();
96 } 96 }
97 97
98 bool HTMLImportChild::isFirst() const 98 bool HTMLImportChild::isFirst() const
99 { 99 {
100 return m_loader && m_loader->isFirstImport(this); 100 return m_loader && m_loader->isFirstImport(this);
101 } 101 }
102 102
103 Document* HTMLImportChild::importedDocument() const
104 {
105 if (!m_loader)
106 return 0;
107 return m_loader->importedDocument();
108 }
109
110 void HTMLImportChild::importDestroyed() 103 void HTMLImportChild::importDestroyed()
111 { 104 {
112 if (parent()) 105 if (parent())
113 parent()->removeChild(this); 106 parent()->removeChild(this);
114 if (m_loader) { 107 if (m_loader) {
115 m_loader->removeImport(this); 108 m_loader->removeImport(this);
116 m_loader = 0; 109 m_loader = 0;
117 } 110 }
118 } 111 }
119 112
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 fprintf(stderr, " loader=%p first=%d, step=%p sync=%s url=%s", 205 fprintf(stderr, " loader=%p first=%d, step=%p sync=%s url=%s",
213 m_loader, 206 m_loader,
214 isFirst, 207 isFirst,
215 m_customElementMicrotaskStep.get(), 208 m_customElementMicrotaskStep.get(),
216 isSync() ? "Y" : "N", 209 isSync() ? "Y" : "N",
217 url().string().utf8().data()); 210 url().string().utf8().data());
218 } 211 }
219 #endif 212 #endif
220 213
221 } // namespace WebCore 214 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/imports/HTMLImportChild.h ('k') | Source/core/html/imports/HTMLImportLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698