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

Unified Diff: third_party/WebKit/Source/modules/csspaint/PaintRenderingContext2D.h

Issue 1878253003: Allow explicit conversion operators and implement WTF::OwnPtr::operator bool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 8 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
Index: third_party/WebKit/Source/modules/csspaint/PaintRenderingContext2D.h
diff --git a/third_party/WebKit/Source/modules/csspaint/PaintRenderingContext2D.h b/third_party/WebKit/Source/modules/csspaint/PaintRenderingContext2D.h
index 72e4ecd2d2b38331c739619cb2ce88b8ec164bc5..3c0d92530277bc340437ec9e4b70c61d794dec3a 100644
--- a/third_party/WebKit/Source/modules/csspaint/PaintRenderingContext2D.h
+++ b/third_party/WebKit/Source/modules/csspaint/PaintRenderingContext2D.h
@@ -37,7 +37,7 @@ public:
int width() const final;
int height() const final;
- bool hasImageBuffer() const final { return m_imageBuffer; }
+ bool hasImageBuffer() const final { return m_imageBuffer.get(); }
ImageBuffer* imageBuffer() const final { return m_imageBuffer.get(); }
bool parseColorOrCurrentColor(Color&, const String& colorString) const final;

Powered by Google App Engine
This is Rietveld 408576698