Bug 169082 - Enable fieldsets to be flex boxes and grids
Summary: Enable fieldsets to be flex boxes and grids
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Dave Hyatt
URL:
Keywords: InRadar
: 148826 (view as bug list)
Depends on: 169169
Blocks:
  Show dependency treegraph
 
Reported: 2017-03-02 08:12 PST by Dave Hyatt
Modified: 2017-03-06 10:08 PST (History)
11 users (show)

See Also:


Attachments
Patch (123.54 KB, patch)
2017-03-03 11:50 PST, Dave Hyatt
simon.fraser: review+
Details | Formatted Diff | Diff
Patch for EWS to make sure GTK builds (124.47 KB, patch)
2017-03-06 09:00 PST, Dave Hyatt
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Hyatt 2017-03-02 08:12:59 PST
Enable fieldsets to be flex boxes and grids.
Comment 1 Dave Hyatt 2017-03-03 11:50:24 PST
Created attachment 303332 [details]
Patch
Comment 2 Dave Hyatt 2017-03-03 12:01:35 PST
*** Bug 148826 has been marked as a duplicate of this bug. ***
Comment 3 Simon Fraser (smfr) 2017-03-03 12:04:11 PST
Comment on attachment 303332 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=303332&action=review

> Source/WebCore/rendering/OrderIterator.cpp:80
> +bool OrderIterator::shouldSkipChild(const RenderObject* child) const

This should take a reference.

> Source/WebCore/rendering/OrderIterator.h:75
> +    bool collectChild(const RenderBox&);

Please add a comment saying what the return value means.

> Source/WebCore/rendering/RenderBlock.cpp:1699
> +    

Trailing whitespace (gasp!)

> Source/WebCore/rendering/RenderBlock.cpp:2766
> +            int legendMinWidth = legend->minPreferredLogicalWidth();

Why int and not LayoutUnit? Darin would say that auto would have avoided this.

> Source/WebCore/rendering/RenderBlock.cpp:3939
> +    

Whitespace

> Source/WebCore/rendering/RenderBlock.h:400
> +    enum FieldsetFindLegendOption { FieldsetIgnoreFloatingOrOutOfFlow, FieldsetIncludeFloatingOrOutOfFlow };

enum class?

> Source/WebCore/rendering/RenderBlockFlow.h:475
> +    void layoutExcludedChildren(bool /*relayoutChildren*/) override;

No need to comment out the param name.

> Source/WebCore/rendering/RenderTable.cpp:782
> +    

whitespace
Comment 4 Dave Hyatt 2017-03-03 13:16:04 PST
Landed in r213379.
Comment 5 Carlos Alberto Lopez Perez 2017-03-03 21:11:48 PST
(In reply to comment #4)
> Landed in r213379.

This broke the GTK+ build:

Source/WebCore/accessibility/atk/WebKitAccessibleWrapperAtk.cpp:189:22: error: no viable conversion from 'WebCore::RenderElement' to 'WebCore::RenderBlock *'
        RenderBlock* renderFieldset = *coreObject->renderer()->parent();
                     ^                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.


https://build.webkit.org/builders/GTK%20Linux%2064-bit%20Release%20%28Build%29/builds/77905/steps/compile-webkit/logs/stdio
Comment 6 Michael Catanzaro 2017-03-04 09:10:27 PST
Windows too:

C:\cygwin\home\buildbot\WebKit\Source\WebCore\rendering\RenderingAllInOne.cpp(65): fatal error C1083: Cannot open include file: 'RenderFieldset.cpp': No such file or directory [C:\cygwin\home\buildbot\WebKit\WebKitBuild\Release\Source\WebCore\WebCore.vcxproj]
Comment 7 WebKit Commit Bot 2017-03-04 09:11:53 PST
Re-opened since this is blocked by bug 169169
Comment 8 m.kurz+webkitbugs 2017-03-06 03:19:14 PST
Bug 169169 has been closed - so this one can be closed as well?
Comment 9 Dave Hyatt 2017-03-06 09:00:45 PST
Created attachment 303518 [details]
Patch for EWS to make sure GTK builds
Comment 10 Dave Hyatt 2017-03-06 09:01:40 PST
(In reply to comment #8)
> Bug 169169 has been closed - so this one can be closed as well?

No, this got rolled out. Will re-land once I am sure it won't break GTK.
Comment 11 Dave Hyatt 2017-03-06 10:00:49 PST
Re-landed in 213455.
Comment 12 Jon Lee 2017-03-06 10:08:39 PST
rdar://problem/22607417