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

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

Issue 208013002: Support invalidation sets for :host pseudo. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 UseSubtreeStyleChange 131 UseSubtreeStyleChange
132 }; 132 };
133 133
134 static InvalidationSetMode supportsClassDescendantInvalidation(const CSSSele ctor&); 134 static InvalidationSetMode supportsClassDescendantInvalidation(const CSSSele ctor&);
135 135
136 void collectFeaturesFromSelector(const CSSSelector&, FeatureMetadata&, Inval idationSetMode); 136 void collectFeaturesFromSelector(const CSSSelector&, FeatureMetadata&, Inval idationSetMode);
137 void collectFeaturesFromSelectorList(const CSSSelectorList*, FeatureMetadata &, InvalidationSetMode); 137 void collectFeaturesFromSelectorList(const CSSSelectorList*, FeatureMetadata &, InvalidationSetMode);
138 138
139 DescendantInvalidationSet& ensureClassInvalidationSet(const AtomicString& cl assName); 139 DescendantInvalidationSet& ensureClassInvalidationSet(const AtomicString& cl assName);
140 InvalidationSetMode updateClassInvalidationSets(const CSSSelector&); 140 InvalidationSetMode updateClassInvalidationSets(const CSSSelector&);
141 const CSSSelector* extractInvalidationSetFeatures(const CSSSelector&, Vector <AtomicString>& classes, AtomicString& id, AtomicString& tagName);
142 void addFeaturesToInvalidationSets(const CSSSelector&, const Vector<AtomicSt ring>& classes, AtomicString id, AtomicString tagName);
141 143
142 void addClassToInvalidationSet(const AtomicString& className, Element*); 144 void addClassToInvalidationSet(const AtomicString& className, Element*);
143 145
144 InvalidationList& ensurePendingInvalidationList(Element*); 146 InvalidationList& ensurePendingInvalidationList(Element*);
145 147
146 FeatureMetadata m_metadata; 148 FeatureMetadata m_metadata;
147 InvalidationSetMap m_classInvalidationSets; 149 InvalidationSetMap m_classInvalidationSets;
148 PendingInvalidationMap m_pendingInvalidationMap; 150 PendingInvalidationMap m_pendingInvalidationMap;
149 151
150 bool m_targetedStyleRecalcEnabled; 152 bool m_targetedStyleRecalcEnabled;
151 }; 153 };
152 154
153 155
154 } // namespace WebCore 156 } // namespace WebCore
155 157
156 #endif // RuleFeature_h 158 #endif // RuleFeature_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698