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

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp

Issue 2101143005: 0 -> nullptr for UseCounter pointer in CSSParserContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Typo Created 4 years, 5 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) 2010, Google Inc. All rights reserved. 2 * Copyright (C) 2010, Google 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 using blink::RuleSourceDataList; 62 using blink::RuleSourceDataList;
63 using blink::CSSRuleSourceData; 63 using blink::CSSRuleSourceData;
64 using blink::CSSStyleSheet; 64 using blink::CSSStyleSheet;
65 65
66 namespace { 66 namespace {
67 67
68 using namespace blink; 68 using namespace blink;
69 69
70 static CSSParserContext parserContextForDocument(Document *document) 70 static CSSParserContext parserContextForDocument(Document *document)
71 { 71 {
72 return document ? CSSParserContext(*document, 0) : strictCSSParserContext(); 72 return document ? CSSParserContext(*document, nullptr) : strictCSSParserCont ext();
73 } 73 }
74 74
75 class StyleSheetHandler final : public CSSParserObserver { 75 class StyleSheetHandler final : public CSSParserObserver {
76 public: 76 public:
77 StyleSheetHandler(const String& parsedText, Document* document, RuleSourceDa taList* result) 77 StyleSheetHandler(const String& parsedText, Document* document, RuleSourceDa taList* result)
78 : m_parsedText(parsedText) 78 : m_parsedText(parsedText)
79 , m_document(document) 79 , m_document(document)
80 , m_result(result) 80 , m_result(result)
81 , m_currentRuleData(nullptr) 81 , m_currentRuleData(nullptr)
82 , m_currentMediaQueryData(nullptr) 82 , m_currentMediaQueryData(nullptr)
(...skipping 1697 matching lines...) Expand 10 before | Expand all | Expand 10 after
1780 } 1780 }
1781 1781
1782 DEFINE_TRACE(InspectorStyleSheetForInlineStyle) 1782 DEFINE_TRACE(InspectorStyleSheetForInlineStyle)
1783 { 1783 {
1784 visitor->trace(m_element); 1784 visitor->trace(m_element);
1785 visitor->trace(m_inspectorStyle); 1785 visitor->trace(m_inspectorStyle);
1786 InspectorStyleSheetBase::trace(visitor); 1786 InspectorStyleSheetBase::trace(visitor);
1787 } 1787 }
1788 1788
1789 } // namespace blink 1789 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp ('k') | third_party/WebKit/Source/core/svg/SVGLength.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698