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

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

Issue 220123004: Add support for element ids in TargetedStyleRecalc (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adjust test. 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
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 void addId(const AtomicString& id); 57 void addId(const AtomicString& id);
58 void addTagName(const AtomicString& tagName); 58 void addTagName(const AtomicString& tagName);
59 void addAttribute(const AtomicString& attributeLocalName); 59 void addAttribute(const AtomicString& attributeLocalName);
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.
68 void getIds(Vector<AtomicString>& ids) const;
69
67 void setWholeSubtreeInvalid(); 70 void setWholeSubtreeInvalid();
68 bool wholeSubtreeInvalid() const { return m_allDescendantsMightBeInvalid; } 71 bool wholeSubtreeInvalid() const { return m_allDescendantsMightBeInvalid; }
69 72
70 void setCustomPseudoInvalid() { m_customPseudoInvalid = true; } 73 void setCustomPseudoInvalid() { m_customPseudoInvalid = true; }
71 bool customPseudoInvalid() const { return m_customPseudoInvalid; } 74 bool customPseudoInvalid() const { return m_customPseudoInvalid; }
72 75
73 private: 76 private:
74 DescendantInvalidationSet(); 77 DescendantInvalidationSet();
75 78
76 HashSet<AtomicString>& ensureClassSet(); 79 HashSet<AtomicString>& ensureClassSet();
(...skipping 10 matching lines...) Expand all
87 // FIXME: optimize this if it becomes a memory issue. 90 // FIXME: optimize this if it becomes a memory issue.
88 OwnPtr<HashSet<AtomicString> > m_classes; 91 OwnPtr<HashSet<AtomicString> > m_classes;
89 OwnPtr<HashSet<AtomicString> > m_ids; 92 OwnPtr<HashSet<AtomicString> > m_ids;
90 OwnPtr<HashSet<AtomicString> > m_tagNames; 93 OwnPtr<HashSet<AtomicString> > m_tagNames;
91 OwnPtr<HashSet<AtomicString> > m_attributes; 94 OwnPtr<HashSet<AtomicString> > m_attributes;
92 }; 95 };
93 96
94 } // namespace WebCore 97 } // namespace WebCore
95 98
96 #endif // DescendantInvalidationSet_h 99 #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