Commit 7ccea399 authored by roger_fong@apple.com's avatar roger_fong@apple.com

Unreviewed. WebGLLoadPolicy::WebGLAsk is an unnecessary value.

* html/HTMLCanvasElement.cpp:
(WebCore::HTMLCanvasElement::getContext):
* loader/FrameLoaderTypes.h:
* UIProcess/API/C/WKAPICast.h:
(WebKit::toWebGLLoadPolicy):
* UIProcess/API/C/WKPageLoaderClient.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162483 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 4cba4084
2014-01-21 Roger Fong <roger_fong@apple.com>
Unreviewed. WebGLLoadPolicy::WebGLAsk is an unnecessary value.
* html/HTMLCanvasElement.cpp:
(WebCore::HTMLCanvasElement::getContext):
* loader/FrameLoaderTypes.h:
2014-01-21 Simon Fraser <simon.fraser@apple.com>
Remove #if PLATFORM(IOS) in various places around customFixedPositionLayoutRect() code
......@@ -230,9 +230,6 @@ CanvasRenderingContext* HTMLCanvasElement::getContext(const String& type, Canvas
if (page && !document().url().isLocalFile()) {
WebGLLoadPolicy policy = page->mainFrame().loader().client().webGLPolicyForURL(document().url());
if (policy == WebGLAsk)
return nullptr;
if (policy == WebGLBlock)
return nullptr;
}
......
......@@ -107,9 +107,8 @@ namespace WebCore {
};
enum WebGLLoadPolicy {
WebGLAsk = 0,
WebGLAllow,
WebGLBlock
WebGLBlock = 0,
WebGLAllow
};
}
......
2014-01-21 Roger Fong <roger_fong@apple.com>
Unreviewed. WebGLLoadPolicy::WebGLAsk is an unnecessary value.
* UIProcess/API/C/WKAPICast.h:
(WebKit::toWebGLLoadPolicy):
* UIProcess/API/C/WKPageLoaderClient.h:
2014-01-21 Anders Carlsson <andersca@apple.com>
Make all the WebKit2 headers private and move Cocoa UIProcess API headers to a Deprecated group
......
......@@ -480,8 +480,6 @@ inline PluginModuleLoadPolicy toPluginModuleLoadPolicy(WKPluginLoadPolicy plugin
inline WebCore::WebGLLoadPolicy toWebGLLoadPolicy(WKWebGLLoadPolicy webGLLoadPolicy)
{
switch (webGLLoadPolicy) {
case kWKWebGLLoadPolicyInactive:
return WebCore::WebGLAsk;
case kWKWebGLLoadPolicyLoadNormally:
return WebCore::WebGLAllow;
case kWKWebGLLoadPolicyBlocked:
......
......@@ -43,9 +43,8 @@ enum {
typedef uint32_t WKPluginLoadPolicy;
enum {
kWKWebGLLoadPolicyInactive = 0,
kWKWebGLLoadPolicyBlocked = 0,
kWKWebGLLoadPolicyLoadNormally,
kWKWebGLLoadPolicyBlocked
};
typedef uint32_t WKWebGLLoadPolicy;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment