Tidy up data memebers of FrameView and related classes to shrink class sizes
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 3 Feb 2019 00:16:44 +0000 (00:16 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 3 Feb 2019 00:16:44 +0000 (00:16 +0000)
commit838edefe9ca8de5f41f41062acec60502558b9de
treec3494730c34d9c2b0755fae26dec01b56b1eb1fa
parent6ed226d725dc55db9d4a94d6276473bdfcd4e596
Tidy up data memebers of FrameView and related classes to shrink class sizes
https://bugs.webkit.org/show_bug.cgi?id=194197

Reviewed by Zalan Bujtas.

Source/WebCore:

Make various enums 8-bit. Re-order data members of FrameView, FrameViewLayoutContext, Widget
and ScrollView to optimize padding.

Use more data member initializers.

This shrinks FrameView from 1168 (144 padding bytes) to 1096 (96 padding bytes).

* dom/Element.h:
* page/FrameView.cpp:
(WebCore::FrameView::FrameView):
* page/FrameView.h:
* page/FrameViewLayoutContext.h:
* platform/ScrollTypes.h:
* platform/ScrollView.h: Data members should come after member functions.
* platform/Widget.h:
* rendering/Pagination.h:
(WebCore::Pagination::Pagination): Deleted.

Source/WebKit:

* UIProcess/PageClient.h: Declare enum size.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@240901 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/dom/Element.h
Source/WebCore/page/FrameView.cpp
Source/WebCore/page/FrameView.h
Source/WebCore/page/FrameViewLayoutContext.h
Source/WebCore/platform/ScrollTypes.h
Source/WebCore/platform/ScrollView.h
Source/WebCore/platform/Widget.h
Source/WebCore/rendering/Pagination.h
Source/WebKit/ChangeLog
Source/WebKit/UIProcess/PageClient.h