Index: Source/core/testing/Internals.cpp |
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp |
index cea9dde5e89064f9bf45ac43e3d7d643744a9f0b..438a9d0f99b08572e9bfedee60a071caee106002 100644 |
--- a/Source/core/testing/Internals.cpp |
+++ b/Source/core/testing/Internals.cpp |
@@ -1545,17 +1545,11 @@ void Internals::toggleOverwriteModeEnabled(Document* document, ExceptionState&) |
unsigned Internals::numberOfLiveNodes() const |
{ |
- if (StyleResolver* resolver = contextDocument()->styleResolverIfExists()) |
- resolver->clearStyleSharingList(); |
- |
return InspectorCounters::counterValue(InspectorCounters::NodeCounter); |
} |
unsigned Internals::numberOfLiveDocuments() const |
{ |
- if (StyleResolver* resolver = contextDocument()->styleResolverIfExists()) |
- resolver->clearStyleSharingList(); |
- |
return InspectorCounters::counterValue(InspectorCounters::DocumentCounter); |
} |
@@ -1848,11 +1842,6 @@ void Internals::garbageCollectDocumentResources(Document* document, ExceptionSta |
return; |
} |
- if (StyleResolver* resolver = contextDocument()->styleResolverIfExists()) |
- resolver->clearStyleSharingList(); |
- if (StyleResolver* resolver = document->styleResolverIfExists()) |
- resolver->clearStyleSharingList(); |
- |
ResourceFetcher* fetcher = document->fetcher(); |
if (!fetcher) |
return; |