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

Side by Side Diff: third_party/WebKit/Source/core/html/imports/HTMLImportTreeRoot.h

Issue 2242743002: Make custom elements work in HTML imports (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resolve most comments Created 4 years, 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef HTMLImportTreeRoot_h 5 #ifndef HTMLImportTreeRoot_h
6 #define HTMLImportTreeRoot_h 6 #define HTMLImportTreeRoot_h
7 7
8 #include "core/html/imports/HTMLImport.h" 8 #include "core/html/imports/HTMLImport.h"
9 #include "platform/Timer.h" 9 #include "platform/Timer.h"
10 10
(...skipping 12 matching lines...) Expand all
23 // HTMLImport 23 // HTMLImport
24 Document* document() const override; 24 Document* document() const override;
25 bool hasFinishedLoading() const override; 25 bool hasFinishedLoading() const override;
26 void stateWillChange() override; 26 void stateWillChange() override;
27 void stateDidChange() override; 27 void stateDidChange() override;
28 28
29 void scheduleRecalcState(); 29 void scheduleRecalcState();
30 30
31 HTMLImportChild* add(HTMLImportChild*); 31 HTMLImportChild* add(HTMLImportChild*);
32 HTMLImportChild* find(const KURL&) const; 32 HTMLImportChild* find(const KURL&) const;
33 HTMLImportChild* find(const Document&) const;
33 34
34 DECLARE_VIRTUAL_TRACE(); 35 DECLARE_VIRTUAL_TRACE();
35 36
36 private: 37 private:
37 explicit HTMLImportTreeRoot(Document*); 38 explicit HTMLImportTreeRoot(Document*);
38 39
39 void recalcTimerFired(TimerBase*); 40 void recalcTimerFired(TimerBase*);
40 41
41 Member<Document> m_document; 42 Member<Document> m_document;
42 Timer<HTMLImportTreeRoot> m_recalcTimer; 43 Timer<HTMLImportTreeRoot> m_recalcTimer;
43 44
44 // List of import which has been loaded or being loaded. 45 // List of import which has been loaded or being loaded.
45 typedef HeapVector<Member<HTMLImportChild>> ImportList; 46 typedef HeapVector<Member<HTMLImportChild>> ImportList;
46 ImportList m_imports; 47 ImportList m_imports;
47 }; 48 };
48 49
49 DEFINE_TYPE_CASTS(HTMLImportTreeRoot, HTMLImport, import, import->isRoot(), impo rt.isRoot()); 50 DEFINE_TYPE_CASTS(HTMLImportTreeRoot, HTMLImport, import, import->isRoot(), impo rt.isRoot());
50 51
51 } // namespace blink 52 } // namespace blink
52 53
53 #endif 54 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698