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

Side by Side Diff: sky/engine/core/css/RuleFeature.h

Issue 837883002: Store features in the ScopedStyleResoolver. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Simpler even. Created 5 years, 11 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
« no previous file with comments | « no previous file | sky/engine/core/css/RuleFeature.cpp » ('j') | sky/engine/core/dom/Element.cpp » ('J')
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 * 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 ASSERT(!classValue.isEmpty()); 56 ASSERT(!classValue.isEmpty());
57 return m_classNames.contains(classValue); 57 return m_classNames.contains(classValue);
58 } 58 }
59 59
60 inline bool hasSelectorForId(const AtomicString& idValue) const 60 inline bool hasSelectorForId(const AtomicString& idValue) const
61 { 61 {
62 ASSERT(!idValue.isEmpty()); 62 ASSERT(!idValue.isEmpty());
63 return m_idNames.contains(idValue); 63 return m_idNames.contains(idValue);
64 } 64 }
65 65
66 void scheduleStyleInvalidationForClassChange(const SpaceSplitString& changed Classes, Element&);
67 void scheduleStyleInvalidationForClassChange(const SpaceSplitString& oldClas ses, const SpaceSplitString& newClasses, Element&);
68
69 void scheduleStyleInvalidationForClassChange(const AtomicString& className, Element& element);
70 void scheduleStyleInvalidationForAttributeChange(const QualifiedName& attrib uteName, Element&);
71 void scheduleStyleInvalidationForIdChange(const AtomicString& oldId, const A tomicString& newId, Element&);
72
73 private: 66 private:
74 void addSelectorFeatures(const CSSSelector&); 67 void addSelectorFeatures(const CSSSelector&);
75 void collectFeaturesFromSelectorList(const CSSSelectorList*); 68 void collectFeaturesFromSelectorList(const CSSSelectorList*);
76 69
77 HashSet<AtomicString> m_classNames; 70 HashSet<AtomicString> m_classNames;
78 HashSet<AtomicString> m_attributeNames; 71 HashSet<AtomicString> m_attributeNames;
79 HashSet<AtomicString> m_idNames; 72 HashSet<AtomicString> m_idNames;
80 }; 73 };
81 74
82 } // namespace blink 75 } // namespace blink
83 76
84 #endif // SKY_ENGINE_CORE_CSS_RULEFEATURE_H_ 77 #endif // SKY_ENGINE_CORE_CSS_RULEFEATURE_H_
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/css/RuleFeature.cpp » ('j') | sky/engine/core/dom/Element.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698