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

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

Issue 540533004: Use style invalidation for more pseudo classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 3 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 { 77 {
78 ASSERT(!classValue.isEmpty()); 78 ASSERT(!classValue.isEmpty());
79 return m_classInvalidationSets.contains(classValue); 79 return m_classInvalidationSets.contains(classValue);
80 } 80 }
81 81
82 inline bool hasSelectorForId(const AtomicString& idValue) const 82 inline bool hasSelectorForId(const AtomicString& idValue) const
83 { 83 {
84 return m_idInvalidationSets.contains(idValue); 84 return m_idInvalidationSets.contains(idValue);
85 } 85 }
86 86
87 inline bool hasSelectorForPseudoType(CSSSelector::PseudoType pseudo) const
esprehn 2014/09/19 04:55:17 remove inline, this in the class def so it's inlin
rune 2014/09/23 12:23:16 Done.
88 {
89 return m_pseudoInvalidationSets.contains(pseudo);
90 }
91
87 void scheduleStyleInvalidationForClassChange(const SpaceSplitString& changed Classes, Element&); 92 void scheduleStyleInvalidationForClassChange(const SpaceSplitString& changed Classes, Element&);
88 void scheduleStyleInvalidationForClassChange(const SpaceSplitString& oldClas ses, const SpaceSplitString& newClasses, Element&); 93 void scheduleStyleInvalidationForClassChange(const SpaceSplitString& oldClas ses, const SpaceSplitString& newClasses, Element&);
89 void scheduleStyleInvalidationForAttributeChange(const QualifiedName& attrib uteName, Element&); 94 void scheduleStyleInvalidationForAttributeChange(const QualifiedName& attrib uteName, Element&);
90 void scheduleStyleInvalidationForIdChange(const AtomicString& oldId, const A tomicString& newId, Element&); 95 void scheduleStyleInvalidationForIdChange(const AtomicString& oldId, const A tomicString& newId, Element&);
91 void scheduleStyleInvalidationForPseudoChange(CSSSelector::PseudoType, Eleme nt&); 96 void scheduleStyleInvalidationForPseudoChange(CSSSelector::PseudoType, Eleme nt&);
92 97
93 bool hasIdsInSelectors() const 98 bool hasIdsInSelectors() const
94 { 99 {
95 return m_idInvalidationSets.size() > 0; 100 return m_idInvalidationSets.size() > 0;
96 } 101 }
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 186
182 template <> struct VectorTraits<blink::RuleFeature> : VectorTraitsBase<blink::Ru leFeature> { 187 template <> struct VectorTraits<blink::RuleFeature> : VectorTraitsBase<blink::Ru leFeature> {
183 static const bool needsDestruction = false; 188 static const bool needsDestruction = false;
184 static const bool canInitializeWithMemset = true; 189 static const bool canInitializeWithMemset = true;
185 static const bool canMoveWithMemcpy = true; 190 static const bool canMoveWithMemcpy = true;
186 }; 191 };
187 192
188 } // namespace WTF 193 } // namespace WTF
189 194
190 #endif // RuleFeature_h 195 #endif // RuleFeature_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698