Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move data members specific to ElementRareData out of NodeRareData #11131

Merged

Commits on Mar 7, 2023

  1. Move data members specific to ElementRareData out of NodeRareData

    https://bugs.webkit.org/show_bug.cgi?id=253461
    
    Reviewed by Darin Adler.
    
    Move data members specific to ElementRareData out of NodeRareData. Those were
    put in NodeRareData for better packing but we can achieve the same packing by
    reordering data members.
    
    I have verified that sizeof(NodeRareData)=32 and sizeof(ElementRareDate)=232
    before and after my change.
    
    * Source/WebCore/dom/ElementRareData.cpp:
    * Source/WebCore/dom/ElementRareData.h:
    (WebCore::ElementRareData::useTypes const):
    * Source/WebCore/dom/NodeRareData.cpp:
    * Source/WebCore/dom/NodeRareData.h:
    (WebCore::NodeRareData::isElementRareData const):
    (WebCore::NodeRareData::useTypes const):
    (WebCore::NodeRareData::isElementRareData): Deleted.
    
    Canonical link: https://commits.webkit.org/261308@main
    cdumez committed Mar 7, 2023
    Configuration menu
    Copy the full SHA
    11ece51 View commit details
    Browse the repository at this point in the history