Changeset 235357 in webkit
- Timestamp:
- Aug 27, 2018, 1:52:40 AM (8 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
html/HTMLCollection.cpp (modified) (1 diff)
-
html/HTMLCollection.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r235355 r235357 1 2018-08-25 Yusuke Suzuki <yusukesuzuki@slowstart.org> 2 3 Shrink size of HTMLCollection 4 https://bugs.webkit.org/show_bug.cgi?id=188945 5 6 Reviewed by Darin Adler. 7 8 Shrink the size of HTMLCollection by reordering members. 9 10 No behavior change. 11 12 * html/HTMLCollection.cpp: 13 (WebCore::HTMLCollection::HTMLCollection): 14 * html/HTMLCollection.h: 15 1 16 2018-08-25 Yusuke Suzuki <yusukesuzuki@slowstart.org> 2 17 -
trunk/Source/WebCore/html/HTMLCollection.cpp
r219460 r235357 109 109 110 110 HTMLCollection::HTMLCollection(ContainerNode& ownerNode, CollectionType type) 111 : m_ownerNode(ownerNode) 112 , m_collectionType(type) 111 : m_collectionType(type) 113 112 , m_invalidationType(invalidationTypeExcludingIdAndNameAttributes(type)) 114 113 , m_rootType(rootTypeFromCollectionType(type)) 114 , m_ownerNode(ownerNode) 115 115 { 116 116 ASSERT(m_rootType == static_cast<unsigned>(rootTypeFromCollectionType(type))); -
trunk/Source/WebCore/html/HTMLCollection.h
r219460 r235357 102 102 static RootType rootTypeFromCollectionType(CollectionType); 103 103 104 Ref<ContainerNode> m_ownerNode;105 106 mutable std::unique_ptr<CollectionNamedElementCache> m_namedElementCache;107 104 mutable Lock m_namedElementCacheAssignmentLock; 108 105 109 106 const unsigned m_collectionType : 5; 110 107 const unsigned m_invalidationType : 4; 111 108 const unsigned m_rootType : 1; 109 110 Ref<ContainerNode> m_ownerNode; 111 112 mutable std::unique_ptr<CollectionNamedElementCache> m_namedElementCache; 112 113 }; 113 114
Note:
See TracChangeset
for help on using the changeset viewer.