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

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

Issue 2274143002: CSS: Make ~InvalidationSet protected (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added comment Created 4 years, 3 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
« no previous file with comments | « third_party/WebKit/Source/core/css/invalidation/InvalidationSet.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 #define TRACE_STYLE_INVALIDATOR_INVALIDATION_SELECTORPART_IF_ENABLED(element, re ason, invalidationSet, singleSelectorPart) \ 46 #define TRACE_STYLE_INVALIDATOR_INVALIDATION_SELECTORPART_IF_ENABLED(element, re ason, invalidationSet, singleSelectorPart) \
47 if (UNLIKELY(*s_tracingEnabled)) \ 47 if (UNLIKELY(*s_tracingEnabled)) \
48 TRACE_STYLE_INVALIDATOR_INVALIDATION_SELECTORPART(element, reason, inval idationSet, singleSelectorPart); 48 TRACE_STYLE_INVALIDATOR_INVALIDATION_SELECTORPART(element, reason, inval idationSet, singleSelectorPart);
49 49
50 void InvalidationSet::cacheTracingFlag() 50 void InvalidationSet::cacheTracingFlag()
51 { 51 {
52 s_tracingEnabled = TRACE_EVENT_API_GET_CATEGORY_GROUP_ENABLED(TRACE_DISABLED _BY_DEFAULT("devtools.timeline.invalidationTracking")); 52 s_tracingEnabled = TRACE_EVENT_API_GET_CATEGORY_GROUP_ENABLED(TRACE_DISABLED _BY_DEFAULT("devtools.timeline.invalidationTracking"));
53 } 53 }
54 54
55 InvalidationSet::InvalidationSet(InvalidationType type) 55 InvalidationSet::InvalidationSet(InvalidationType type)
56 : m_type(type) 56 : m_refCount(1)
57 , m_type(type)
57 , m_allDescendantsMightBeInvalid(false) 58 , m_allDescendantsMightBeInvalid(false)
58 , m_invalidatesSelf(false) 59 , m_invalidatesSelf(false)
59 , m_customPseudoInvalid(false) 60 , m_customPseudoInvalid(false)
60 , m_treeBoundaryCrossing(false) 61 , m_treeBoundaryCrossing(false)
61 , m_insertionPointCrossing(false) 62 , m_insertionPointCrossing(false)
62 , m_invalidatesSlotted(false) 63 , m_invalidatesSlotted(false)
63 , m_isAlive(true) 64 , m_isAlive(true)
64 { 65 {
65 } 66 }
66 67
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 } 315 }
315 316
316 DescendantInvalidationSet& SiblingInvalidationSet::ensureDescendants() 317 DescendantInvalidationSet& SiblingInvalidationSet::ensureDescendants()
317 { 318 {
318 if (!m_descendantInvalidationSet) 319 if (!m_descendantInvalidationSet)
319 m_descendantInvalidationSet = DescendantInvalidationSet::create(); 320 m_descendantInvalidationSet = DescendantInvalidationSet::create();
320 return *m_descendantInvalidationSet; 321 return *m_descendantInvalidationSet;
321 } 322 }
322 323
323 } // namespace blink 324 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/invalidation/InvalidationSet.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698