| Index: Source/core/testing/Internals.cpp
|
| diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
|
| index ad9dd8b17861d1c804a33dccffac4d1fc0c660ea..8ab9eac1b7eb6a1b934865c9a51f0244f2e0ebcb 100644
|
| --- a/Source/core/testing/Internals.cpp
|
| +++ b/Source/core/testing/Internals.cpp
|
| @@ -1544,11 +1544,17 @@ 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);
|
| }
|
|
|
| @@ -1841,6 +1847,11 @@ 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;
|
|
|