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

Side by Side Diff: Source/core/css/RuleFeature.cpp

Issue 669643003: Custom pseudo elements do not require sub-tree recalcs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 Apple Inc. All r ights reserved. 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All r ights 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 case CSSSelector::PseudoScrollbar: 115 case CSSSelector::PseudoScrollbar:
116 case CSSSelector::PseudoScrollbarButton: 116 case CSSSelector::PseudoScrollbarButton:
117 case CSSSelector::PseudoScrollbarCorner: 117 case CSSSelector::PseudoScrollbarCorner:
118 case CSSSelector::PseudoScrollbarThumb: 118 case CSSSelector::PseudoScrollbarThumb:
119 case CSSSelector::PseudoScrollbarTrack: 119 case CSSSelector::PseudoScrollbarTrack:
120 case CSSSelector::PseudoScrollbarTrackPiece: 120 case CSSSelector::PseudoScrollbarTrackPiece:
121 case CSSSelector::PseudoWindowInactive: 121 case CSSSelector::PseudoWindowInactive:
122 case CSSSelector::PseudoSelection: 122 case CSSSelector::PseudoSelection:
123 case CSSSelector::PseudoInRange: 123 case CSSSelector::PseudoInRange:
124 case CSSSelector::PseudoOutOfRange: 124 case CSSSelector::PseudoOutOfRange:
125 case CSSSelector::PseudoWebKitCustomElement:
125 case CSSSelector::PseudoUnresolved: 126 case CSSSelector::PseudoUnresolved:
126 case CSSSelector::PseudoContent: 127 case CSSSelector::PseudoContent:
127 case CSSSelector::PseudoHost: 128 case CSSSelector::PseudoHost:
128 case CSSSelector::PseudoShadow: 129 case CSSSelector::PseudoShadow:
129 case CSSSelector::PseudoListBox: 130 case CSSSelector::PseudoListBox:
130 return true; 131 return true;
131 case CSSSelector::PseudoNotParsed: 132 case CSSSelector::PseudoNotParsed:
132 case CSSSelector::PseudoUnknown: 133 case CSSSelector::PseudoUnknown:
133 case CSSSelector::PseudoLeftPage: 134 case CSSSelector::PseudoLeftPage:
134 case CSSSelector::PseudoRightPage: 135 case CSSSelector::PseudoRightPage:
(...skipping 28 matching lines...) Expand all
163 case CSSSelector::PseudoHorizontal: 164 case CSSSelector::PseudoHorizontal:
164 case CSSSelector::PseudoVertical: 165 case CSSSelector::PseudoVertical:
165 case CSSSelector::PseudoStart: 166 case CSSSelector::PseudoStart:
166 case CSSSelector::PseudoEnd: 167 case CSSSelector::PseudoEnd:
167 case CSSSelector::PseudoDoubleButton: 168 case CSSSelector::PseudoDoubleButton:
168 case CSSSelector::PseudoSingleButton: 169 case CSSSelector::PseudoSingleButton:
169 case CSSSelector::PseudoNoButton: 170 case CSSSelector::PseudoNoButton:
170 case CSSSelector::PseudoFullScreen: 171 case CSSSelector::PseudoFullScreen:
171 case CSSSelector::PseudoFullScreenDocument: 172 case CSSSelector::PseudoFullScreenDocument:
172 case CSSSelector::PseudoFullScreenAncestor: 173 case CSSSelector::PseudoFullScreenAncestor:
173 case CSSSelector::PseudoWebKitCustomElement:
174 case CSSSelector::PseudoCue: 174 case CSSSelector::PseudoCue:
175 case CSSSelector::PseudoFutureCue: 175 case CSSSelector::PseudoFutureCue:
176 case CSSSelector::PseudoPastCue: 176 case CSSSelector::PseudoPastCue:
177 case CSSSelector::PseudoSpatialNavigationFocus: 177 case CSSSelector::PseudoSpatialNavigationFocus:
178 // FIXME: Most pseudo classes/elements above can be supported and moved 178 // FIXME: Most pseudo classes/elements above can be supported and moved
179 // to assertSupportedPseudo(). Move on a case-by-case basis. If they 179 // to assertSupportedPseudo(). Move on a case-by-case basis. If they
180 // require subtree invalidation, document why. 180 // require subtree invalidation, document why.
181 case CSSSelector::PseudoHostContext: 181 case CSSSelector::PseudoHostContext:
182 // :host-context matches a shadow host, yet the simple selectors inside 182 // :host-context matches a shadow host, yet the simple selectors inside
183 // :host-context matches an ancestor of the shadow host. 183 // :host-context matches an ancestor of the shadow host.
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 visitor->trace(uncommonAttributeRules); 648 visitor->trace(uncommonAttributeRules);
649 visitor->trace(m_classInvalidationSets); 649 visitor->trace(m_classInvalidationSets);
650 visitor->trace(m_attributeInvalidationSets); 650 visitor->trace(m_attributeInvalidationSets);
651 visitor->trace(m_idInvalidationSets); 651 visitor->trace(m_idInvalidationSets);
652 visitor->trace(m_pseudoInvalidationSets); 652 visitor->trace(m_pseudoInvalidationSets);
653 visitor->trace(m_styleInvalidator); 653 visitor->trace(m_styleInvalidator);
654 #endif 654 #endif
655 } 655 }
656 656
657 } // namespace blink 657 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698