| 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 17 matching lines...) Expand all Loading... |
| 28 #include "core/dom/StyleSheetCollection.h" | 28 #include "core/dom/StyleSheetCollection.h" |
| 29 | 29 |
| 30 #include "core/css/CSSStyleSheet.h" | 30 #include "core/css/CSSStyleSheet.h" |
| 31 | 31 |
| 32 namespace blink { | 32 namespace blink { |
| 33 | 33 |
| 34 StyleSheetCollection::StyleSheetCollection() | 34 StyleSheetCollection::StyleSheetCollection() |
| 35 { | 35 { |
| 36 } | 36 } |
| 37 | 37 |
| 38 StyleSheetCollection::~StyleSheetCollection() | 38 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(StyleSheetCollection); |
| 39 { | |
| 40 } | |
| 41 | 39 |
| 42 void StyleSheetCollection::swap(StyleSheetCollection& other) | 40 void StyleSheetCollection::swap(StyleSheetCollection& other) |
| 43 { | 41 { |
| 44 m_styleSheetsForStyleSheetList.swap(other.m_styleSheetsForStyleSheetList); | 42 m_styleSheetsForStyleSheetList.swap(other.m_styleSheetsForStyleSheetList); |
| 45 m_activeAuthorStyleSheets.swap(other.m_activeAuthorStyleSheets); | 43 m_activeAuthorStyleSheets.swap(other.m_activeAuthorStyleSheets); |
| 46 } | 44 } |
| 47 | 45 |
| 48 void StyleSheetCollection::swapSheetsForSheetList(WillBeHeapVector<RefPtrWillBeM
ember<StyleSheet> >& sheets) | 46 void StyleSheetCollection::swapSheetsForSheetList(WillBeHeapVector<RefPtrWillBeM
ember<StyleSheet> >& sheets) |
| 49 { | 47 { |
| 50 // Only called for collection of HTML Imports that never has active sheets. | 48 // Only called for collection of HTML Imports that never has active sheets. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 67 m_styleSheetsForStyleSheetList.append(sheet); | 65 m_styleSheetsForStyleSheetList.append(sheet); |
| 68 } | 66 } |
| 69 | 67 |
| 70 void StyleSheetCollection::trace(Visitor* visitor) | 68 void StyleSheetCollection::trace(Visitor* visitor) |
| 71 { | 69 { |
| 72 visitor->trace(m_activeAuthorStyleSheets); | 70 visitor->trace(m_activeAuthorStyleSheets); |
| 73 visitor->trace(m_styleSheetsForStyleSheetList); | 71 visitor->trace(m_styleSheetsForStyleSheetList); |
| 74 } | 72 } |
| 75 | 73 |
| 76 } | 74 } |
| OLD | NEW |