Index: Source/core/html/HTMLCanvasElement.cpp |
diff --git a/Source/core/html/HTMLCanvasElement.cpp b/Source/core/html/HTMLCanvasElement.cpp |
index 1c2a8180f7870b72fc0a0db4e3acf48a3e621790..30a211fb537b13f3660acc5cb801663f5fee176c 100644 |
--- a/Source/core/html/HTMLCanvasElement.cpp |
+++ b/Source/core/html/HTMLCanvasElement.cpp |
@@ -855,4 +855,9 @@ FloatSize HTMLCanvasElement::sourceSize() const |
return FloatSize(width(), height()); |
} |
+bool HTMLCanvasElement::isOpaque() const |
+{ |
+ return m_context && !m_context->hasAlpha(); |
} |
+ |
+} // blink |