OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007-2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2007-2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 return throwError(ec); | 81 return throwError(ec); |
82 | 82 |
83 return V8Proxy::ToV8Object(V8ClassIndex::XPATHRESULT, result.get()); | 83 return V8Proxy::ToV8Object(V8ClassIndex::XPATHRESULT, result.get()); |
84 } | 84 } |
85 | 85 |
86 CALLBACK_FUNC_DECL(DocumentGetCSSCanvasContext) | 86 CALLBACK_FUNC_DECL(DocumentGetCSSCanvasContext) |
87 { | 87 { |
88 INC_STATS("DOM.Document.getCSSCanvasContext"); | 88 INC_STATS("DOM.Document.getCSSCanvasContext"); |
89 v8::Handle<v8::Value> holder = args.Holder(); | 89 v8::Handle<v8::Value> holder = args.Holder(); |
90 Document* imp = V8Proxy::DOMWrapperToNode<Document>(holder); | 90 Document* imp = V8Proxy::DOMWrapperToNode<Document>(holder); |
91 String contextId = ToWebCoreString(args[0]); | 91 String contextId = toWebCoreString(args[0]); |
92 String name = ToWebCoreString(args[1]); | 92 String name = toWebCoreString(args[1]); |
93 int width = ToInt32(args[2]); | 93 int width = toInt32(args[2]); |
94 int height = ToInt32(args[3]); | 94 int height = toInt32(args[3]); |
95 CanvasRenderingContext2D* result = imp->getCSSCanvasContext(contextId, name,
width, height); | 95 CanvasRenderingContext2D* result = imp->getCSSCanvasContext(contextId, name,
width, height); |
96 return V8Proxy::ToV8Object(V8ClassIndex::CANVASRENDERINGCONTEXT2D, result); | 96 return V8Proxy::ToV8Object(V8ClassIndex::CANVASRENDERINGCONTEXT2D, result); |
97 } | 97 } |
98 | 98 |
99 } // namespace WebCore | 99 } // namespace WebCore |
OLD | NEW |