WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
176210
Ensure RenderStyle and SameSizeAsRenderStyle have the same size
https://bugs.webkit.org/show_bug.cgi?id=176210
Summary
Ensure RenderStyle and SameSizeAsRenderStyle have the same size
Daniel Bates
Reported
2017-08-31 20:16:14 PDT
We should look to revert the Apple Windows build fix in <
http://trac.webkit.org/changeset/221469
> (build fix for
bug #176171
). The following is the error that led to change made in
r221469
: [[ c:\cygwin\home\buildbot\slave\win-debug\build\source\webcore\rendering\style\RenderStyle.cpp(84): error C2338: RenderStyle should stay small (compiling source file C:\cygwin\home\buildbot\slave\win-debug\build\Source\WebCore\rendering\style\StyleAllInOne.cpp) [C:\cygwin\home\buildbot\slave\win-debug\build\WebKitBuild\Debug\Source\WebCore\WebCore.vcxproj] ]] <
https://build.webkit.org/builders/Apple%20Win%20Debug%20%28Build%29/builds/3683/steps/compile-webkit/logs/stdio
> This error only occurs on the Apple Windows Debug and Release bots. It does not occur when building on any other port. The Apple Windows Debug and Release bots are using VS 2015. Another data point, Don Olmstead was not able to reproduce this compile-time failure on VS 2015 when building the WinCairo port.
Attachments
For EWS
(1.37 KB, patch)
2017-08-31 20:19 PDT
,
Daniel Bates
no flags
Details
Formatted Diff
Diff
Patch
(1.72 KB, patch)
2017-08-31 23:55 PDT
,
Yoshiaki Jitsukawa
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Daniel Bates
Comment 1
2017-08-31 20:19:26 PDT
Created
attachment 319566
[details]
For EWS I expect this patch to fail on the Windows EWS. This is for my sanity.
Yoshiaki Jitsukawa
Comment 2
2017-08-31 23:05:19 PDT
The size of RenderStyle and SameSizeAsRenderStyle are 0x34 and 0x38 bytes respectively on AppleWin (32 bit). static_assert(sizeof(RenderStyle) == 0x34, "0x34"); static_assert(sizeof(SameSizeAsRenderStyle) == 0x38, "0x38");
Yoshiaki Jitsukawa
Comment 3
2017-08-31 23:27:34 PDT
There's a 4 byte padding between SameSizeAsRenderStyle::m_inheritedFlags and SameSizeAsRenderStyle::m_nonInheritedFlags due to 64 bit align requirement for m_nonInheritedFlags (uint64_t). static_assert(offsetof(SameSizeAsRenderStyle, m_inheritedFlags) == 0x24, "0x24"); static_assert(offsetof(SameSizeAsRenderStyle, m_nonInheritedFlags) == 0x30, "0x30");
Yoshiaki Jitsukawa
Comment 4
2017-08-31 23:55:50 PDT
Created
attachment 319582
[details]
Patch
WebKit Commit Bot
Comment 5
2017-09-01 10:17:36 PDT
Comment on
attachment 319582
[details]
Patch Clearing flags on attachment: 319582 Committed
r221480
: <
http://trac.webkit.org/changeset/221480
>
WebKit Commit Bot
Comment 6
2017-09-01 10:17:37 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 7
2017-09-27 12:43:05 PDT
<
rdar://problem/34693819
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug