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

Unified Diff: Source/core/css/ElementRuleCollector.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 side-by-side diff with in-line comments
Download patch
Index: Source/core/css/ElementRuleCollector.cpp
diff --git a/Source/core/css/ElementRuleCollector.cpp b/Source/core/css/ElementRuleCollector.cpp
index 6675cdce6afe0e97480559f4f9dfe2e77b8200f1..7df346d9937b7c4b975a817869137347db69dcf4 100644
--- a/Source/core/css/ElementRuleCollector.cpp
+++ b/Source/core/css/ElementRuleCollector.cpp
@@ -218,7 +218,7 @@ void ElementRuleCollector::appendCSSOMWrapperForRule(CSSStyleSheet* parentStyleS
// |parentStyleSheet| is 0 if and only if the |rule| is coming from User Agent. In this case,
// it is safe to create CSSOM wrappers without parentStyleSheets as they will be used only
// by inspector which will not try to edit them.
- RefPtrWillBeRawPtr<CSSRule> cssRule;
+ RefPtrWillBeRawPtr<CSSRule> cssRule = nullptr;
if (parentStyleSheet)
cssRule = findStyleRule(parentStyleSheet, rule);
else

Powered by Google App Engine
This is Rietveld 408576698