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

Unified Diff: Source/core/inspector/InspectorStyleSheet.cpp

Issue 1213233016: Add missing initialization of RawPtr<> local var in r197835. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorStyleSheet.cpp
diff --git a/Source/core/inspector/InspectorStyleSheet.cpp b/Source/core/inspector/InspectorStyleSheet.cpp
index 35eb943490f9635157402d50b9f3a1ed5af9fcfe..280fd3e6b08db8ab97442ba05625b5c59fea5258 100644
--- a/Source/core/inspector/InspectorStyleSheet.cpp
+++ b/Source/core/inspector/InspectorStyleSheet.cpp
@@ -1062,7 +1062,7 @@ CSSStyleRule* InspectorStyleSheet::insertCSSOMRuleBySourceRange(const SourceRang
{
ASSERT(m_sourceData);
- RefPtrWillBeRawPtr<CSSRuleSourceData> containingRuleSourceData;
+ RefPtrWillBeRawPtr<CSSRuleSourceData> containingRuleSourceData = nullptr;
for (size_t i = 0; i < m_sourceData->size(); ++i) {
RefPtrWillBeRawPtr<CSSRuleSourceData> ruleSourceData = m_sourceData->at(i);
if (ruleSourceData->ruleHeaderRange.start < sourceRange.start && sourceRange.start < ruleSourceData->ruleBodyRange.start) {
@@ -1196,7 +1196,7 @@ void InspectorStyleSheet::innerSetText(const String& text, bool markAsLocallyMod
RefPtrWillBeRawPtr<StyleSheetContents> styleSheet = StyleSheetContents::create(m_pageStyleSheet->contents()->parserContext());
StyleSheetHandler handler(text, m_pageStyleSheet->ownerDocument(), ruleTree.get());
CSSParser::parseSheetForInspector(m_pageStyleSheet->contents()->parserContext(), styleSheet.get(), text, handler);
- RefPtrWillBeRawPtr<CSSStyleSheet> sourceDataSheet;
+ RefPtrWillBeRawPtr<CSSStyleSheet> sourceDataSheet = nullptr;
if (toCSSImportRule(m_pageStyleSheet->ownerRule()))
sourceDataSheet = CSSStyleSheet::create(styleSheet, toCSSImportRule(m_pageStyleSheet->ownerRule()));
else
@@ -1641,7 +1641,7 @@ PassRefPtrWillBeRawPtr<InspectorStyle> InspectorStyleSheetForInlineStyle::inspec
{
if (!m_inspectorStyle) {
const String& text = elementStyleText();
- RefPtrWillBeRawPtr<CSSRuleSourceData> ruleSourceData;
+ RefPtrWillBeRawPtr<CSSRuleSourceData> ruleSourceData = nullptr;
if (text.isEmpty()) {
ruleSourceData = CSSRuleSourceData::create(StyleRule::Style);
ruleSourceData->ruleBodyRange.start = 0;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698