⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 235357 in webkit


Ignore:
Timestamp:
Aug 27, 2018, 1:52:40 AM (8 years ago)
Author:
yusukesuzuki@slowstart.org
Message:

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:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r235355 r235357  
     12018-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
    1162018-08-25  Yusuke Suzuki  <yusukesuzuki@slowstart.org>
    217
  • trunk/Source/WebCore/html/HTMLCollection.cpp

    r219460 r235357  
    109109
    110110HTMLCollection::HTMLCollection(ContainerNode& ownerNode, CollectionType type)
    111     : m_ownerNode(ownerNode)
    112     , m_collectionType(type)
     111    : m_collectionType(type)
    113112    , m_invalidationType(invalidationTypeExcludingIdAndNameAttributes(type))
    114113    , m_rootType(rootTypeFromCollectionType(type))
     114    , m_ownerNode(ownerNode)
    115115{
    116116    ASSERT(m_rootType == static_cast<unsigned>(rootTypeFromCollectionType(type)));
  • trunk/Source/WebCore/html/HTMLCollection.h

    r219460 r235357  
    102102    static RootType rootTypeFromCollectionType(CollectionType);
    103103
    104     Ref<ContainerNode> m_ownerNode;
    105 
    106     mutable std::unique_ptr<CollectionNamedElementCache> m_namedElementCache;
    107104    mutable Lock m_namedElementCacheAssignmentLock;
    108    
     105
    109106    const unsigned m_collectionType : 5;
    110107    const unsigned m_invalidationType : 4;
    111108    const unsigned m_rootType : 1;
     109
     110    Ref<ContainerNode> m_ownerNode;
     111
     112    mutable std::unique_ptr<CollectionNamedElementCache> m_namedElementCache;
    112113};
    113114
Note: See TracChangeset for help on using the changeset viewer.