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

Changeset 236105 in webkit


Ignore:
Timestamp:
Sep 18, 2018, 2:15:56 AM (8 years ago)
Author:
Carlos Garcia Campos
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:
Location:
releases/WebKitGTK/webkit-2.22/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/ChangeLog

    r236058 r236105  
     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
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/html/HTMLCollection.cpp

    r219460 r236105  
    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)));
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/html/HTMLCollection.h

    r219460 r236105  
    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.