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