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

Side by Side Diff: third_party/WebKit/Source/core/css/StyleRuleImport.h

Issue 2755493004: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in core/css/ (Closed)
Patch Set: All windows error are Resolved now. Created 3 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 * (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, 2006, 2008, 2012 Apple Inc. All rights reserved. 4 * Copyright (C) 2002, 2006, 2008, 2012 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 24 matching lines...) Expand all
35 class StyleRuleImport : public StyleRuleBase { 35 class StyleRuleImport : public StyleRuleBase {
36 USING_PRE_FINALIZER(StyleRuleImport, dispose); 36 USING_PRE_FINALIZER(StyleRuleImport, dispose);
37 37
38 public: 38 public:
39 static StyleRuleImport* create(const String& href, MediaQuerySet*); 39 static StyleRuleImport* create(const String& href, MediaQuerySet*);
40 40
41 ~StyleRuleImport(); 41 ~StyleRuleImport();
42 42
43 StyleSheetContents* parentStyleSheet() const { return m_parentStyleSheet; } 43 StyleSheetContents* parentStyleSheet() const { return m_parentStyleSheet; }
44 void setParentStyleSheet(StyleSheetContents* sheet) { 44 void setParentStyleSheet(StyleSheetContents* sheet) {
45 ASSERT(sheet); 45 DCHECK(sheet);
46 m_parentStyleSheet = sheet; 46 m_parentStyleSheet = sheet;
47 } 47 }
48 void clearParentStyleSheet() { m_parentStyleSheet = nullptr; } 48 void clearParentStyleSheet() { m_parentStyleSheet = nullptr; }
49 49
50 String href() const { return m_strHref; } 50 String href() const { return m_strHref; }
51 StyleSheetContents* styleSheet() const { return m_styleSheet.get(); } 51 StyleSheetContents* styleSheet() const { return m_styleSheet.get(); }
52 52
53 bool isLoading() const; 53 bool isLoading() const;
54 MediaQuerySet* mediaQueries() { return m_mediaQueries.get(); } 54 MediaQuerySet* mediaQueries() { return m_mediaQueries.get(); }
55 55
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 Member<StyleSheetContents> m_styleSheet; 108 Member<StyleSheetContents> m_styleSheet;
109 Member<CSSStyleSheetResource> m_resource; 109 Member<CSSStyleSheetResource> m_resource;
110 bool m_loading; 110 bool m_loading;
111 }; 111 };
112 112
113 DEFINE_STYLE_RULE_TYPE_CASTS(Import); 113 DEFINE_STYLE_RULE_TYPE_CASTS(Import);
114 114
115 } // namespace blink 115 } // namespace blink
116 116
117 #endif 117 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/StyleRule.cpp ('k') | third_party/WebKit/Source/core/css/StyleRuleKeyframe.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698