Pack RenderLayer harder.
authorakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 14 Jan 2014 10:35:35 +0000 (10:35 +0000)
committerakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 14 Jan 2014 10:35:35 +0000 (10:35 +0000)
commit496af963639064c88e8ebb5e9141a8c4faeb04d9
treee2a021c656ffed3c215df0c447be64fb345733b1
parentd12ca009ef72fbbd0c8d457102ec84f80b4f322d
Pack RenderLayer harder.
<https://webkit.org/b/126967>

Re-arrange the members of ScrollableArea a bit so that RenderLayer
can combine its bitfields with the ones in ScrollableArea.
This makes RenderLayer fit into a snugger size class, saving 32 bytes
per layer.

296 kB progression on Membuster3.

Reviewed by Antti Koivisto.

* platform/ScrollableArea.cpp:
* platform/ScrollableArea.h:

    Put bitfield members at the end of ScrollableArea so inheriting
    classes can synergize with the padding.

* rendering/RenderLayer.h:

    Make m_blendMode a bitfield to avoid bloating the class.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@161954 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/ScrollableArea.cpp
Source/WebCore/platform/ScrollableArea.h
Source/WebCore/rendering/RenderLayer.h