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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSImportRule.cpp

Issue 2755493004: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in core/css/ (Closed)
Patch Set: Worked on Review Comments done Created 3 years, 9 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 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) 3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org)
4 * Copyright (C) 2002, 2005, 2006, 2008, 2009, 2010, 2012 Apple Inc. All rights 4 * Copyright (C) 2002, 2005, 2006, 2008, 2009, 2010, 2012 Apple Inc. All rights
5 * reserved. 5 * reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 return nullptr; 71 return nullptr;
72 72
73 if (!m_styleSheetCSSOMWrapper) 73 if (!m_styleSheetCSSOMWrapper)
74 m_styleSheetCSSOMWrapper = CSSStyleSheet::create( 74 m_styleSheetCSSOMWrapper = CSSStyleSheet::create(
75 m_importRule->styleSheet(), const_cast<CSSImportRule*>(this)); 75 m_importRule->styleSheet(), const_cast<CSSImportRule*>(this));
76 return m_styleSheetCSSOMWrapper.get(); 76 return m_styleSheetCSSOMWrapper.get();
77 } 77 }
78 78
79 void CSSImportRule::reattach(StyleRuleBase*) { 79 void CSSImportRule::reattach(StyleRuleBase*) {
80 // FIXME: Implement when enabling caching for stylesheets with import rules. 80 // FIXME: Implement when enabling caching for stylesheets with import rules.
81 ASSERT_NOT_REACHED(); 81 NOTREACHED();
82 } 82 }
83 83
84 DEFINE_TRACE(CSSImportRule) { 84 DEFINE_TRACE(CSSImportRule) {
85 visitor->trace(m_importRule); 85 visitor->trace(m_importRule);
86 visitor->trace(m_mediaCSSOMWrapper); 86 visitor->trace(m_mediaCSSOMWrapper);
87 visitor->trace(m_styleSheetCSSOMWrapper); 87 visitor->trace(m_styleSheetCSSOMWrapper);
88 CSSRule::trace(visitor); 88 CSSRule::trace(visitor);
89 } 89 }
90 90
91 } // namespace blink 91 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698