[Webkit-unassigned] [Bug 193058] clang-tidy: Save 8 padding bytes on WebCore::BorderEdge

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Dec 29 16:55:32 PST 2018


https://bugs.webkit.org/show_bug.cgi?id=193058

--- Comment #1 from David Kilzer (:ddkilzer) <ddkilzer at webkit.org> ---
$ ./Tools/Scripts/dump-class-layout -c Release -a x86_64 -b $BUILD_DIR WebCore WebCore::BorderEdge
  +0 < 32> BorderEdge
  +0 <  4>     WebCore::LayoutUnit m_width
  +0 <  4>       int m_value
  +4 <  4>   <PADDING: 4 bytes>
  +8 <  8>     WebCore::Color m_color
  +8 <  8>       WebCore::Color::(anonymous union) m_colorData
 +16 <  1>   WebCore::BorderStyle m_style
 +17 <  1>   bool m_isTransparent
 +18 <  1>   bool m_isPresent
 +19 <  1>   <PADDING: 1 byte>
 +20 <  4>   float m_flooredToDevicePixelWidth
 +24 <  4>   float m_devicePixelRatio
 +28 <  4>   <PADDING: 4 bytes>
Total byte size: 32
Total pad bytes: 9
Padding percentage: 28.12 %

Removing 8 padding bytes would make the class 24 bytes.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20181230/79ef1966/attachment.html>


More information about the webkit-unassigned mailing list