Changeset 204241 in webkit


Ignore:
Timestamp:
Aug 7, 2016 10:05:51 AM (8 years ago)
Author:
akling@apple.com
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):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r204239 r204241  
     12016-08-07  Andreas Kling  <akling@apple.com>
     2
     3        DocumentRuleSets::collectFeatures() should shrink-to-fit.
     4        <https://webkit.org/b/160646>
     5
     6        Reviewed by Darin Adler.
     7
     8        We forgot to shrink-wrap the RuleFeatureSet in DocumentRuleSets
     9        after collecting the document-wide features.
     10
     11        * css/DocumentRuleSets.cpp:
     12        (WebCore::DocumentRuleSets::collectFeatures):
     13
    1142016-08-06  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
    215
  • trunk/Source/WebCore/css/DocumentRuleSets.cpp

    r204220 r204241  
    121121    m_ancestorClassRuleSets.clear();
    122122    m_ancestorAttributeRuleSetsForHTML.clear();
     123
     124    m_features.shrinkToFit();
    123125}
    124126
Note: See TracChangeset for help on using the changeset viewer.