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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSStyleSheet.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 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2006, 2007, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2006, 2007, 2012 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 } 94 }
95 95
96 CSSStyleSheet* CSSStyleSheet::createInline(StyleSheetContents* sheet, Node* owne rNode, const TextPosition& startPosition) 96 CSSStyleSheet* CSSStyleSheet::createInline(StyleSheetContents* sheet, Node* owne rNode, const TextPosition& startPosition)
97 { 97 {
98 ASSERT(sheet); 98 ASSERT(sheet);
99 return new CSSStyleSheet(sheet, ownerNode, true, startPosition); 99 return new CSSStyleSheet(sheet, ownerNode, true, startPosition);
100 } 100 }
101 101
102 CSSStyleSheet* CSSStyleSheet::createInline(Node* ownerNode, const KURL& baseURL, const TextPosition& startPosition, const String& encoding) 102 CSSStyleSheet* CSSStyleSheet::createInline(Node* ownerNode, const KURL& baseURL, const TextPosition& startPosition, const String& encoding)
103 { 103 {
104 CSSParserContext parserContext(ownerNode->document(), 0, baseURL, encoding); 104 CSSParserContext parserContext(ownerNode->document(), nullptr, baseURL, enco ding);
105 StyleSheetContents* sheet = StyleSheetContents::create(baseURL.getString(), parserContext); 105 StyleSheetContents* sheet = StyleSheetContents::create(baseURL.getString(), parserContext);
106 return new CSSStyleSheet(sheet, ownerNode, true, startPosition); 106 return new CSSStyleSheet(sheet, ownerNode, true, startPosition);
107 } 107 }
108 108
109 CSSStyleSheet::CSSStyleSheet(StyleSheetContents* contents, CSSImportRule* ownerR ule) 109 CSSStyleSheet::CSSStyleSheet(StyleSheetContents* contents, CSSImportRule* ownerR ule)
110 : m_contents(contents) 110 : m_contents(contents)
111 , m_isInlineStylesheet(false) 111 , m_isInlineStylesheet(false)
112 , m_isDisabled(false) 112 , m_isDisabled(false)
113 , m_ownerNode(nullptr) 113 , m_ownerNode(nullptr)
114 , m_ownerRule(ownerRule) 114 , m_ownerRule(ownerRule)
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 visitor->trace(m_mediaQueries); 440 visitor->trace(m_mediaQueries);
441 visitor->trace(m_ownerNode); 441 visitor->trace(m_ownerNode);
442 visitor->trace(m_ownerRule); 442 visitor->trace(m_ownerRule);
443 visitor->trace(m_mediaCSSOMWrapper); 443 visitor->trace(m_mediaCSSOMWrapper);
444 visitor->trace(m_childRuleCSSOMWrappers); 444 visitor->trace(m_childRuleCSSOMWrappers);
445 visitor->trace(m_ruleListCSSOMWrapper); 445 visitor->trace(m_ruleListCSSOMWrapper);
446 StyleSheet::trace(visitor); 446 StyleSheet::trace(visitor);
447 } 447 }
448 448
449 } // namespace blink 449 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSStyleRule.cpp ('k') | third_party/WebKit/Source/core/css/parser/CSSParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698