| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 public: | 59 public: |
| 60 // Initial selector constructor | 60 // Initial selector constructor |
| 61 SelectorCheckingContext(const CSSSelector& selector, Element* element, V
isitedMatchType visitedMatchType) | 61 SelectorCheckingContext(const CSSSelector& selector, Element* element, V
isitedMatchType visitedMatchType) |
| 62 : selector(&selector) | 62 : selector(&selector) |
| 63 , element(element) | 63 , element(element) |
| 64 , previousElement(nullptr) | 64 , previousElement(nullptr) |
| 65 , scope(nullptr) | 65 , scope(nullptr) |
| 66 , visitedMatchType(visitedMatchType) | 66 , visitedMatchType(visitedMatchType) |
| 67 , pseudoId(NOPSEUDO) | 67 , pseudoId(NOPSEUDO) |
| 68 , elementStyle(0) | 68 , elementStyle(0) |
| 69 , scrollbar(0) | 69 , scrollbar(nullptr) |
| 70 , scrollbarPart(NoPart) | 70 , scrollbarPart(NoPart) |
| 71 , isSubSelector(false) | 71 , isSubSelector(false) |
| 72 , hasScrollbarPseudo(false) | 72 , hasScrollbarPseudo(false) |
| 73 , hasSelectionPseudo(false) | 73 , hasSelectionPseudo(false) |
| 74 , isUARule(false) | 74 , isUARule(false) |
| 75 , contextFlags(DefaultBehavior) | 75 , contextFlags(DefaultBehavior) |
| 76 { | 76 { |
| 77 } | 77 } |
| 78 | 78 |
| 79 const CSSSelector* selector; | 79 const CSSSelector* selector; |
| 80 RawPtrWillBeMember<Element> element; | 80 RawPtrWillBeMember<Element> element; |
| 81 RawPtrWillBeMember<Element> previousElement; | 81 RawPtrWillBeMember<Element> previousElement; |
| 82 RawPtrWillBeMember<const ContainerNode> scope; | 82 RawPtrWillBeMember<const ContainerNode> scope; |
| 83 VisitedMatchType visitedMatchType; | 83 VisitedMatchType visitedMatchType; |
| 84 PseudoId pseudoId; | 84 PseudoId pseudoId; |
| 85 RenderStyle* elementStyle; | 85 RenderStyle* elementStyle; |
| 86 RenderScrollbar* scrollbar; | 86 RawPtrWillBeMember<RenderScrollbar> scrollbar; |
| 87 ScrollbarPart scrollbarPart; | 87 ScrollbarPart scrollbarPart; |
| 88 bool isSubSelector; | 88 bool isSubSelector; |
| 89 bool hasScrollbarPseudo; | 89 bool hasScrollbarPseudo; |
| 90 bool hasSelectionPseudo; | 90 bool hasSelectionPseudo; |
| 91 bool isUARule; | 91 bool isUARule; |
| 92 ContextFlags contextFlags; | 92 ContextFlags contextFlags; |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 struct MatchResult { | 95 struct MatchResult { |
| 96 MatchResult() | 96 MatchResult() |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 } | 175 } |
| 176 | 176 |
| 177 inline bool SelectorChecker::isHostInItsShadowTree(const Element& element, const
ContainerNode* scope) | 177 inline bool SelectorChecker::isHostInItsShadowTree(const Element& element, const
ContainerNode* scope) |
| 178 { | 178 { |
| 179 return scope && scope->isInShadowTree() && scope->shadowHost() == element; | 179 return scope && scope->isInShadowTree() && scope->shadowHost() == element; |
| 180 } | 180 } |
| 181 | 181 |
| 182 } | 182 } |
| 183 | 183 |
| 184 #endif | 184 #endif |
| OLD | NEW |