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

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

Issue 2336103003: Convert a few more CFI blacklist entries into DISABLE_CFI_PERF attributes. (Closed)
Patch Set: Created 4 years, 3 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 | third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.cpp » ('j') | 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, 2013 Apple Inc. All rights reserved. 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved.
6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org>
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved.
10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 169
170 StyleEngine& styleEngine = m_context.element()->document().styleEngine(); 170 StyleEngine& styleEngine = m_context.element()->document().styleEngine();
171 if (!styleEngine.stats()) 171 if (!styleEngine.stats())
172 return; 172 return;
173 173
174 INCREMENT_STYLE_STATS_COUNTER(styleEngine, rulesRejected, rejected); 174 INCREMENT_STYLE_STATS_COUNTER(styleEngine, rulesRejected, rejected);
175 INCREMENT_STYLE_STATS_COUNTER(styleEngine, rulesFastRejected, fastRejected); 175 INCREMENT_STYLE_STATS_COUNTER(styleEngine, rulesFastRejected, fastRejected);
176 INCREMENT_STYLE_STATS_COUNTER(styleEngine, rulesMatched, matched); 176 INCREMENT_STYLE_STATS_COUNTER(styleEngine, rulesMatched, matched);
177 } 177 }
178 178
179 DISABLE_CFI_PERF
179 void ElementRuleCollector::collectMatchingRules(const MatchRequest& matchRequest , CascadeOrder cascadeOrder, bool matchingTreeBoundaryRules) 180 void ElementRuleCollector::collectMatchingRules(const MatchRequest& matchRequest , CascadeOrder cascadeOrder, bool matchingTreeBoundaryRules)
180 { 181 {
181 ASSERT(matchRequest.ruleSet); 182 ASSERT(matchRequest.ruleSet);
182 ASSERT(m_context.element()); 183 ASSERT(m_context.element());
183 184
184 Element& element = *m_context.element(); 185 Element& element = *m_context.element();
185 const AtomicString& pseudoId = element.shadowPseudoId(); 186 const AtomicString& pseudoId = element.shadowPseudoId();
186 if (!pseudoId.isEmpty()) { 187 if (!pseudoId.isEmpty()) {
187 ASSERT(element.isStyledElement()); 188 ASSERT(element.isStyledElement());
188 collectMatchingRulesForList(matchRequest.ruleSet->shadowPseudoElementRul es(pseudoId), cascadeOrder, matchRequest); 189 collectMatchingRulesForList(matchRequest.ruleSet->shadowPseudoElementRul es(pseudoId), cascadeOrder, matchRequest);
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 // should not see the element's treescope. Because RuleSet has no 330 // should not see the element's treescope. Because RuleSet has no
330 // information about "scope". 331 // information about "scope".
331 MatchRequest matchRequest(ruleSet); 332 MatchRequest matchRequest(ruleSet);
332 collectMatchingRules(matchRequest); 333 collectMatchingRules(matchRequest);
333 collectMatchingShadowHostRules(matchRequest); 334 collectMatchingShadowHostRules(matchRequest);
334 335
335 return !m_matchedRules.isEmpty(); 336 return !m_matchedRules.isEmpty();
336 } 337 }
337 338
338 } // namespace blink 339 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698