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

Side by Side Diff: third_party/WebKit/Source/core/css/RuleSet.cpp

Issue 2600123002: Initialize member array field. (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com)
4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com)
5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All
6 * rights reserved. 6 * rights reserved.
7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> 8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org>
9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
10 * (http://www.torchmobile.com/) 10 * (http://www.torchmobile.com/)
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 : m_rule(rule), 122 : m_rule(rule),
123 m_selectorIndex(selectorIndex), 123 m_selectorIndex(selectorIndex),
124 m_isLastInArray(false), 124 m_isLastInArray(false),
125 m_position(position), 125 m_position(position),
126 m_specificity(selector().specificity()), 126 m_specificity(selector().specificity()),
127 m_containsUncommonAttributeSelector( 127 m_containsUncommonAttributeSelector(
128 blink::containsUncommonAttributeSelector(selector())), 128 blink::containsUncommonAttributeSelector(selector())),
129 m_linkMatchType(selector().computeLinkMatchType()), 129 m_linkMatchType(selector().computeLinkMatchType()),
130 m_hasDocumentSecurityOrigin(addRuleFlags & RuleHasDocumentSecurityOrigin), 130 m_hasDocumentSecurityOrigin(addRuleFlags & RuleHasDocumentSecurityOrigin),
131 m_propertyWhitelist( 131 m_propertyWhitelist(
132 determinePropertyWhitelistType(addRuleFlags, selector())) { 132 determinePropertyWhitelistType(addRuleFlags, selector())),
133 m_descendantSelectorIdentifierHashes() {
133 SelectorFilter::collectIdentifierHashes( 134 SelectorFilter::collectIdentifierHashes(
134 selector(), m_descendantSelectorIdentifierHashes, maximumIdentifierCount); 135 selector(), m_descendantSelectorIdentifierHashes, maximumIdentifierCount);
135 } 136 }
136 137
137 void RuleSet::addToRuleSet(const AtomicString& key, 138 void RuleSet::addToRuleSet(const AtomicString& key,
138 PendingRuleMap& map, 139 PendingRuleMap& map,
139 const RuleData& ruleData) { 140 const RuleData& ruleData) {
140 Member<HeapLinkedStack<RuleData>>& rules = 141 Member<HeapLinkedStack<RuleData>>& rules =
141 map.add(key, nullptr).storedValue->value; 142 map.add(key, nullptr).storedValue->value;
142 if (!rules) 143 if (!rules)
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 } 426 }
426 427
427 #ifndef NDEBUG 428 #ifndef NDEBUG
428 void RuleSet::show() const { 429 void RuleSet::show() const {
429 for (const auto& rule : m_allRules) 430 for (const auto& rule : m_allRules)
430 rule.selector().show(); 431 rule.selector().show();
431 } 432 }
432 #endif 433 #endif
433 434
434 } // namespace blink 435 } // namespace blink
OLDNEW
« 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