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

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

Issue 224593002: Use invalidation sets when selector contains adjacent combinators. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased with modified expected test results. Created 6 years, 8 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 | Annotate | Revision Log
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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 InvalidationSetFeatures() : customPseudoElement(false) { } 146 InvalidationSetFeatures() : customPseudoElement(false) { }
147 Vector<AtomicString> classes; 147 Vector<AtomicString> classes;
148 Vector<AtomicString> attributes; 148 Vector<AtomicString> attributes;
149 AtomicString id; 149 AtomicString id;
150 AtomicString tagName; 150 AtomicString tagName;
151 bool customPseudoElement; 151 bool customPseudoElement;
152 }; 152 };
153 153
154 static void extractInvalidationSetFeature(const CSSSelector&, InvalidationSe tFeatures&); 154 static void extractInvalidationSetFeature(const CSSSelector&, InvalidationSe tFeatures&);
155 const CSSSelector* extractInvalidationSetFeatures(const CSSSelector&, Invali dationSetFeatures&); 155 const CSSSelector* extractInvalidationSetFeatures(const CSSSelector&, Invali dationSetFeatures&);
156 void addFeaturesToInvalidationSets(const CSSSelector&, const InvalidationSet Features&); 156 void addFeaturesToInvalidationSets(const CSSSelector&, const InvalidationSet Features&, bool wholeSubtree);
157 157
158 void addClassToInvalidationSet(const AtomicString& className, Element&); 158 void addClassToInvalidationSet(const AtomicString& className, Element&);
159 159
160 FeatureMetadata m_metadata; 160 FeatureMetadata m_metadata;
161 InvalidationSetMap m_classInvalidationSets; 161 InvalidationSetMap m_classInvalidationSets;
162 InvalidationSetMap m_attributeInvalidationSets; 162 InvalidationSetMap m_attributeInvalidationSets;
163 InvalidationSetMap m_idInvalidationSets; 163 InvalidationSetMap m_idInvalidationSets;
164 bool m_targetedStyleRecalcEnabled; 164 bool m_targetedStyleRecalcEnabled;
165 StyleInvalidator m_styleInvalidator; 165 StyleInvalidator m_styleInvalidator;
166 }; 166 };
167 167
168 168
169 } // namespace WebCore 169 } // namespace WebCore
170 170
171 #endif // RuleFeature_h 171 #endif // RuleFeature_h
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/invalidation/targeted-class-type-selectors-expected.txt ('k') | Source/core/css/RuleFeature.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698