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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
73 // <|- HTMLImportChild <- LinkStyle <- HTMLLink Element | 73 // <|- HTMLImportChild <- LinkStyle <- HTMLLink Element |
74 // | 74 // |
75 // | 75 // |
76 // # Import Sharing and HTMLImportLoader | 76 // # Import Sharing and HTMLImportLoader |
77 // | 77 // |
78 // The HTML Imports spec calls for de-dup mechanism to share already loaded impo rts. | 78 // The HTML Imports spec calls for de-dup mechanism to share already loaded impo rts. |
79 // To implement this, the actual loading machinery is split out from HTMLImportC hild to | 79 // To implement this, the actual loading machinery is split out from HTMLImportC hild to |
80 // HTMLImportLoader, and each loader shares HTMLImportLoader with other loader i f the URL is same. | 80 // HTMLImportLoader, and each loader shares HTMLImportLoader with other loader i f the URL is same. |
81 // Check around HTMLImportsController::findLink() for more detail. | 81 // Check around HTMLImportsController::findLink() for more detail. |
82 // | 82 // |
83 // Note that HTMLImportLoader provides HTMLImportLoaderClient to hook it up. | 83 // HTMLImportLoader can be shared multiple imports. |
dominicc (has gone to gerrit)
2014/03/26 01:15:46
shared multiple -> shared by multiple
| |
84 // As it can be shared, HTMLImportLoader supports multiple clients. | |
85 // | 84 // |
86 // HTMLImportChild (1)-->(*) HTMLImportLoader | 85 // HTMLImportChild (1)-->(*) HTMLImportLoader |
87 // | 86 // |
88 // | 87 // |
89 // # Script Blocking | 88 // # Script Blocking |
90 // | 89 // |
91 // - An import blocks the HTML parser of its own imported document from running <script> | 90 // - An import blocks the HTML parser of its own imported document from running <script> |
92 // until all of its children are loaded. | 91 // until all of its children are loaded. |
93 // Note that dynamically added import won't block the parser. | 92 // Note that dynamically added import won't block the parser. |
94 // | 93 // |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
153 HTMLImportRoot() { } | 152 HTMLImportRoot() { } |
154 | 153 |
155 virtual void scheduleRecalcState() = 0; | 154 virtual void scheduleRecalcState() = 0; |
156 virtual HTMLImportsController* toController() = 0; | 155 virtual HTMLImportsController* toController() = 0; |
157 virtual HTMLImportChild* findLinkFor(const KURL&, HTMLImport* excluding = 0) const = 0; | 156 virtual HTMLImportChild* findLinkFor(const KURL&, HTMLImport* excluding = 0) const = 0; |
158 }; | 157 }; |
159 | 158 |
160 } // namespace WebCore | 159 } // namespace WebCore |
161 | 160 |
162 #endif // HTMLImport_h | 161 #endif // HTMLImport_h |
OLD | NEW |