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

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

Issue 331763002: HTML Imports: styles in removed imports should be applied when it comes back (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/LinkResource.h ('k') | Source/core/html/imports/HTMLImportChild.cpp » ('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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // HTMLImportChild of same link URL. 51 // HTMLImportChild of same link URL.
52 // 52 //
53 class HTMLImportChild FINAL : public HTMLImport { 53 class HTMLImportChild FINAL : public HTMLImport {
54 public: 54 public:
55 HTMLImportChild(const KURL&, HTMLImportLoader*, SyncMode); 55 HTMLImportChild(const KURL&, HTMLImportLoader*, SyncMode);
56 virtual ~HTMLImportChild(); 56 virtual ~HTMLImportChild();
57 57
58 HTMLLinkElement* link() const; 58 HTMLLinkElement* link() const;
59 const KURL& url() const { return m_url; } 59 const KURL& url() const { return m_url; }
60 60
61 void ownerInserted();
61 void didShareLoader(); 62 void didShareLoader();
62 void didStartLoading(); 63 void didStartLoading();
63 #if !ENABLE(OILPAN) 64 #if !ENABLE(OILPAN)
64 void importDestroyed(); 65 void importDestroyed();
65 WeakPtr<HTMLImportChild> weakPtr() { return m_weakFactory.createWeakPtr(); } 66 WeakPtr<HTMLImportChild> weakPtr() { return m_weakFactory.createWeakPtr(); }
66 #endif 67 #endif
67 68
68 // HTMLImport 69 // HTMLImport
69 virtual Document* document() const OVERRIDE; 70 virtual Document* document() const OVERRIDE;
70 virtual bool isDone() const OVERRIDE; 71 virtual bool isDone() const OVERRIDE;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 103
103 inline HTMLImportChild* toHTMLImportChild(HTMLImport* import) 104 inline HTMLImportChild* toHTMLImportChild(HTMLImport* import)
104 { 105 {
105 ASSERT(!import || !import->isRoot()); 106 ASSERT(!import || !import->isRoot());
106 return static_cast<HTMLImportChild*>(import); 107 return static_cast<HTMLImportChild*>(import);
107 } 108 }
108 109
109 } // namespace WebCore 110 } // namespace WebCore
110 111
111 #endif // HTMLImportChild_h 112 #endif // HTMLImportChild_h
OLDNEW
« no previous file with comments | « Source/core/html/LinkResource.h ('k') | Source/core/html/imports/HTMLImportChild.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698