Bug 153005

Summary: Add a build flag for custom element
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: DOMAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, kling, koivisto, mcatanzaro, mjs
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 150225    
Attachments:
Description Flags
Adds a build flag none

Description Ryosuke Niwa 2016-01-11 21:32:56 PST
Add a build flag for custom element and enable it by default on Mac and iOS ports.
Comment 1 Ryosuke Niwa 2016-01-11 21:35:07 PST
Created attachment 268745 [details]
Adds a build flag
Comment 2 Alex Christensen 2016-01-11 23:17:51 PST
Comment on attachment 268745 [details]
Adds a build flag

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

> Source/cmake/OptionsEfl.cmake:91
> +WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_CUSTOM_ELEMENTS PRIVATE OFF)

Why efl but no gtk?

> Source/cmake/WebKitFeatures.cmake:93
> +    WEBKIT_OPTION_DEFINE(ENABLE_CUSTOM_ELEMENTS "Toggle custom elements support" PRIVATE OFF)

I guess it doesn't make a difference, because not mentioning it is the same as turning it off.
Comment 3 WebKit Commit Bot 2016-01-12 13:25:49 PST
Comment on attachment 268745 [details]
Adds a build flag

Clearing flags on attachment: 268745

Committed r194921: <http://trac.webkit.org/changeset/194921>
Comment 4 WebKit Commit Bot 2016-01-12 13:25:52 PST
All reviewed patches have been landed.  Closing bug.
Comment 5 Michael Catanzaro 2016-01-12 21:48:50 PST
(In reply to comment #2)
> Why efl but no gtk?

I prefer not to override the default value unless we need it to be different for some GTK-specific reason, see bug #152615, or we want it to be public. Eventually it would make sense for the other ports to do this as well. So not touching OptionsGTK.cmake was correct.

It would be good to clean up the options lists for EFL and Windows and Mac as we have for GTK (and also to think about which options should be public and which private).