Title: [204241] trunk/Source/WebCore
- Revision
- 204241
- Author
- akl...@apple.com
- Date
- 2016-08-07 10:05:51 -0700 (Sun, 07 Aug 2016)
Log Message
DocumentRuleSets::collectFeatures() should shrink-to-fit.
<https://webkit.org/b/160646>
Reviewed by Darin Adler.
We forgot to shrink-wrap the RuleFeatureSet in DocumentRuleSets
after collecting the document-wide features.
* css/DocumentRuleSets.cpp:
(WebCore::DocumentRuleSets::collectFeatures):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (204240 => 204241)
--- trunk/Source/WebCore/ChangeLog 2016-08-07 07:40:41 UTC (rev 204240)
+++ trunk/Source/WebCore/ChangeLog 2016-08-07 17:05:51 UTC (rev 204241)
@@ -1,3 +1,16 @@
+2016-08-07 Andreas Kling <akl...@apple.com>
+
+ DocumentRuleSets::collectFeatures() should shrink-to-fit.
+ <https://webkit.org/b/160646>
+
+ Reviewed by Darin Adler.
+
+ We forgot to shrink-wrap the RuleFeatureSet in DocumentRuleSets
+ after collecting the document-wide features.
+
+ * css/DocumentRuleSets.cpp:
+ (WebCore::DocumentRuleSets::collectFeatures):
+
2016-08-06 Gyuyoung Kim <gyuyoung....@webkit.org>
Purge all uses of PassRefPtr in WebCore/Modules
Modified: trunk/Source/WebCore/css/DocumentRuleSets.cpp (204240 => 204241)
--- trunk/Source/WebCore/css/DocumentRuleSets.cpp 2016-08-07 07:40:41 UTC (rev 204240)
+++ trunk/Source/WebCore/css/DocumentRuleSets.cpp 2016-08-07 17:05:51 UTC (rev 204241)
@@ -120,6 +120,8 @@
m_ancestorClassRuleSets.clear();
m_ancestorAttributeRuleSetsForHTML.clear();
+
+ m_features.shrinkToFit();
}
RuleSet* DocumentRuleSets::ancestorClassRules(AtomicStringImpl* className) const
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes