| 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 28 matching lines...) Expand all Loading... |
| 39 #include "core/css/CSSSupportsRule.h" | 39 #include "core/css/CSSSupportsRule.h" |
| 40 #include "core/css/SiblingTraversalStrategies.h" | 40 #include "core/css/SiblingTraversalStrategies.h" |
| 41 #include "core/css/StylePropertySet.h" | 41 #include "core/css/StylePropertySet.h" |
| 42 #include "core/css/resolver/StyleResolver.h" | 42 #include "core/css/resolver/StyleResolver.h" |
| 43 #include "core/dom/shadow/ShadowRoot.h" | 43 #include "core/dom/shadow/ShadowRoot.h" |
| 44 #include "core/layout/style/StyleInheritedData.h" | 44 #include "core/layout/style/StyleInheritedData.h" |
| 45 | 45 |
| 46 namespace blink { | 46 namespace blink { |
| 47 | 47 |
| 48 ElementRuleCollector::ElementRuleCollector(const ElementResolveContext& context, | 48 ElementRuleCollector::ElementRuleCollector(const ElementResolveContext& context, |
| 49 const SelectorFilter& filter, LayoutStyle* style) | 49 const SelectorFilter& filter, ComputedStyle* style) |
| 50 : m_context(context) | 50 : m_context(context) |
| 51 , m_selectorFilter(filter) | 51 , m_selectorFilter(filter) |
| 52 , m_style(style) | 52 , m_style(style) |
| 53 , m_pseudoStyleRequest(NOPSEUDO) | 53 , m_pseudoStyleRequest(NOPSEUDO) |
| 54 , m_mode(SelectorChecker::ResolvingStyle) | 54 , m_mode(SelectorChecker::ResolvingStyle) |
| 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 { } |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 int firstRuleIndex = -1, lastRuleIndex = -1; | 343 int firstRuleIndex = -1, lastRuleIndex = -1; |
| 344 RuleRange ruleRange(firstRuleIndex, lastRuleIndex); | 344 RuleRange ruleRange(firstRuleIndex, lastRuleIndex); |
| 345 MatchRequest matchRequest(ruleSet); | 345 MatchRequest matchRequest(ruleSet); |
| 346 collectMatchingRules(matchRequest, ruleRange); | 346 collectMatchingRules(matchRequest, ruleRange); |
| 347 collectMatchingShadowHostRules(matchRequest, ruleRange); | 347 collectMatchingShadowHostRules(matchRequest, ruleRange); |
| 348 | 348 |
| 349 return !m_matchedRules.isEmpty(); | 349 return !m_matchedRules.isEmpty(); |
| 350 } | 350 } |
| 351 | 351 |
| 352 } // namespace blink | 352 } // namespace blink |
| OLD | NEW |