Title: [236105] releases/WebKitGTK/webkit-2.22/Source/WebCore
- Revision
- 236105
- Author
- [email protected]
- Date
- 2018-09-18 02:15:56 -0700 (Tue, 18 Sep 2018)
Log Message
Merge r235357 - Shrink size of HTMLCollection
https://bugs.webkit.org/show_bug.cgi?id=188945
Reviewed by Darin Adler.
Shrink the size of HTMLCollection by reordering members.
No behavior change.
* html/HTMLCollection.cpp:
(WebCore::HTMLCollection::HTMLCollection):
* html/HTMLCollection.h:
Modified Paths
Diff
Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/ChangeLog (236104 => 236105)
--- releases/WebKitGTK/webkit-2.22/Source/WebCore/ChangeLog 2018-09-18 09:14:31 UTC (rev 236104)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/ChangeLog 2018-09-18 09:15:56 UTC (rev 236105)
@@ -1,5 +1,20 @@
2018-08-25 Yusuke Suzuki <[email protected]>
+ Shrink size of HTMLCollection
+ https://bugs.webkit.org/show_bug.cgi?id=188945
+
+ Reviewed by Darin Adler.
+
+ Shrink the size of HTMLCollection by reordering members.
+
+ No behavior change.
+
+ * html/HTMLCollection.cpp:
+ (WebCore::HTMLCollection::HTMLCollection):
+ * html/HTMLCollection.h:
+
+2018-08-25 Yusuke Suzuki <[email protected]>
+
Shrink size of XMLHttpRequest
https://bugs.webkit.org/show_bug.cgi?id=188944
Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/html/HTMLCollection.cpp (236104 => 236105)
--- releases/WebKitGTK/webkit-2.22/Source/WebCore/html/HTMLCollection.cpp 2018-09-18 09:14:31 UTC (rev 236104)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/html/HTMLCollection.cpp 2018-09-18 09:15:56 UTC (rev 236105)
@@ -108,10 +108,10 @@
}
HTMLCollection::HTMLCollection(ContainerNode& ownerNode, CollectionType type)
- : m_ownerNode(ownerNode)
- , m_collectionType(type)
+ : m_collectionType(type)
, m_invalidationType(invalidationTypeExcludingIdAndNameAttributes(type))
, m_rootType(rootTypeFromCollectionType(type))
+ , m_ownerNode(ownerNode)
{
ASSERT(m_rootType == static_cast<unsigned>(rootTypeFromCollectionType(type)));
ASSERT(m_invalidationType == static_cast<unsigned>(invalidationTypeExcludingIdAndNameAttributes(type)));
Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/html/HTMLCollection.h (236104 => 236105)
--- releases/WebKitGTK/webkit-2.22/Source/WebCore/html/HTMLCollection.h 2018-09-18 09:14:31 UTC (rev 236104)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/html/HTMLCollection.h 2018-09-18 09:15:56 UTC (rev 236105)
@@ -101,14 +101,15 @@
enum RootType { IsRootedAtNode, IsRootedAtDocument };
static RootType rootTypeFromCollectionType(CollectionType);
- Ref<ContainerNode> m_ownerNode;
+ mutable Lock m_namedElementCacheAssignmentLock;
- mutable std::unique_ptr<CollectionNamedElementCache> m_namedElementCache;
- mutable Lock m_namedElementCacheAssignmentLock;
-
const unsigned m_collectionType : 5;
const unsigned m_invalidationType : 4;
const unsigned m_rootType : 1;
+
+ Ref<ContainerNode> m_ownerNode;
+
+ mutable std::unique_ptr<CollectionNamedElementCache> m_namedElementCache;
};
inline ContainerNode& HTMLCollection::rootNode() const
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes