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

Side by Side Diff: third_party/WebKit/Source/core/css/parser/CSSParserMode.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) 2003 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) 3 * Copyright (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com)
4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com>
6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
8 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. 8 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved.
9 * Copyright (C) 2012 Intel Corporation. All rights reserved. 9 * Copyright (C) 2012 Intel Corporation. All rights reserved.
10 * 10 *
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 return m_baseURL == other.m_baseURL 83 return m_baseURL == other.m_baseURL
84 && m_charset == other.m_charset 84 && m_charset == other.m_charset
85 && m_mode == other.m_mode 85 && m_mode == other.m_mode
86 && m_matchMode == other.m_matchMode 86 && m_matchMode == other.m_matchMode
87 && m_isHTMLDocument == other.m_isHTMLDocument 87 && m_isHTMLDocument == other.m_isHTMLDocument
88 && m_useLegacyBackgroundSizeShorthandBehavior == other.m_useLegacyBackgr oundSizeShorthandBehavior; 88 && m_useLegacyBackgroundSizeShorthandBehavior == other.m_useLegacyBackgr oundSizeShorthandBehavior;
89 } 89 }
90 90
91 const CSSParserContext& strictCSSParserContext() 91 const CSSParserContext& strictCSSParserContext()
92 { 92 {
93 DEFINE_STATIC_LOCAL(CSSParserContext, strictContext, (HTMLStandardMode, 0)); 93 DEFINE_STATIC_LOCAL(CSSParserContext, strictContext, (HTMLStandardMode, null ptr));
94 return strictContext; 94 return strictContext;
95 } 95 }
96 96
97 KURL CSSParserContext::completeURL(const String& url) const 97 KURL CSSParserContext::completeURL(const String& url) const
98 { 98 {
99 if (url.isNull()) 99 if (url.isNull())
100 return KURL(); 100 return KURL();
101 if (charset().isEmpty()) 101 if (charset().isEmpty())
102 return KURL(baseURL(), url); 102 return KURL(baseURL(), url);
103 return KURL(baseURL(), url, charset()); 103 return KURL(baseURL(), url, charset());
104 } 104 }
105 105
106 } // namespace blink 106 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698