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

Side by Side Diff: third_party/WebKit/Source/core/css/invalidation/InvalidationSet.h

Issue 2812743003: Rename cleanup in comments in css/ directory. (Closed)
Patch Set: Created 3 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 void Destroy(); 176 void Destroy();
177 177
178 HashSet<AtomicString>& EnsureClassSet(); 178 HashSet<AtomicString>& EnsureClassSet();
179 HashSet<AtomicString>& EnsureIdSet(); 179 HashSet<AtomicString>& EnsureIdSet();
180 HashSet<AtomicString>& EnsureTagNameSet(); 180 HashSet<AtomicString>& EnsureTagNameSet();
181 HashSet<AtomicString>& EnsureAttributeSet(); 181 HashSet<AtomicString>& EnsureAttributeSet();
182 182
183 // Implement reference counting manually so we can call a derived 183 // Implement reference counting manually so we can call a derived
184 // class destructor when the reference count decreases to 0. 184 // class destructor when the reference count decreases to 0.
185 // If we use RefCounted instead, at least one of our compilers 185 // If we use RefCounted instead, at least one of our compilers
186 // requires the ability for RefCounted<InvalidationSet>::deref() 186 // requires the ability for RefCounted<InvalidationSet>::Deref()
187 // to call ~InvalidationSet(), but this is not a virtual call. 187 // to call ~InvalidationSet(), but this is not a virtual call.
188 int ref_count_; 188 int ref_count_;
189 189
190 // FIXME: optimize this if it becomes a memory issue. 190 // FIXME: optimize this if it becomes a memory issue.
191 std::unique_ptr<HashSet<AtomicString>> classes_; 191 std::unique_ptr<HashSet<AtomicString>> classes_;
192 std::unique_ptr<HashSet<AtomicString>> ids_; 192 std::unique_ptr<HashSet<AtomicString>> ids_;
193 std::unique_ptr<HashSet<AtomicString>> tag_names_; 193 std::unique_ptr<HashSet<AtomicString>> tag_names_;
194 std::unique_ptr<HashSet<AtomicString>> attributes_; 194 std::unique_ptr<HashSet<AtomicString>> attributes_;
195 195
196 unsigned type_ : 1; 196 unsigned type_ : 1;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 value.IsDescendantInvalidationSet()); 283 value.IsDescendantInvalidationSet());
284 DEFINE_TYPE_CASTS(SiblingInvalidationSet, 284 DEFINE_TYPE_CASTS(SiblingInvalidationSet,
285 InvalidationSet, 285 InvalidationSet,
286 value, 286 value,
287 value->IsSiblingInvalidationSet(), 287 value->IsSiblingInvalidationSet(),
288 value.IsSiblingInvalidationSet()); 288 value.IsSiblingInvalidationSet());
289 289
290 } // namespace blink 290 } // namespace blink
291 291
292 #endif // InvalidationSet_h 292 #endif // InvalidationSet_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698