Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(275)

Unified Diff: sky/engine/bindings/core/v8/custom/V8HTMLCanvasElementCustom.cpp

Issue 731863003: Remove CSSCompositing (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: preland Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sky/engine/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/bindings/core/v8/custom/V8HTMLCanvasElementCustom.cpp
diff --git a/sky/engine/bindings/core/v8/custom/V8HTMLCanvasElementCustom.cpp b/sky/engine/bindings/core/v8/custom/V8HTMLCanvasElementCustom.cpp
index 2a93f4ac20ff71bee4323df51ad9d1d283042bc1..8cdbfbb80283831def8238c1db85fea59249440e 100644
--- a/sky/engine/bindings/core/v8/custom/V8HTMLCanvasElementCustom.cpp
+++ b/sky/engine/bindings/core/v8/custom/V8HTMLCanvasElementCustom.cpp
@@ -83,12 +83,6 @@ void V8HTMLCanvasElement::getContextMethodCustom(const v8::FunctionCallbackInfo<
attributes = webGLAttributes;
} else {
RefPtr<Canvas2DContextAttributes> canvas2DAttributes = Canvas2DContextAttributes::create();
- if (info.Length() > 1 && info[1]->IsObject()) {
- v8::Handle<v8::Object> jsAttributes = info[1]->ToObject();
- v8::Handle<v8::String> alpha = v8AtomicString(isolate, "alpha");
- if (jsAttributes->Has(alpha) && !isUndefinedOrNull(jsAttributes->Get(alpha)))
- canvas2DAttributes->setAlpha(jsAttributes->Get(alpha)->BooleanValue());
- }
attributes = canvas2DAttributes;
}
CanvasRenderingContext* result = impl->getContext(contextId, attributes.get());
« no previous file with comments | « no previous file | sky/engine/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698