Add a runtime feature flag for ImageBitmap and OffscreenCanvas
authordino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 11 Dec 2017 18:07:48 +0000 (18:07 +0000)
committerdino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 11 Dec 2017 18:07:48 +0000 (18:07 +0000)
commit9c55b5f1dfcda23bb00efe088b52c45e9feb28e4
tree5f2b2504f97e20cc9d17913e5a78a9a231a422ec
parent83b38399828f61b70855c0587d85ad4bc6a97352
Add a runtime feature flag for ImageBitmap and OffscreenCanvas
https://bugs.webkit.org/show_bug.cgi?id=180652
<rdar://problem/35969611>

Reviewed by Antoine Quint.

Source/WebCore:

Add a RuntimeEnabledFeature for these interfaces, and link the bindings
to the feature.

Test: fast/canvas/offscreen-enabled.html

* bindings/js/WebCoreBuiltinNames.h:
* html/ImageBitmap.idl:
* html/OffscreenCanvas.idl:
* page/RuntimeEnabledFeatures.h:
(WebCore::RuntimeEnabledFeatures::setImageBitmapOffscreenCanvasEnabled):
(WebCore::RuntimeEnabledFeatures::imageBitmapOffscreenCanvasEnabled const):
* page/WindowOrWorkerGlobalScope.idl:

Source/WebKit:

Add an experimental feature flag for these interfaces.

* Shared/WebPreferences.yaml:

Websites/webkit.org:

Simple test to validate if these interfaces are enabled.

* experimental-features.html:

LayoutTests:

* fast/canvas/offscreen-enabled-expected.txt: Added.
* fast/canvas/offscreen-enabled.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@225746 268f45cc-cd09-0410-ab3c-d52691b4dbfc
13 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/canvas/offscreen-enabled-expected.txt [new file with mode: 0644]
LayoutTests/fast/canvas/offscreen-enabled.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/bindings/js/WebCoreBuiltinNames.h
Source/WebCore/html/ImageBitmap.idl
Source/WebCore/html/OffscreenCanvas.idl
Source/WebCore/page/RuntimeEnabledFeatures.h
Source/WebCore/page/WindowOrWorkerGlobalScope.idl
Source/WebKit/ChangeLog
Source/WebKit/Shared/WebPreferences.yaml
Websites/webkit.org/ChangeLog
Websites/webkit.org/experimental-features.html