| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |