Recover edge names used in MemoryInstrumentation for DocumentRuleSets.
authorhayato@chromium.org <hayato@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 15 Feb 2013 01:01:34 +0000 (01:01 +0000)
committerhayato@chromium.org <hayato@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 15 Feb 2013 01:01:34 +0000 (01:01 +0000)
https://bugs.webkit.org/show_bug.cgi?id=109800

Reviewed by Hajime Morita.

This is a following patch for r142573.
r142563 accidentally removes edge names for MemoryInstrumentation. We should recover edge names.

No tests. No change in behavior.

* css/DocumentRuleSets.cpp:
(WebCore::DocumentRuleSets::reportMemoryUsage):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142942 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/css/DocumentRuleSets.cpp

index b97505a..d1c6d12 100644 (file)
@@ -1,3 +1,18 @@
+2013-02-14  Hayato Ito  <hayato@chromium.org>
+
+        Recover edge names used in MemoryInstrumentation for DocumentRuleSets.
+        https://bugs.webkit.org/show_bug.cgi?id=109800
+
+        Reviewed by Hajime Morita.
+
+        This is a following patch for r142573.
+        r142563 accidentally removes edge names for MemoryInstrumentation. We should recover edge names.
+
+        No tests. No change in behavior.
+
+        * css/DocumentRuleSets.cpp:
+        (WebCore::DocumentRuleSets::reportMemoryUsage):
+
 2013-02-14  Hajime Morrita  <morrita@google.com>
 
         [V8] Assertion failure on an exception is thrown
index 23009ed..a85c1a7 100644 (file)
@@ -157,11 +157,11 @@ void DocumentRuleSets::collectFeatures(bool isViewSource, StyleScopeResolver* sc
 void DocumentRuleSets::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const
 {
     MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS);
-    info.addMember(m_authorStyle);
-    info.addMember(m_userStyle);
-    info.addMember(m_features);
-    info.addMember(m_siblingRuleSet);
-    info.addMember(m_uncommonAttributeRuleSet);
+    info.addMember(m_authorStyle, "authorStyle");
+    info.addMember(m_userStyle, "userStyle");
+    info.addMember(m_features, "features");
+    info.addMember(m_siblingRuleSet, "siblingRuleSet");
+    info.addMember(m_uncommonAttributeRuleSet, "uncommonAttributeRuleSet");
 }
 
 } // namespace WebCore