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

Unified Diff: Source/core/html/HTMLImportsController.h

Issue 16936002: [HTML Imports] Make HTMLLinkElement.import a Document. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/html/HTMLImportsController.h
diff --git a/Source/core/html/HTMLImportsController.h b/Source/core/html/HTMLImportsController.h
index b9e2e2a8fc0fc0d8175801d1678041ae7df6b8a4..5bf13bec247fb4d807210204ce766db589f4e431 100644
--- a/Source/core/html/HTMLImportsController.h
+++ b/Source/core/html/HTMLImportsController.h
@@ -66,7 +66,7 @@ public:
virtual Type type() const OVERRIDE { return Import; }
virtual void ownerRemoved() OVERRIDE;
- DocumentFragment* importedFragment() const;
+ Document* importedDocument() const;
const KURL& url() const { return m_url; }
void importDestroyed();
bool isDone() const { return m_state == StateReady || m_state == StateError; }
@@ -84,7 +84,7 @@ private:
KURL m_url;
State m_state;
CachedResourceHandle<CachedScript> m_resource;
- RefPtr<DocumentFragment> m_importedFragment;
+ RefPtr<Document> m_importedDocument;
};
@@ -98,7 +98,6 @@ public:
void addImport(PassRefPtr<LinkImport>);
void showSecurityErrorMessage(const String&);
- PassRefPtr<DocumentFragment> createDocumentFragment() const;
PassRefPtr<LinkImport> findLinkFor(const KURL&) const;
SecurityOrigin* securityOrigin() const;
bool haveLoaded() const;
@@ -107,7 +106,6 @@ public:
private:
Document* m_master;
- RefPtr<Document> m_importedFragmentOwner;
// List of import which has been loaded or being loaded.
typedef Vector<RefPtr<LinkImport> > ImportList;

Powered by Google App Engine
This is Rietveld 408576698