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

Unified Diff: third_party/WebKit/Source/web/WebDOMCustomEvent.cpp

Issue 1367333002: Remove WebDocument::createEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 | « content/shell/renderer/ipc_echo.cc ('k') | third_party/WebKit/Source/web/WebDOMMessageEvent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebDOMCustomEvent.cpp
diff --git a/third_party/WebKit/Source/web/WebDOMCustomEvent.cpp b/third_party/WebKit/Source/web/WebDOMCustomEvent.cpp
index 459633308419218ddd6e4f45fc13b764b49e9279..4de4858c721fc3eadf969d62d8f022d98a4b7562 100644
--- a/third_party/WebKit/Source/web/WebDOMCustomEvent.cpp
+++ b/third_party/WebKit/Source/web/WebDOMCustomEvent.cpp
@@ -34,16 +34,13 @@
#include "bindings/core/v8/SerializedScriptValue.h"
#include "core/events/CustomEvent.h"
#include "public/platform/WebString.h"
-#include "public/web/WebSerializedScriptValue.h"
namespace blink {
-void WebDOMCustomEvent::initCustomEvent(const WebString& type, bool canBubble, bool cancelable, const WebSerializedScriptValue& webSerializedScriptValue)
+WebDOMCustomEvent::WebDOMCustomEvent(const WebString& type)
+ : WebDOMEvent(CustomEvent::create())
{
- ASSERT(m_private.get());
- RefPtr<SerializedScriptValue> serializedScriptValue;
- serializedScriptValue = webSerializedScriptValue;
- unwrap<CustomEvent>()->initCustomEvent(type, canBubble, cancelable, serializedScriptValue.get());
+ unwrap<CustomEvent>()->initCustomEvent(type, false, false, nullptr);
}
} // namespace blink
« no previous file with comments | « content/shell/renderer/ipc_echo.cc ('k') | third_party/WebKit/Source/web/WebDOMMessageEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698