Changeset 275609 in webkit
- Timestamp:
- Apr 7, 2021 9:56:14 AM (3 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r275607 r275609 1 2021-04-07 Simon Fraser <simon.fraser@apple.com> 2 3 Wasted vector capacity in StyleSheetContents 4 https://bugs.webkit.org/show_bug.cgi?id=224250 5 6 Reviewed by Darin Adler. 7 8 Call shrinkToFit() on the StyleSheetContents created in CSSParserImpl::parseStyleSheet() 9 in order to shrink m_importRules and m_childRules, which can waste about 100KB on 10 youtube.com. 11 12 * css/parser/CSSParserImpl.cpp: 13 (WebCore::CSSParserImpl::parseStyleSheet): 14 1 15 2021-04-07 Zalan Bujtas <zalan@apple.com> 2 16 -
trunk/Source/WebCore/css/parser/CSSParserImpl.cpp
r275479 r275609 252 252 }); 253 253 styleSheet->setHasSyntacticallyValidCSSHeader(firstRuleValid); 254 styleSheet->shrinkToFit(); 254 255 parser.adoptTokenizerEscapedStrings(); 255 256 }
Note: See TracChangeset
for help on using the changeset viewer.