| 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 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 void StyleSheetCollection::swap(StyleSheetCollection& other) | 37 void StyleSheetCollection::swap(StyleSheetCollection& other) |
| 38 { | 38 { |
| 39 m_styleSheetsForStyleSheetList.swap(other.m_styleSheetsForStyleSheetList); | 39 m_styleSheetsForStyleSheetList.swap(other.m_styleSheetsForStyleSheetList); |
| 40 m_activeAuthorStyleSheets.swap(other.m_activeAuthorStyleSheets); | 40 m_activeAuthorStyleSheets.swap(other.m_activeAuthorStyleSheets); |
| 41 } | 41 } |
| 42 | 42 |
| 43 void StyleSheetCollection::swapSheetsForSheetList(HeapVector<Member<StyleSheet>>
& sheets) | 43 void StyleSheetCollection::swapSheetsForSheetList(HeapVector<Member<StyleSheet>>
& sheets) |
| 44 { | 44 { |
| 45 // Only called for collection of HTML Imports that never has active sheets. | 45 // Only called for collection of HTML Imports that never has active sheets. |
| 46 ASSERT(m_activeAuthorStyleSheets.isEmpty()); | 46 DCHECK(m_activeAuthorStyleSheets.isEmpty()); |
| 47 m_styleSheetsForStyleSheetList.swap(sheets); | 47 m_styleSheetsForStyleSheetList.swap(sheets); |
| 48 } | 48 } |
| 49 | 49 |
| 50 void StyleSheetCollection::appendActiveStyleSheet(CSSStyleSheet* sheet) | 50 void StyleSheetCollection::appendActiveStyleSheet(CSSStyleSheet* sheet) |
| 51 { | 51 { |
| 52 m_activeAuthorStyleSheets.append(sheet); | 52 m_activeAuthorStyleSheets.append(sheet); |
| 53 } | 53 } |
| 54 | 54 |
| 55 void StyleSheetCollection::appendSheetForList(StyleSheet* sheet) | 55 void StyleSheetCollection::appendSheetForList(StyleSheet* sheet) |
| 56 { | 56 { |
| 57 m_styleSheetsForStyleSheetList.append(sheet); | 57 m_styleSheetsForStyleSheetList.append(sheet); |
| 58 } | 58 } |
| 59 | 59 |
| 60 DEFINE_TRACE(StyleSheetCollection) | 60 DEFINE_TRACE(StyleSheetCollection) |
| 61 { | 61 { |
| 62 visitor->trace(m_activeAuthorStyleSheets); | 62 visitor->trace(m_activeAuthorStyleSheets); |
| 63 visitor->trace(m_styleSheetsForStyleSheetList); | 63 visitor->trace(m_styleSheetsForStyleSheetList); |
| 64 } | 64 } |
| 65 | 65 |
| 66 } // namespace blink | 66 } // namespace blink |
| OLD | NEW |