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

Side by Side Diff: third_party/WebKit/Source/core/css/SelectorChecker.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 public: 46 public:
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 ComputedStyle* elementStyle = nullptr; 55 ComputedStyle* elementStyle = nullptr;
56 RawPtrWillBeMember<LayoutScrollbar> scrollbar = nullptr; 56 Member<LayoutScrollbar> scrollbar = nullptr;
57 ScrollbarPart scrollbarPart = NoPart; 57 ScrollbarPart scrollbarPart = NoPart;
58 }; 58 };
59 59
60 explicit SelectorChecker(const Init& init) 60 explicit SelectorChecker(const Init& init)
61 : m_mode(init.mode) 61 : m_mode(init.mode)
62 , m_isUARule(init.isUARule) 62 , m_isUARule(init.isUARule)
63 , m_elementStyle(init.elementStyle) 63 , m_elementStyle(init.elementStyle)
64 , m_scrollbar(init.scrollbar) 64 , m_scrollbar(init.scrollbar)
65 , m_scrollbarPart(init.scrollbarPart) 65 , m_scrollbarPart(init.scrollbarPart)
66 { 66 {
(...skipping 12 matching lines...) Expand all
79 , pseudoId(NOPSEUDO) 79 , pseudoId(NOPSEUDO)
80 , isSubSelector(false) 80 , isSubSelector(false)
81 , inRightmostCompound(true) 81 , inRightmostCompound(true)
82 , hasScrollbarPseudo(false) 82 , hasScrollbarPseudo(false)
83 , hasSelectionPseudo(false) 83 , hasSelectionPseudo(false)
84 , treatShadowHostAsNormalScope(false) 84 , treatShadowHostAsNormalScope(false)
85 { 85 {
86 } 86 }
87 87
88 const CSSSelector* selector; 88 const CSSSelector* selector;
89 RawPtrWillBeMember<Element> element; 89 Member<Element> element;
90 RawPtrWillBeMember<Element> previousElement; 90 Member<Element> previousElement;
91 RawPtrWillBeMember<const ContainerNode> scope; 91 Member<const ContainerNode> scope;
92 VisitedMatchType visitedMatchType; 92 VisitedMatchType visitedMatchType;
93 PseudoId pseudoId; 93 PseudoId pseudoId;
94 bool isSubSelector; 94 bool isSubSelector;
95 bool inRightmostCompound; 95 bool inRightmostCompound;
96 bool hasScrollbarPseudo; 96 bool hasScrollbarPseudo;
97 bool hasSelectionPseudo; 97 bool hasSelectionPseudo;
98 bool treatShadowHostAsNormalScope; 98 bool treatShadowHostAsNormalScope;
99 }; 99 };
100 100
101 struct MatchResult { 101 struct MatchResult {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 Match matchForPseudoShadow(const SelectorCheckingContext&, const ContainerNo de*, MatchResult&) const; 134 Match matchForPseudoShadow(const SelectorCheckingContext&, const ContainerNo de*, MatchResult&) const;
135 bool checkPseudoClass(const SelectorCheckingContext&, MatchResult&) const; 135 bool checkPseudoClass(const SelectorCheckingContext&, MatchResult&) const;
136 bool checkPseudoElement(const SelectorCheckingContext&, MatchResult&) const; 136 bool checkPseudoElement(const SelectorCheckingContext&, MatchResult&) const;
137 bool checkScrollbarPseudoClass(const SelectorCheckingContext&, MatchResult&) const; 137 bool checkScrollbarPseudoClass(const SelectorCheckingContext&, MatchResult&) const;
138 bool checkPseudoHost(const SelectorCheckingContext&, MatchResult&) const; 138 bool checkPseudoHost(const SelectorCheckingContext&, MatchResult&) const;
139 bool checkPseudoNot(const SelectorCheckingContext&, MatchResult&) const; 139 bool checkPseudoNot(const SelectorCheckingContext&, MatchResult&) const;
140 140
141 Mode m_mode; 141 Mode m_mode;
142 bool m_isUARule; 142 bool m_isUARule;
143 ComputedStyle* m_elementStyle; 143 ComputedStyle* m_elementStyle;
144 RawPtrWillBeMember<LayoutScrollbar> m_scrollbar; 144 Member<LayoutScrollbar> m_scrollbar;
145 ScrollbarPart m_scrollbarPart; 145 ScrollbarPart m_scrollbarPart;
146 }; 146 };
147 147
148 } // namespace blink 148 } // namespace blink
149 149
150 #endif 150 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698