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 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. | 3 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 quality = info[1]->NumberValue(); | 142 quality = info[1]->NumberValue(); |
143 qualityPtr = &quality; | 143 qualityPtr = &quality; |
144 } | 144 } |
145 | 145 |
146 String result = canvas->toDataURL(type, qualityPtr, exceptionState); | 146 String result = canvas->toDataURL(type, qualityPtr, exceptionState); |
147 exceptionState.throwIfNeeded(); | 147 exceptionState.throwIfNeeded(); |
148 v8SetReturnValueStringOrUndefined(info, result, info.GetIsolate()); | 148 v8SetReturnValueStringOrUndefined(info, result, info.GetIsolate()); |
149 } | 149 } |
150 | 150 |
151 } // namespace WebCore | 151 } // namespace WebCore |
OLD | NEW |