Bug 186105 - Fix the ENABLE(DATALIST_ELEMENT) build
Summary: Fix the ENABLE(DATALIST_ELEMENT) build
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: WebKit Nightly Build
Hardware: Mac macOS 10.13
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-05-30 11:33 PDT by Aditya Keerthi
Modified: 2018-05-31 22:42 PDT (History)
6 users (show)

See Also:


Attachments
Patch (7.47 KB, patch)
2018-05-30 11:57 PDT, Aditya Keerthi
no flags Details | Formatted Diff | Diff
Patch (7.37 KB, patch)
2018-05-30 12:26 PDT, Aditya Keerthi
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aditya Keerthi 2018-05-30 11:33:31 PDT
If the DATALIST_ELEMENT flag is active, WebCore, WebKit and WebKitLegacy all fail to build.
Comment 1 Aditya Keerthi 2018-05-30 11:57:34 PDT
Created attachment 341589 [details]
Patch
Comment 2 Wenson Hsieh 2018-05-30 12:18:17 PDT
Comment on attachment 341589 [details]
Patch

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

> Source/WebKit/WebProcess/Automation/WebAutomationSessionProxy.cpp:52
> +#include <WebCore/HTMLDataListElement.h>

Super minor nit — we generally prefer to put conditional header includes like this after the last unconditional header include (in this case, after `#include <wtf/UUID.h>`).
Comment 3 Aditya Keerthi 2018-05-30 12:26:31 PDT
Created attachment 341593 [details]
Patch
Comment 4 WebKit Commit Bot 2018-05-30 13:35:17 PDT
Comment on attachment 341593 [details]
Patch

Clearing flags on attachment: 341593

Committed r232306: <https://trac.webkit.org/changeset/232306>
Comment 5 WebKit Commit Bot 2018-05-30 13:35:18 PDT
All reviewed patches have been landed.  Closing bug.
Comment 6 Radar WebKit Bug Importer 2018-05-30 13:36:49 PDT
<rdar://problem/40661409>
Comment 7 Darin Adler 2018-05-30 21:13:15 PDT
Comment on attachment 341593 [details]
Patch

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

> Source/WebCore/rendering/RenderTheme.cpp:-1003
> -    auto* dataList = downcast<HTMLDataListElement>(input.list());

I don’t understand the rationale for the changes in this file. None of them seem to be needed.
Comment 8 Aditya Keerthi 2018-05-31 09:24:15 PDT
(In reply to Darin Adler from comment #7)
> Comment on attachment 341593 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=341593&action=review
> 
> > Source/WebCore/rendering/RenderTheme.cpp:-1003
> > -    auto* dataList = downcast<HTMLDataListElement>(input.list());
> 
> I don’t understand the rationale for the changes in this file. None of them
> seem to be needed.

When attempting to build before the changes, I was met with a "No matching function for call to 'downcast'".

I now realize that I could have changed that specific line to use input.list().get() and kept the rest the same.

Is there a way that you prefer?
Comment 9 Darin Adler 2018-05-31 22:42:33 PDT
(In reply to Aditya Keerthi from comment #8)
> When attempting to build before the changes, I was met with a "No matching
> function for call to 'downcast'".

OK, no strong preference either way.