WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 179633
[css-grid] Refactoring and new namespace with grid related utility functions
https://bugs.webkit.org/show_bug.cgi?id=179633
Summary
[css-grid] Refactoring and new namespace with grid related utility functions
Javier Fernandez
Reported
2017-11-13 13:48:21 PST
[css-grid] Refactoring and new Grid utility class
Attachments
Patch
(28.19 KB, patch)
2017-11-13 13:49 PST
,
Javier Fernandez
no flags
Details
Formatted Diff
Diff
Patch
(30.67 KB, patch)
2017-11-13 13:55 PST
,
Javier Fernandez
no flags
Details
Formatted Diff
Diff
Patch
(28.27 KB, patch)
2017-11-20 14:12 PST
,
Javier Fernandez
no flags
Details
Formatted Diff
Diff
Patch
(30.29 KB, patch)
2017-11-21 06:33 PST
,
Javier Fernandez
no flags
Details
Formatted Diff
Diff
Patch
(31.34 KB, patch)
2017-11-21 07:21 PST
,
Javier Fernandez
no flags
Details
Formatted Diff
Diff
Patch
(31.87 KB, patch)
2017-11-22 12:36 PST
,
Javier Fernandez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(5)
View All
Add attachment
proposed patch, testcase, etc.
Javier Fernandez
Comment 1
2017-11-13 13:49:59 PST
Created
attachment 326794
[details]
Patch
Javier Fernandez
Comment 2
2017-11-13 13:55:08 PST
Created
attachment 326795
[details]
Patch
Javier Fernandez
Comment 3
2017-11-20 14:12:04 PST
Created
attachment 327373
[details]
Patch
Darin Adler
Comment 4
2017-11-20 16:22:48 PST
Comment on
attachment 327373
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=327373&action=review
The name "Utils" goes against WebKit programming tradition; we try to steer clear of the concept "utilities" and we also don’t abbreviate words with things like "utils" if we can avoid it. It’s also not best style to use a class just as a namespace for some functions. I suggest just naming this GridLayout, or if that really seems wrong, GridLayoutFunctions (as with LengthFunctions). And we should use a namespace rather than a class. Otherwise this seems fine, but please upload a version that builds.
> Source/WebCore/rendering/GridLayoutUtils.cpp:25 > + */ > +#include "config.h"
Missing blank line.
Javier Fernandez
Comment 5
2017-11-21 06:33:35 PST
Created
attachment 327406
[details]
Patch
Darin Adler
Comment 6
2017-11-21 07:09:30 PST
> Source/WebCore/rendering/RenderBlockLineLayout.cpp:1335:122: error: invalid use of incomplete type ‘class WebCore::LayoutState’
This means RenderBlockLineLayout.cpp is missing include of "LayoutState.h", hidden by unified build file grouping.
> Source/WebCore/rendering/RootInlineBox.cpp:339:44: error: invalid use of incomplete type ‘class WebCore::LayoutState’
Same problem in RootInlineBox.cpp. If you add those two includes to your patch, should fix the build errors.
Darin Adler
Comment 7
2017-11-21 07:10:07 PST
Or you could check in a separate patch with just those includes.
Javier Fernandez
Comment 8
2017-11-21 07:17:30 PST
(In reply to Darin Adler from
comment #7
)
> Or you could check in a separate patch with just those includes.
Adding an include to LayoutState.h in the mentioned files indeed solves the compilation errors. However, I wonder why only fail with my patch. Would adding a new file to the Source.txt file cause such errors ? Should we expect more like that in the future ? Is expectable that we will have to add additional headers as we made changes in the Source.txt, which may lead to changes in the compilation units ? I can add those extra includes in this patch, but such changes seems totally unrelated to the patch.
Javier Fernandez
Comment 9
2017-11-21 07:21:45 PST
Created
attachment 327409
[details]
Patch Added additional header include directive to fix unified build.
Michael Catanzaro
Comment 10
2017-11-21 07:53:09 PST
Yes, adding a new source file changes the groupings of which files build together, so failures like this are expected. Of course, these missing includes were preexisting bugs that could have been mitigated if a tool like include-what-you-use was integrated with the style checker.
Darin Adler
Comment 11
2017-11-21 08:43:05 PST
Windows build shows additional errors of the same type due to the unified build. rendering/RenderMediaControls.cpp(45): error C2065: 'MediaSliderThumb': undeclared identifier rendering/RenderMediaControls.cpp(48): error C2065: 'MediaVolumeSliderThumb': undeclared identifier rendering/RenderMediaControls.cpp(51): error C2065: 'MediaFullScreenVolumeSliderThumb': undeclared identifier In this case the missing header is MediaControlElementTypes.h.
Javier Fernandez
Comment 12
2017-11-22 12:36:03 PST
Created
attachment 327469
[details]
Patch Added additional header include directive to fix unified build on win.
WebKit Commit Bot
Comment 13
2017-11-22 15:46:19 PST
Comment on
attachment 327469
[details]
Patch Clearing flags on attachment: 327469 Committed
r225104
: <
https://trac.webkit.org/changeset/225104
>
WebKit Commit Bot
Comment 14
2017-11-22 15:46:20 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 15
2017-11-22 15:47:19 PST
<
rdar://problem/35670404
>
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