| 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 | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All |
| 7 * rights reserved. | 7 * rights reserved. |
| 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
| 9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
| 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 m_collection->appendActiveStyleSheets(sheets); | 50 m_collection->appendActiveStyleSheets(sheets); |
| 51 } | 51 } |
| 52 | 52 |
| 53 void DocumentStyleSheetCollector::appendActiveStyleSheet(CSSStyleSheet* sheet) { | 53 void DocumentStyleSheetCollector::appendActiveStyleSheet(CSSStyleSheet* sheet) { |
| 54 DCHECK(m_collection); | 54 DCHECK(m_collection); |
| 55 m_collection->appendActiveStyleSheet(sheet); | 55 m_collection->appendActiveStyleSheet(sheet); |
| 56 } | 56 } |
| 57 | 57 |
| 58 void DocumentStyleSheetCollector::appendSheetForList(StyleSheet* sheet) { | 58 void DocumentStyleSheetCollector::appendSheetForList(StyleSheet* sheet) { |
| 59 if (m_styleSheetsForStyleSheetList) { | 59 if (m_styleSheetsForStyleSheetList) { |
| 60 m_styleSheetsForStyleSheetList->append(sheet); | 60 m_styleSheetsForStyleSheetList->push_back(sheet); |
| 61 } else { | 61 } else { |
| 62 m_collection->appendSheetForList(sheet); | 62 m_collection->appendSheetForList(sheet); |
| 63 } | 63 } |
| 64 } | 64 } |
| 65 | 65 |
| 66 ActiveDocumentStyleSheetCollector::ActiveDocumentStyleSheetCollector( | 66 ActiveDocumentStyleSheetCollector::ActiveDocumentStyleSheetCollector( |
| 67 StyleSheetCollection& collection) | 67 StyleSheetCollection& collection) |
| 68 : DocumentStyleSheetCollector(&collection, nullptr, &m_visitedDocuments) {} | 68 : DocumentStyleSheetCollector(&collection, nullptr, &m_visitedDocuments) {} |
| 69 | 69 |
| 70 ImportedDocumentStyleSheetCollector::ImportedDocumentStyleSheetCollector( | 70 ImportedDocumentStyleSheetCollector::ImportedDocumentStyleSheetCollector( |
| 71 DocumentStyleSheetCollector& collector, | 71 DocumentStyleSheetCollector& collector, |
| 72 HeapVector<Member<StyleSheet>>& sheetForList) | 72 HeapVector<Member<StyleSheet>>& sheetForList) |
| 73 : DocumentStyleSheetCollector(collector.m_collection, | 73 : DocumentStyleSheetCollector(collector.m_collection, |
| 74 &sheetForList, | 74 &sheetForList, |
| 75 collector.m_visitedDocuments) {} | 75 collector.m_visitedDocuments) {} |
| 76 | 76 |
| 77 } // namespace blink | 77 } // namespace blink |
| OLD | NEW |