| Index: third_party/WebKit/Source/core/html/imports/HTMLImport.h
|
| diff --git a/third_party/WebKit/Source/core/html/imports/HTMLImport.h b/third_party/WebKit/Source/core/html/imports/HTMLImport.h
|
| index 2abae207ad338a16ce75e0ade3fc86a76ba5f137..d5eda6924e08721115d5a9f37cb6f1ab1890090f 100644
|
| --- a/third_party/WebKit/Source/core/html/imports/HTMLImport.h
|
| +++ b/third_party/WebKit/Source/core/html/imports/HTMLImport.h
|
| @@ -50,28 +50,31 @@ class HTMLImportLoader;
|
| //
|
| // * The root of the tree is HTMLImportTreeRoot.
|
| //
|
| -// * The HTMLImportTreeRoot is owned HTMLImportsController, which is owned by the master
|
| -// document as a DocumentSupplement.
|
| +// * The HTMLImportTreeRoot is owned HTMLImportsController, which is owned by
|
| +// the master document as a DocumentSupplement.
|
| //
|
| -// * The non-root nodes are HTMLImportChild. They are all owned by HTMLImporTreeRoot.
|
| -// LinkStyle is wired into HTMLImportChild by implementing HTMLImportChildClient interface
|
| +// * The non-root nodes are HTMLImportChild. They are all owned by
|
| +// HTMLImporTreeRoot. LinkStyle is wired into HTMLImportChild by implementing
|
| +// HTMLImportChildClient interface
|
| //
|
| -// * Both HTMLImportTreeRoot and HTMLImportChild are derived from HTMLImport superclass
|
| -// that models the tree data structure using WTF::TreeNode and provides a set of
|
| -// virtual functions.
|
| +// * Both HTMLImportTreeRoot and HTMLImportChild are derived from HTMLImport
|
| +// superclass that models the tree data structure using WTF::TreeNode and
|
| +// provides a set of virtual functions.
|
| //
|
| -// HTMLImportsController also owns all loaders in the tree and manages their lifetime through it.
|
| -// One assumption is that the tree is append-only and nodes are never inserted in the middle of the tree nor removed.
|
| +// HTMLImportsController also owns all loaders in the tree and manages their
|
| +// lifetime through it. One assumption is that the tree is append-only and
|
| +// nodes are never inserted in the middle of the tree nor removed.
|
| //
|
| // Full diagram is here:
|
| // https://docs.google.com/drawings/d/1jFQrO0IupWrlykTNzQ3Nv2SdiBiSz4UE9-V3-vDgBb0/
|
| //
|
| // # Import Sharing and HTMLImportLoader
|
| //
|
| -// The HTML Imports spec calls for de-dup mechanism to share already loaded imports.
|
| -// To implement this, the actual loading machinery is split out from HTMLImportChild to
|
| -// HTMLImportLoader, and each loader shares HTMLImportLoader with other loader if the URL is same.
|
| -// Check around HTMLImportsController::findLink() for more detail.
|
| +// The HTML Imports spec calls for de-dup mechanism to share already loaded
|
| +// imports. To implement this, the actual loading machinery is split out from
|
| +// HTMLImportChild to HTMLImportLoader, and each loader shares HTMLImportLoader
|
| +// with other loader if the URL is same. Check around
|
| +// HTMLImportsController::findLink() for more detail.
|
| //
|
| // HTMLImportLoader can be shared by multiple imports.
|
| //
|
| @@ -80,13 +83,14 @@ class HTMLImportLoader;
|
| //
|
| // # Script Blocking
|
| //
|
| -// - An import blocks the HTML parser of its own imported document from running <script>
|
| -// until all of its children are loaded.
|
| -// Note that dynamically added import won't block the parser.
|
| +// - An import blocks the HTML parser of its own imported document from running
|
| +// <script> until all of its children are loaded. Note that dynamically added
|
| +// import won't block the parser.
|
| //
|
| -// - An import under loading also blocks imported documents that follow from being created.
|
| -// This is because an import can include another import that has same URLs of following ones.
|
| -// In such case, the preceding import should be loaded and following ones should be de-duped.
|
| +// - An import under loading also blocks imported documents that follow from
|
| +// being created. This is because an import can include another import that
|
| +// has same URLs of following ones. In such case, the preceding import should
|
| +// be loaded and following ones should be de-duped.
|
| //
|
|
|
| // The superclass of HTMLImportTreeRoot and HTMLImportChild
|
|
|