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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
102 Sync = 0, | 102 Sync = 0, |
103 Async = 1 | 103 Async = 1 |
104 }; | 104 }; |
105 | 105 |
106 virtual ~HTMLImport() { } | 106 virtual ~HTMLImport() { } |
107 | 107 |
108 HTMLImport* root(); | 108 HTMLImport* root(); |
109 bool precedes(HTMLImport*); | 109 bool precedes(HTMLImport*); |
110 bool isRoot() const { return !isChild(); } | 110 bool isRoot() const { return !isChild(); } |
111 bool isSync() const { return SyncMode(m_sync) == Sync; } | 111 bool isSync() const { return SyncMode(m_sync) == Sync; } |
112 bool formsCycle() const; | |
dominicc (has gone to gerrit)
2014/04/30 23:57:20
Why is this new concept needed now?
| |
112 const HTMLImportState& state() const { return m_state; } | 113 const HTMLImportState& state() const { return m_state; } |
113 | 114 |
114 void appendImport(HTMLImport*); | 115 void appendImport(HTMLImport*); |
115 | 116 |
116 virtual bool isChild() const { return false; } | 117 virtual bool isChild() const { return false; } |
117 virtual Document* document() const = 0; | 118 virtual Document* document() const = 0; |
118 virtual bool isDone() const = 0; // FIXME: Should be renamed to haveFinished Loading() | 119 virtual bool isDone() const = 0; // FIXME: Should be renamed to haveFinished Loading() |
119 virtual HTMLImportLoader* loader() const { return 0; } | 120 virtual HTMLImportLoader* loader() const { return 0; } |
120 virtual void stateWillChange() { } | 121 virtual void stateWillChange() { } |
121 virtual void stateDidChange(); | 122 virtual void stateDidChange(); |
(...skipping 14 matching lines...) Expand all Loading... | |
136 #endif | 137 #endif |
137 | 138 |
138 private: | 139 private: |
139 HTMLImportState m_state; | 140 HTMLImportState m_state; |
140 unsigned m_sync : 1; | 141 unsigned m_sync : 1; |
141 }; | 142 }; |
142 | 143 |
143 } // namespace WebCore | 144 } // namespace WebCore |
144 | 145 |
145 #endif // HTMLImport_h | 146 #endif // HTMLImport_h |
OLD | NEW |