Changeset 159104 in webkit
- Timestamp:
- Nov 12, 2013 6:40:29 AM (10 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r159100 r159104 1 2013-11-11 Andreas Kling <akling@apple.com> 2 3 Elements with class names automatically get unique ElementData. 4 <https://webkit.org/b/124184> 5 6 We were calling Element::ensureUniqueElementData() for all Elements 7 with a non-empty list of class names. Doing that on parser-fresh 8 Elements caused us to upgrade them to UniqueElementData despite not 9 needing it (ElementData::setClass() is a const function for caching 10 the "cooked" class and can be called on ShareableElementData.) 11 12 1.09 MB progression on HTML5 spec at <http://whatwg.org/c> 13 14 Reviewed by Antti Koivisto. 15 1 16 2013-11-12 Zan Dobersek <zdobersek@igalia.com> 2 17 -
trunk/Source/WebCore/dom/Element.cpp
r159036 r159104 1198 1198 if (classStringHasClassName(newClassString)) { 1199 1199 const bool shouldFoldCase = document().inQuirksMode(); 1200 const SpaceSplitString oldClasses = ensureUniqueElementData().classNames(); 1200 // Note: We'll need ElementData, but it doesn't have to be UniqueElementData. 1201 if (!elementData()) 1202 ensureUniqueElementData(); 1203 const SpaceSplitString oldClasses = elementData()->classNames(); 1201 1204 elementData()->setClass(newClassString, shouldFoldCase); 1202 1205 const SpaceSplitString& newClasses = elementData()->classNames();
Note: See TracChangeset
for help on using the changeset viewer.