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

Unified Diff: Source/bindings/tests/results/V8TestExtendedEvent.cpp

Issue 99333017: IDL compiler: simplify type conversion in Event Constructor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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
Index: Source/bindings/tests/results/V8TestExtendedEvent.cpp
diff --git a/Source/bindings/tests/results/V8TestExtendedEvent.cpp b/Source/bindings/tests/results/V8TestExtendedEvent.cpp
index d68c34d185c6c5f987bede6b353332150316a96c..46516580186e5d38f1fca50942f2f95bd5754da2 100644
--- a/Source/bindings/tests/results/V8TestExtendedEvent.cpp
+++ b/Source/bindings/tests/results/V8TestExtendedEvent.cpp
@@ -136,9 +136,9 @@ bool initializeEvent(EventInit& eventInit, const Dictionary& options, ExceptionS
if (!initializeTestEvent(eventInit, options, exceptionState, forEventName.isEmpty() ? String("TestExtendedEvent") : forEventName))
return false;
- if (!options.convert(conversionContext.withAttributes(false, NormalConversion), "location", eventInit.location))
+ if (!options.convert(conversionContext.conversionType(false, NormalConversion, "unsigned long"), "location", eventInit.location))
return false;
- if (options.convert(conversionContext.withAttributes(false, NormalConversion), "keyLocation", eventInit.location)) {
+ if (options.convert(conversionContext.conversionType(false, NormalConversion, "unsigned long"), "keyLocation", eventInit.location)) {
if (options.hasProperty("keyLocation"))
UseCounter::countDeprecation(activeExecutionContext(), UseCounter::KeyboardEventKeyLocation);
} else {

Powered by Google App Engine
This is Rietveld 408576698