| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. |
| 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 9 * Copyright (C) 2013 Google Inc. All rights reserved. | 9 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 10 * | 10 * |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 if (candidate.canBeActivated(engine.preferredStylesheetSetName())) | 71 if (candidate.canBeActivated(engine.preferredStylesheetSetName())) |
| 72 collector.appendActiveStyleSheet(toCSSStyleSheet(sheet)); | 72 collector.appendActiveStyleSheet(toCSSStyleSheet(sheet)); |
| 73 } | 73 } |
| 74 } | 74 } |
| 75 | 75 |
| 76 void DocumentStyleSheetCollection::collectStyleSheets(StyleEngine& engine, Docum
entStyleSheetCollector& collector) | 76 void DocumentStyleSheetCollection::collectStyleSheets(StyleEngine& engine, Docum
entStyleSheetCollector& collector) |
| 77 { | 77 { |
| 78 DCHECK_EQ(&document().styleEngine(), &engine); | 78 DCHECK_EQ(&document().styleEngine(), &engine); |
| 79 collector.appendActiveStyleSheets(engine.injectedAuthorStyleSheets()); | 79 collector.appendActiveStyleSheets(engine.injectedAuthorStyleSheets()); |
| 80 collectStyleSheetsFromCandidates(engine, collector); | 80 collectStyleSheetsFromCandidates(engine, collector); |
| 81 if (engine.inspectorStyleSheet()) |
| 82 collector.appendActiveStyleSheet(engine.inspectorStyleSheet()); |
| 81 } | 83 } |
| 82 | 84 |
| 83 void DocumentStyleSheetCollection::updateActiveStyleSheets(StyleEngine& engine,
StyleResolverUpdateMode updateMode) | 85 void DocumentStyleSheetCollection::updateActiveStyleSheets(StyleEngine& engine,
StyleResolverUpdateMode updateMode) |
| 84 { | 86 { |
| 85 // StyleSheetCollection is GarbageCollected<>, allocate it on the heap. | 87 // StyleSheetCollection is GarbageCollected<>, allocate it on the heap. |
| 86 StyleSheetCollection* collection = StyleSheetCollection::create(); | 88 StyleSheetCollection* collection = StyleSheetCollection::create(); |
| 87 ActiveDocumentStyleSheetCollector collector(*collection); | 89 ActiveDocumentStyleSheetCollector collector(*collection); |
| 88 collectStyleSheets(engine, collector); | 90 collectStyleSheets(engine, collector); |
| 89 | 91 |
| 90 StyleSheetChange change; | 92 StyleSheetChange change; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 116 collection->dispose(); | 118 collection->dispose(); |
| 117 } | 119 } |
| 118 | 120 |
| 119 DEFINE_TRACE_WRAPPERS(DocumentStyleSheetCollection) | 121 DEFINE_TRACE_WRAPPERS(DocumentStyleSheetCollection) |
| 120 { | 122 { |
| 121 for (auto sheet : m_styleSheetsForStyleSheetList) { | 123 for (auto sheet : m_styleSheetsForStyleSheetList) { |
| 122 visitor->traceWrappers(sheet); | 124 visitor->traceWrappers(sheet); |
| 123 } | 125 } |
| 124 } | 126 } |
| 125 } // namespace blink | 127 } // namespace blink |
| OLD | NEW |