| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |