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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 void StyleSheetCollection::appendActiveStyleSheet(CSSStyleSheet* sheet) | 52 void StyleSheetCollection::appendActiveStyleSheet(CSSStyleSheet* sheet) |
53 { | 53 { |
54 m_activeAuthorStyleSheets.append(sheet); | 54 m_activeAuthorStyleSheets.append(sheet); |
55 } | 55 } |
56 | 56 |
57 void StyleSheetCollection::appendSheetForList(StyleSheet* sheet) | 57 void StyleSheetCollection::appendSheetForList(StyleSheet* sheet) |
58 { | 58 { |
59 m_styleSheetsForStyleSheetList.append(sheet); | 59 m_styleSheetsForStyleSheetList.append(sheet); |
60 } | 60 } |
61 | 61 |
| 62 void StyleSheetCollection::purgeMemory() |
| 63 { |
| 64 WillBeHeapVector<RefPtrWillBeMember<StyleSheet>>::iterator it = m_styleSheet
sForStyleSheetList.begin(); |
| 65 while (it != m_styleSheetsForStyleSheetList.end()) { |
| 66 (*it)->purgeMemory(); |
| 67 ++it; |
| 68 } |
| 69 } |
| 70 |
62 DEFINE_TRACE(StyleSheetCollection) | 71 DEFINE_TRACE(StyleSheetCollection) |
63 { | 72 { |
64 visitor->trace(m_activeAuthorStyleSheets); | 73 visitor->trace(m_activeAuthorStyleSheets); |
65 visitor->trace(m_styleSheetsForStyleSheetList); | 74 visitor->trace(m_styleSheetsForStyleSheetList); |
66 } | 75 } |
67 | 76 |
68 } // namespace blink | 77 } // namespace blink |
OLD | NEW |