Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: third_party/WebKit/Source/core/dom/StyleSheetCollection.cpp

Issue 1854423002: ASSERT -> {DCHECK|DCHECK_XX}, ENABLE(ASSERT) -> DCHECK_IS_ON() in dom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mark svg/as-image/svg-nested.html crash on win Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleSheetCandidate.cpp ('k') | third_party/WebKit/Source/core/dom/TagCollection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698