Bug 170539

Summary: [GTK] Fix build with MEDIA_CAPTURE enabled
Product: WebKit Reporter: Adrian Perez <aperez>
Component: WebKitGTKAssignee: Adrian Perez <aperez>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-noreply, cgarcia, clopez, commit-queue, darin, mcatanzaro, rniwa, sam, xan.lopez
Priority: P2    
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Adrian Perez 2017-04-06 00:21:45 PDT
Enabling MEDIA_CAPTURE (for exaple with “build-webkit --media-capture”) causes
compilation to fail with the following error.

  .../Source/WebKit2/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDeprecated.cpp:
    In function ‘gboolean webkit_dom_html_input_element_get_capture(WebKitDOMHTMLInputElement*)’:
  .../Source/WebKit2/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDeprecated.cpp:168:40:
    error: ‘MediaCaptureTypeNone’ was not declared in this scope
       return item->mediaCaptureType() != MediaCaptureTypeNone;
                                          ^~~~~~~~~~~~~~~~~~~~

The definition is still around, but this code should be using
“WebCore::MediaCaptureTypeNone”. I'll be posting a patch soon.
Comment 1 Adrian Perez 2017-04-06 02:08:21 PDT
Created attachment 306370 [details]
Patch
Comment 2 Carlos Garcia Campos 2017-04-06 02:57:16 PDT
*** Bug 170542 has been marked as a duplicate of this bug. ***
Comment 3 WebKit Commit Bot 2017-04-06 02:58:21 PDT
Comment on attachment 306370 [details]
Patch

Clearing flags on attachment: 306370

Committed r215009: <http://trac.webkit.org/changeset/215009>
Comment 4 WebKit Commit Bot 2017-04-06 02:58:23 PDT
All reviewed patches have been landed.  Closing bug.