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

Side by Side Diff: Source/core/css/invalidation/DescendantInvalidationSet.h

Issue 222643002: Support tag names as invalidation set features. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased. 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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 // Appends the classes in this DescendantInvalidationSet to the vector. 61 // Appends the classes in this DescendantInvalidationSet to the vector.
62 void getClasses(Vector<AtomicString>& classes) const; 62 void getClasses(Vector<AtomicString>& classes) const;
63 63
64 // Appends the attributes in this DescendantInvalidationSet to the vector. 64 // Appends the attributes in this DescendantInvalidationSet to the vector.
65 void getAttributes(Vector<AtomicString>& attributes) const; 65 void getAttributes(Vector<AtomicString>& attributes) const;
66 66
67 // Appends the ids in this DescendantInvalidationSet to the vector. 67 // Appends the ids in this DescendantInvalidationSet to the vector.
68 void getIds(Vector<AtomicString>& ids) const; 68 void getIds(Vector<AtomicString>& ids) const;
69 69
70 // Appends the tag names in this DescendantInvalidationSet to the vector.
71 void getTagNames(Vector<AtomicString>& tagNames) const;
72
70 void setWholeSubtreeInvalid(); 73 void setWholeSubtreeInvalid();
71 bool wholeSubtreeInvalid() const { return m_allDescendantsMightBeInvalid; } 74 bool wholeSubtreeInvalid() const { return m_allDescendantsMightBeInvalid; }
72 75
73 void setCustomPseudoInvalid() { m_customPseudoInvalid = true; } 76 void setCustomPseudoInvalid() { m_customPseudoInvalid = true; }
74 bool customPseudoInvalid() const { return m_customPseudoInvalid; } 77 bool customPseudoInvalid() const { return m_customPseudoInvalid; }
75 78
76 private: 79 private:
77 DescendantInvalidationSet(); 80 DescendantInvalidationSet();
78 81
79 HashSet<AtomicString>& ensureClassSet(); 82 HashSet<AtomicString>& ensureClassSet();
(...skipping 10 matching lines...) Expand all
90 // FIXME: optimize this if it becomes a memory issue. 93 // FIXME: optimize this if it becomes a memory issue.
91 OwnPtr<HashSet<AtomicString> > m_classes; 94 OwnPtr<HashSet<AtomicString> > m_classes;
92 OwnPtr<HashSet<AtomicString> > m_ids; 95 OwnPtr<HashSet<AtomicString> > m_ids;
93 OwnPtr<HashSet<AtomicString> > m_tagNames; 96 OwnPtr<HashSet<AtomicString> > m_tagNames;
94 OwnPtr<HashSet<AtomicString> > m_attributes; 97 OwnPtr<HashSet<AtomicString> > m_attributes;
95 }; 98 };
96 99
97 } // namespace WebCore 100 } // namespace WebCore
98 101
99 #endif // DescendantInvalidationSet_h 102 #endif // DescendantInvalidationSet_h
OLDNEW
« no previous file with comments | « Source/core/css/RuleFeature.cpp ('k') | Source/core/css/invalidation/DescendantInvalidationSet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698