| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 enum VisitedMatchType { VisitedMatchDisabled, VisitedMatchEnabled }; | 47 enum VisitedMatchType { VisitedMatchDisabled, VisitedMatchEnabled }; |
| 48 enum Mode { ResolvingStyle, CollectingStyleRules, CollectingCSSRules, Queryi
ngRules, SharingRules }; | 48 enum Mode { ResolvingStyle, CollectingStyleRules, CollectingCSSRules, Queryi
ngRules, SharingRules }; |
| 49 | 49 |
| 50 struct Init { | 50 struct Init { |
| 51 STACK_ALLOCATED(); | 51 STACK_ALLOCATED(); |
| 52 public: | 52 public: |
| 53 Mode mode = ResolvingStyle; | 53 Mode mode = ResolvingStyle; |
| 54 bool isUARule = false; | 54 bool isUARule = false; |
| 55 bool isQuerySelector = false; | 55 bool isQuerySelector = false; |
| 56 ComputedStyle* elementStyle = nullptr; | 56 ComputedStyle* elementStyle = nullptr; |
| 57 RawPtrWillBeMember<LayoutScrollbar> scrollbar = nullptr; | 57 Member<LayoutScrollbar> scrollbar = nullptr; |
| 58 ScrollbarPart scrollbarPart = NoPart; | 58 ScrollbarPart scrollbarPart = NoPart; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 explicit SelectorChecker(const Init& init) | 61 explicit SelectorChecker(const Init& init) |
| 62 : m_mode(init.mode) | 62 : m_mode(init.mode) |
| 63 , m_isUARule(init.isUARule) | 63 , m_isUARule(init.isUARule) |
| 64 , m_isQuerySelector(init.isQuerySelector) | 64 , m_isQuerySelector(init.isQuerySelector) |
| 65 , m_elementStyle(init.elementStyle) | 65 , m_elementStyle(init.elementStyle) |
| 66 , m_scrollbar(init.scrollbar) | 66 , m_scrollbar(init.scrollbar) |
| 67 , m_scrollbarPart(init.scrollbarPart) | 67 , m_scrollbarPart(init.scrollbarPart) |
| (...skipping 13 matching lines...) Expand all Loading... |
| 81 , pseudoId(PseudoIdNone) | 81 , pseudoId(PseudoIdNone) |
| 82 , isSubSelector(false) | 82 , isSubSelector(false) |
| 83 , inRightmostCompound(true) | 83 , inRightmostCompound(true) |
| 84 , hasScrollbarPseudo(false) | 84 , hasScrollbarPseudo(false) |
| 85 , hasSelectionPseudo(false) | 85 , hasSelectionPseudo(false) |
| 86 , treatShadowHostAsNormalScope(false) | 86 , treatShadowHostAsNormalScope(false) |
| 87 { | 87 { |
| 88 } | 88 } |
| 89 | 89 |
| 90 const CSSSelector* selector; | 90 const CSSSelector* selector; |
| 91 RawPtrWillBeMember<Element> element; | 91 Member<Element> element; |
| 92 RawPtrWillBeMember<Element> previousElement; | 92 Member<Element> previousElement; |
| 93 RawPtrWillBeMember<const ContainerNode> scope; | 93 Member<const ContainerNode> scope; |
| 94 VisitedMatchType visitedMatchType; | 94 VisitedMatchType visitedMatchType; |
| 95 PseudoId pseudoId; | 95 PseudoId pseudoId; |
| 96 bool isSubSelector; | 96 bool isSubSelector; |
| 97 bool inRightmostCompound; | 97 bool inRightmostCompound; |
| 98 bool hasScrollbarPseudo; | 98 bool hasScrollbarPseudo; |
| 99 bool hasSelectionPseudo; | 99 bool hasSelectionPseudo; |
| 100 bool treatShadowHostAsNormalScope; | 100 bool treatShadowHostAsNormalScope; |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 struct MatchResult { | 103 struct MatchResult { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 bool checkPseudoClass(const SelectorCheckingContext&, MatchResult&) const; | 137 bool checkPseudoClass(const SelectorCheckingContext&, MatchResult&) const; |
| 138 bool checkPseudoElement(const SelectorCheckingContext&, MatchResult&) const; | 138 bool checkPseudoElement(const SelectorCheckingContext&, MatchResult&) const; |
| 139 bool checkScrollbarPseudoClass(const SelectorCheckingContext&, MatchResult&)
const; | 139 bool checkScrollbarPseudoClass(const SelectorCheckingContext&, MatchResult&)
const; |
| 140 bool checkPseudoHost(const SelectorCheckingContext&, MatchResult&) const; | 140 bool checkPseudoHost(const SelectorCheckingContext&, MatchResult&) const; |
| 141 bool checkPseudoNot(const SelectorCheckingContext&, MatchResult&) const; | 141 bool checkPseudoNot(const SelectorCheckingContext&, MatchResult&) const; |
| 142 | 142 |
| 143 Mode m_mode; | 143 Mode m_mode; |
| 144 bool m_isUARule; | 144 bool m_isUARule; |
| 145 bool m_isQuerySelector; | 145 bool m_isQuerySelector; |
| 146 ComputedStyle* m_elementStyle; | 146 ComputedStyle* m_elementStyle; |
| 147 RawPtrWillBeMember<LayoutScrollbar> m_scrollbar; | 147 Member<LayoutScrollbar> m_scrollbar; |
| 148 ScrollbarPart m_scrollbarPart; | 148 ScrollbarPart m_scrollbarPart; |
| 149 }; | 149 }; |
| 150 | 150 |
| 151 } // namespace blink | 151 } // namespace blink |
| 152 | 152 |
| 153 #endif | 153 #endif |
| OLD | NEW |