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

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

Issue 1155673004: Made matchedResult method const. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Bleh. Use const in the implementation too. Created 5 years, 6 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 | « Source/core/css/ElementRuleCollector.h ('k') | 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, 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 , m_canUseFastReject(m_selectorFilter.parentStackIsConsistent(context.parent Node())) 55 , m_canUseFastReject(m_selectorFilter.parentStackIsConsistent(context.parent Node()))
56 , m_sameOriginOnly(false) 56 , m_sameOriginOnly(false)
57 , m_matchingUARules(false) 57 , m_matchingUARules(false)
58 , m_scopeContainsLastMatchedElement(false) 58 , m_scopeContainsLastMatchedElement(false)
59 { } 59 { }
60 60
61 ElementRuleCollector::~ElementRuleCollector() 61 ElementRuleCollector::~ElementRuleCollector()
62 { 62 {
63 } 63 }
64 64
65 const MatchResult& ElementRuleCollector::matchedResult() 65 const MatchResult& ElementRuleCollector::matchedResult() const
66 { 66 {
67 return m_result; 67 return m_result;
68 } 68 }
69 69
70 PassRefPtrWillBeRawPtr<StyleRuleList> ElementRuleCollector::matchedStyleRuleList () 70 PassRefPtrWillBeRawPtr<StyleRuleList> ElementRuleCollector::matchedStyleRuleList ()
71 { 71 {
72 ASSERT(m_mode == SelectorChecker::CollectingStyleRules); 72 ASSERT(m_mode == SelectorChecker::CollectingStyleRules);
73 return m_styleRuleList.release(); 73 return m_styleRuleList.release();
74 } 74 }
75 75
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 // should not see the element's treescope. Because RuleSet has no 338 // should not see the element's treescope. Because RuleSet has no
339 // information about "scope". 339 // information about "scope".
340 MatchRequest matchRequest(ruleSet); 340 MatchRequest matchRequest(ruleSet);
341 collectMatchingRules(matchRequest); 341 collectMatchingRules(matchRequest);
342 collectMatchingShadowHostRules(matchRequest); 342 collectMatchingShadowHostRules(matchRequest);
343 343
344 return !m_matchedRules.isEmpty(); 344 return !m_matchedRules.isEmpty();
345 } 345 }
346 346
347 } // namespace blink 347 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/ElementRuleCollector.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698