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

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

Issue 603193005: Move the Widget hierarchy to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Switch LocalFrame::m_pluginElements rep to HashSet<HTMLPlugInElement*> Created 6 years, 2 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 public: 53 public:
54 // Initial selector constructor 54 // Initial selector constructor
55 SelectorCheckingContext(const CSSSelector& selector, Element* element, V isitedMatchType visitedMatchType) 55 SelectorCheckingContext(const CSSSelector& selector, Element* element, V isitedMatchType visitedMatchType)
56 : selector(&selector) 56 : selector(&selector)
57 , element(element) 57 , element(element)
58 , previousElement(nullptr) 58 , previousElement(nullptr)
59 , scope(nullptr) 59 , scope(nullptr)
60 , visitedMatchType(visitedMatchType) 60 , visitedMatchType(visitedMatchType)
61 , pseudoId(NOPSEUDO) 61 , pseudoId(NOPSEUDO)
62 , elementStyle(0) 62 , elementStyle(0)
63 , scrollbar(0) 63 , scrollbar(nullptr)
64 , scrollbarPart(NoPart) 64 , scrollbarPart(NoPart)
65 , isSubSelector(false) 65 , isSubSelector(false)
66 , hasScrollbarPseudo(false) 66 , hasScrollbarPseudo(false)
67 , hasSelectionPseudo(false) 67 , hasSelectionPseudo(false)
68 , isUARule(false) 68 , isUARule(false)
69 , scopeContainsLastMatchedElement(false) 69 , scopeContainsLastMatchedElement(false)
70 , treatShadowHostAsNormalScope(false) 70 , treatShadowHostAsNormalScope(false)
71 { 71 {
72 } 72 }
73 73
74 const CSSSelector* selector; 74 const CSSSelector* selector;
75 RawPtrWillBeMember<Element> element; 75 RawPtrWillBeMember<Element> element;
76 RawPtrWillBeMember<Element> previousElement; 76 RawPtrWillBeMember<Element> previousElement;
77 RawPtrWillBeMember<const ContainerNode> scope; 77 RawPtrWillBeMember<const ContainerNode> scope;
78 VisitedMatchType visitedMatchType; 78 VisitedMatchType visitedMatchType;
79 PseudoId pseudoId; 79 PseudoId pseudoId;
80 RenderStyle* elementStyle; 80 RenderStyle* elementStyle;
81 RenderScrollbar* scrollbar; 81 RawPtrWillBeMember<RenderScrollbar> scrollbar;
82 ScrollbarPart scrollbarPart; 82 ScrollbarPart scrollbarPart;
83 unsigned isSubSelector : 1; 83 unsigned isSubSelector : 1;
84 unsigned hasScrollbarPseudo : 1; 84 unsigned hasScrollbarPseudo : 1;
85 unsigned hasSelectionPseudo : 1; 85 unsigned hasSelectionPseudo : 1;
86 unsigned isUARule : 1; 86 unsigned isUARule : 1;
87 unsigned scopeContainsLastMatchedElement : 1; 87 unsigned scopeContainsLastMatchedElement : 1;
88 unsigned treatShadowHostAsNormalScope : 1; 88 unsigned treatShadowHostAsNormalScope : 1;
89 }; 89 };
90 90
91 struct MatchResult { 91 struct MatchResult {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 } 177 }
178 178
179 inline bool SelectorChecker::isHostInItsShadowTree(const Element& element, const ContainerNode* scope) 179 inline bool SelectorChecker::isHostInItsShadowTree(const Element& element, const ContainerNode* scope)
180 { 180 {
181 return scope && scope->isInShadowTree() && scope->shadowHost() == element; 181 return scope && scope->isInShadowTree() && scope->shadowHost() == element;
182 } 182 }
183 183
184 } 184 }
185 185
186 #endif 186 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698