OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |