| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 * * Neither the name of Google Inc. nor the names of its | 10 * * Neither the name of Google Inc. nor the names of its |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #ifndef DocumentStyleSheetCollector_h | 27 #ifndef DocumentStyleSheetCollector_h |
| 28 #define DocumentStyleSheetCollector_h | 28 #define DocumentStyleSheetCollector_h |
| 29 | 29 |
| 30 #include "bindings/core/v8/TraceWrapperMember.h" | 30 #include "bindings/core/v8/TraceWrapperMember.h" |
| 31 #include "core/css/ActiveStyleSheets.h" | 31 #include "core/css/ActiveStyleSheets.h" |
| 32 #include "platform/heap/Handle.h" | 32 #include "platform/heap/Handle.h" |
| 33 #include "wtf/HashSet.h" | 33 #include "platform/wtf/HashSet.h" |
| 34 #include "wtf/Vector.h" | 34 #include "platform/wtf/Vector.h" |
| 35 | 35 |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 class Document; | 38 class Document; |
| 39 class StyleSheet; | 39 class StyleSheet; |
| 40 class StyleSheetCollection; | 40 class StyleSheetCollection; |
| 41 | 41 |
| 42 class DocumentStyleSheetCollector { | 42 class DocumentStyleSheetCollector { |
| 43 // This class contains references to two on-heap collections, therefore | 43 // This class contains references to two on-heap collections, therefore |
| 44 // it's unhealthy to have it anywhere but on the stack, where stack | 44 // it's unhealthy to have it anywhere but on the stack, where stack |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 class ImportedDocumentStyleSheetCollector final | 79 class ImportedDocumentStyleSheetCollector final |
| 80 : public DocumentStyleSheetCollector { | 80 : public DocumentStyleSheetCollector { |
| 81 public: | 81 public: |
| 82 ImportedDocumentStyleSheetCollector(DocumentStyleSheetCollector&, | 82 ImportedDocumentStyleSheetCollector(DocumentStyleSheetCollector&, |
| 83 HeapVector<Member<StyleSheet>>&); | 83 HeapVector<Member<StyleSheet>>&); |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 } // namespace blink | 86 } // namespace blink |
| 87 | 87 |
| 88 #endif // DocumentStyleSheetCollector_h | 88 #endif // DocumentStyleSheetCollector_h |
| OLD | NEW |