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

Side by Side Diff: Source/core/html/HTMLCanvasElement.cpp

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase Created 6 years, 10 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/frame/PageConsole.cpp ('k') | Source/core/html/HTMLDialogElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. 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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 388
389 if (m_context) 389 if (m_context)
390 m_context->paintRenderingResultsToCanvas(); 390 m_context->paintRenderingResultsToCanvas();
391 391
392 return buffer()->toDataURL(encodingMimeType, quality); 392 return buffer()->toDataURL(encodingMimeType, quality);
393 } 393 }
394 394
395 PassRefPtr<ImageData> HTMLCanvasElement::getImageData() 395 PassRefPtr<ImageData> HTMLCanvasElement::getImageData()
396 { 396 {
397 if (!m_context || !m_context->is3d()) 397 if (!m_context || !m_context->is3d())
398 return 0; 398 return nullptr;
399 return toWebGLRenderingContext(m_context.get())->paintRenderingResultsToImag eData(); 399 return toWebGLRenderingContext(m_context.get())->paintRenderingResultsToImag eData();
400 } 400 }
401 401
402 SecurityOrigin* HTMLCanvasElement::securityOrigin() const 402 SecurityOrigin* HTMLCanvasElement::securityOrigin() const
403 { 403 {
404 return document().securityOrigin(); 404 return document().securityOrigin();
405 } 405 }
406 406
407 bool HTMLCanvasElement::shouldAccelerate(const IntSize& size) const 407 bool HTMLCanvasElement::shouldAccelerate(const IntSize& size) const
408 { 408 {
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 } 593 }
594 } 594 }
595 595
596 void HTMLCanvasElement::didMoveToNewDocument(Document& oldDocument) 596 void HTMLCanvasElement::didMoveToNewDocument(Document& oldDocument)
597 { 597 {
598 setObservedDocument(document()); 598 setObservedDocument(document());
599 HTMLElement::didMoveToNewDocument(oldDocument); 599 HTMLElement::didMoveToNewDocument(oldDocument);
600 } 600 }
601 601
602 } 602 }
OLDNEW
« no previous file with comments | « Source/core/frame/PageConsole.cpp ('k') | Source/core/html/HTMLDialogElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698