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

Unified Diff: third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.cpp

Issue 2797973002: Removing duplicate functions and symbol names in core/css (Closed)
Patch Set: Removed unnecessary include 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.cpp
diff --git a/third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.cpp b/third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.cpp
index ea4273b00b18559b74d4b980c91198e6cfd66d0a..760b2a8c0cb7484053ce6163e743d1f2825b09a5 100644
--- a/third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.cpp
+++ b/third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.cpp
@@ -24,10 +24,10 @@ namespace blink {
// To minimize performance impact, we wrap trace events with a lookup of
// cached flag. The cached flag is made "static const" and is not shared
// with InvalidationSet to avoid additional GOT lookup cost.
-static const unsigned char* s_tracingEnabled = nullptr;
+static const unsigned char* s_styleInvalidatorTracingEnabled = nullptr;
#define TRACE_STYLE_INVALIDATOR_INVALIDATION_IF_ENABLED(element, reason) \
- if (UNLIKELY(*s_tracingEnabled)) \
+ if (UNLIKELY(*s_styleInvalidatorTracingEnabled)) \
TRACE_STYLE_INVALIDATOR_INVALIDATION(element, reason);
void StyleInvalidator::invalidate(Document& document) {
@@ -170,7 +170,7 @@ PendingInvalidations& StyleInvalidator::ensurePendingInvalidations(
}
StyleInvalidator::StyleInvalidator() {
- s_tracingEnabled = TRACE_EVENT_API_GET_CATEGORY_GROUP_ENABLED(
+ s_styleInvalidatorTracingEnabled = TRACE_EVENT_API_GET_CATEGORY_GROUP_ENABLED(
TRACE_DISABLED_BY_DEFAULT("devtools.timeline.invalidationTracking"));
InvalidationSet::cacheTracingFlag();
}
@@ -299,7 +299,7 @@ void StyleInvalidator::pushInvalidationSetsForContainerNode(
CHECK(invalidationSet->isAlive());
recursionData.pushInvalidationSet(*invalidationSet);
}
- if (UNLIKELY(*s_tracingEnabled)) {
+ if (UNLIKELY(*s_styleInvalidatorTracingEnabled)) {
TRACE_EVENT_INSTANT1(
TRACE_DISABLED_BY_DEFAULT("devtools.timeline.invalidationTracking"),
"StyleInvalidatorInvalidationTracking", TRACE_EVENT_SCOPE_THREAD,

Powered by Google App Engine
This is Rietveld 408576698