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

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

Issue 1455763002: Use union type in ImageBitmapFactories.idl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix errors Created 5 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
Index: third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
index 47dfe4296a9a8aeefa3b9b225774817d354caf02..9496ee02413786f53da24099d26d626bd113d67a 100644
--- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
@@ -933,6 +933,11 @@ FloatSize HTMLCanvasElement::elementSize() const
return FloatSize(width(), height());
}
+IntSize HTMLCanvasElement::bitmapSourceSize() const
+{
+ return IntSize(width(), height());
+}
+
bool HTMLCanvasElement::isOpaque() const
{
return m_context && !m_context->hasAlpha();

Powered by Google App Engine
This is Rietveld 408576698