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

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

Issue 663023003: Avoid subtree style recalc for fullscreen pseudos. (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 | « LayoutTests/fast/css/invalidation/fullscreen-expected.txt ('k') | 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 case CSSSelector::PseudoRoot: 113 case CSSSelector::PseudoRoot:
114 case CSSSelector::PseudoScope: 114 case CSSSelector::PseudoScope:
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::PseudoFullScreen:
124 case CSSSelector::PseudoFullScreenDocument:
125 case CSSSelector::PseudoFullScreenAncestor:
123 case CSSSelector::PseudoInRange: 126 case CSSSelector::PseudoInRange:
124 case CSSSelector::PseudoOutOfRange: 127 case CSSSelector::PseudoOutOfRange:
125 case CSSSelector::PseudoWebKitCustomElement: 128 case CSSSelector::PseudoWebKitCustomElement:
126 case CSSSelector::PseudoUnresolved: 129 case CSSSelector::PseudoUnresolved:
127 case CSSSelector::PseudoContent: 130 case CSSSelector::PseudoContent:
128 case CSSSelector::PseudoHost: 131 case CSSSelector::PseudoHost:
129 case CSSSelector::PseudoShadow: 132 case CSSSelector::PseudoShadow:
130 case CSSSelector::PseudoListBox: 133 case CSSSelector::PseudoListBox:
131 return true; 134 return true;
132 case CSSSelector::PseudoNotParsed: 135 case CSSSelector::PseudoNotParsed:
(...skipping 28 matching lines...) Expand all
161 case CSSSelector::PseudoCornerPresent: 164 case CSSSelector::PseudoCornerPresent:
162 case CSSSelector::PseudoDecrement: 165 case CSSSelector::PseudoDecrement:
163 case CSSSelector::PseudoIncrement: 166 case CSSSelector::PseudoIncrement:
164 case CSSSelector::PseudoHorizontal: 167 case CSSSelector::PseudoHorizontal:
165 case CSSSelector::PseudoVertical: 168 case CSSSelector::PseudoVertical:
166 case CSSSelector::PseudoStart: 169 case CSSSelector::PseudoStart:
167 case CSSSelector::PseudoEnd: 170 case CSSSelector::PseudoEnd:
168 case CSSSelector::PseudoDoubleButton: 171 case CSSSelector::PseudoDoubleButton:
169 case CSSSelector::PseudoSingleButton: 172 case CSSSelector::PseudoSingleButton:
170 case CSSSelector::PseudoNoButton: 173 case CSSSelector::PseudoNoButton:
171 case CSSSelector::PseudoFullScreen:
172 case CSSSelector::PseudoFullScreenDocument:
173 case CSSSelector::PseudoFullScreenAncestor:
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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 visitor->trace(uncommonAttributeRules); 652 visitor->trace(uncommonAttributeRules);
653 visitor->trace(m_classInvalidationSets); 653 visitor->trace(m_classInvalidationSets);
654 visitor->trace(m_attributeInvalidationSets); 654 visitor->trace(m_attributeInvalidationSets);
655 visitor->trace(m_idInvalidationSets); 655 visitor->trace(m_idInvalidationSets);
656 visitor->trace(m_pseudoInvalidationSets); 656 visitor->trace(m_pseudoInvalidationSets);
657 visitor->trace(m_styleInvalidator); 657 visitor->trace(m_styleInvalidator);
658 #endif 658 #endif
659 } 659 }
660 660
661 } // namespace blink 661 } // namespace blink
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/invalidation/fullscreen-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698