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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleResolver.h

Issue 1644543002: Moved element style recalc count and stats to StyleEngine. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/resolver/StyleResolver.h
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleResolver.h b/third_party/WebKit/Source/core/css/resolver/StyleResolver.h
index 2d3c2399dd16069cc4c4bd05725fad4681838d6a..3c6c0657664936bc7ef8a051e5d1c3498c9a6b9b 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleResolver.h
+++ b/third_party/WebKit/Source/core/css/resolver/StyleResolver.h
@@ -33,7 +33,6 @@
#include "core/css/resolver/CSSPropertyPriority.h"
#include "core/css/resolver/MatchedPropertiesCache.h"
#include "core/css/resolver/StyleBuilder.h"
-#include "core/css/resolver/StyleResolverStats.h"
#include "core/dom/DocumentOrderedList.h"
#include "core/style/CachedUAStyle.h"
#include "platform/heap/Handle.h"
@@ -167,12 +166,6 @@ public:
void addToStyleSharingList(Element&);
void clearStyleSharingList();
- StyleResolverStats* stats() { return m_styleResolverStats.get(); }
- void setStatsEnabled(bool);
-
- unsigned accessCount() const { return m_accessCount; }
- void didAccess() { ++m_accessCount; }
-
void increaseStyleSharingDepth() { ++m_styleSharingDepth; }
void decreaseStyleSharingDepth() { --m_styleSharingDepth; }
@@ -256,11 +249,6 @@ private:
unsigned m_styleSharingDepth;
WillBeHeapVector<OwnPtrWillBeMember<StyleSharingList>, styleSharingMaxDepth> m_styleSharingLists;
-
- OwnPtr<StyleResolverStats> m_styleResolverStats;
-
- // Use only for Internals::updateStyleAndReturnAffectedElementCount.
- unsigned m_accessCount;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698