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

Side by Side Diff: third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.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 * Copyright (C) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 class PropertySetCSSStyleDeclaration 87 class PropertySetCSSStyleDeclaration
88 : public AbstractPropertySetCSSStyleDeclaration { 88 : public AbstractPropertySetCSSStyleDeclaration {
89 public: 89 public:
90 PropertySetCSSStyleDeclaration(MutableStylePropertySet& propertySet) 90 PropertySetCSSStyleDeclaration(MutableStylePropertySet& propertySet)
91 : m_propertySet(&propertySet) {} 91 : m_propertySet(&propertySet) {}
92 92
93 DECLARE_VIRTUAL_TRACE(); 93 DECLARE_VIRTUAL_TRACE();
94 94
95 protected: 95 protected:
96 MutableStylePropertySet& propertySet() const final { 96 MutableStylePropertySet& propertySet() const final {
97 ASSERT(m_propertySet); 97 DCHECK(m_propertySet);
98 return *m_propertySet; 98 return *m_propertySet;
99 } 99 }
100 100
101 PropertyRegistry* propertyRegistry() const override { return nullptr; } 101 PropertyRegistry* propertyRegistry() const override { return nullptr; }
102 102
103 Member<MutableStylePropertySet> m_propertySet; // Cannot be null 103 Member<MutableStylePropertySet> m_propertySet; // Cannot be null
104 }; 104 };
105 105
106 class StyleRuleCSSStyleDeclaration : public PropertySetCSSStyleDeclaration { 106 class StyleRuleCSSStyleDeclaration : public PropertySetCSSStyleDeclaration {
107 public: 107 public:
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 145
146 void didMutate(MutationType) override; 146 void didMutate(MutationType) override;
147 PropertyRegistry* propertyRegistry() const final; 147 PropertyRegistry* propertyRegistry() const final;
148 148
149 Member<Element> m_parentElement; 149 Member<Element> m_parentElement;
150 }; 150 };
151 151
152 } // namespace blink 152 } // namespace blink
153 153
154 #endif 154 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698