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

Unified Diff: Source/core/html/HTMLCanvasElement.cpp

Issue 957493003: Remove existingDrawingContext from HTMLCanvasElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/HTMLCanvasElement.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLCanvasElement.cpp
diff --git a/Source/core/html/HTMLCanvasElement.cpp b/Source/core/html/HTMLCanvasElement.cpp
index 5b854b922621bf458586eab94b3abffe9379e3c5..876843a25930f641952280449ffeda0e9e79dfc9 100644
--- a/Source/core/html/HTMLCanvasElement.cpp
+++ b/Source/core/html/HTMLCanvasElement.cpp
@@ -741,14 +741,6 @@ GraphicsContext* HTMLCanvasElement::drawingContext() const
return buffer() ? m_imageBuffer->context() : nullptr;
}
-GraphicsContext* HTMLCanvasElement::existingDrawingContext() const
-{
- if (!hasImageBuffer())
- return nullptr;
-
- return drawingContext();
-}
-
SkCanvas* HTMLCanvasElement::drawingCanvas() const
{
return buffer() ? m_imageBuffer->canvas() : nullptr;
« no previous file with comments | « Source/core/html/HTMLCanvasElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698