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

Unified Diff: Source/core/html/canvas/WebGLContextEvent.cpp

Issue 799733002: Use event init dictionaries in core/{css,html} (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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/canvas/WebGLContextEvent.h ('k') | Source/core/html/canvas/WebGLContextEvent.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/WebGLContextEvent.cpp
diff --git a/Source/core/html/canvas/WebGLContextEvent.cpp b/Source/core/html/canvas/WebGLContextEvent.cpp
index bceb93f829b53a95b0f4047d11dbe69a791504e4..6b2b1be5406b0b42c9321407eb3d665dc39d3376 100644
--- a/Source/core/html/canvas/WebGLContextEvent.cpp
+++ b/Source/core/html/canvas/WebGLContextEvent.cpp
@@ -28,10 +28,6 @@
namespace blink {
-WebGLContextEventInit::WebGLContextEventInit()
-{
-}
-
WebGLContextEvent::WebGLContextEvent()
{
}
@@ -44,8 +40,9 @@ WebGLContextEvent::WebGLContextEvent(const AtomicString& type, bool canBubble, b
WebGLContextEvent::WebGLContextEvent(const AtomicString& type, const WebGLContextEventInit& initializer)
: Event(type, initializer)
- , m_statusMessage(initializer.statusMessage)
{
+ if (initializer.hasStatusMessage())
+ m_statusMessage = initializer.statusMessage();
}
WebGLContextEvent::~WebGLContextEvent()
« no previous file with comments | « Source/core/html/canvas/WebGLContextEvent.h ('k') | Source/core/html/canvas/WebGLContextEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698