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

Side by Side Diff: Source/core/css/StyleRule.cpp

Issue 209433004: Do not zero-initialize RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix uses of RefPtrWillBeRawPtr Created 6 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 | Annotate | Revision Log
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, 2012 Apple Inc. All rights reserved. 4 * Copyright (C) 2002, 2005, 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 case Keyframe: 197 case Keyframe:
198 ASSERT_NOT_REACHED(); 198 ASSERT_NOT_REACHED();
199 return nullptr; 199 return nullptr;
200 } 200 }
201 ASSERT_NOT_REACHED(); 201 ASSERT_NOT_REACHED();
202 return nullptr; 202 return nullptr;
203 } 203 }
204 204
205 PassRefPtrWillBeRawPtr<CSSRule> StyleRuleBase::createCSSOMWrapper(CSSStyleSheet* parentSheet, CSSRule* parentRule) const 205 PassRefPtrWillBeRawPtr<CSSRule> StyleRuleBase::createCSSOMWrapper(CSSStyleSheet* parentSheet, CSSRule* parentRule) const
206 { 206 {
207 RefPtrWillBeRawPtr<CSSRule> rule; 207 RefPtrWillBeRawPtr<CSSRule> rule = nullptr;
208 StyleRuleBase* self = const_cast<StyleRuleBase*>(this); 208 StyleRuleBase* self = const_cast<StyleRuleBase*>(this);
209 switch (type()) { 209 switch (type()) {
210 case Style: 210 case Style:
211 rule = CSSStyleRule::create(toStyleRule(self), parentSheet); 211 rule = CSSStyleRule::create(toStyleRule(self), parentSheet);
212 break; 212 break;
213 case Page: 213 case Page:
214 rule = CSSPageRule::create(toStyleRulePage(self), parentSheet); 214 rule = CSSPageRule::create(toStyleRulePage(self), parentSheet);
215 break; 215 break;
216 case FontFace: 216 case FontFace:
217 rule = CSSFontFaceRule::create(toStyleRuleFontFace(self), parentSheet); 217 rule = CSSFontFaceRule::create(toStyleRuleFontFace(self), parentSheet);
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 m_properties = m_properties->mutableCopy(); 446 m_properties = m_properties->mutableCopy();
447 return *toMutableStylePropertySet(m_properties); 447 return *toMutableStylePropertySet(m_properties);
448 } 448 }
449 449
450 void StyleRuleFilter::setProperties(PassRefPtr<StylePropertySet> properties) 450 void StyleRuleFilter::setProperties(PassRefPtr<StylePropertySet> properties)
451 { 451 {
452 m_properties = properties; 452 m_properties = properties;
453 } 453 }
454 454
455 } // namespace WebCore 455 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698