| Index: Source/bindings/core/v8/custom/V8MediaQueryListCustom.cpp
|
| diff --git a/Source/web/WebImageGenerator.cpp b/Source/bindings/core/v8/custom/V8MediaQueryListCustom.cpp
|
| similarity index 70%
|
| copy from Source/web/WebImageGenerator.cpp
|
| copy to Source/bindings/core/v8/custom/V8MediaQueryListCustom.cpp
|
| index 0ea634147fcaab0923eea06b16abcd8cdcda4b89..a08172e509d4836d1561d502f44afe8b42720fd0 100644
|
| --- a/Source/web/WebImageGenerator.cpp
|
| +++ b/Source/bindings/core/v8/custom/V8MediaQueryListCustom.cpp
|
| @@ -29,15 +29,20 @@
|
| */
|
|
|
| #include "config.h"
|
| -#include "public/platform/WebImageGenerator.h"
|
| -
|
| -#include "platform/graphics/DecodingImageGenerator.h"
|
| +#include "bindings/core/v8/V8MediaQueryList.h"
|
|
|
| namespace blink {
|
|
|
| -SkImageGenerator* WebImageGenerator::create(SkData* data)
|
| +void V8MediaQueryList::addListenerMethodEpilogueCustom(const v8::FunctionCallbackInfo<v8::Value>& info, MediaQueryList* impl)
|
| +{
|
| + if (info.Length() >= 1 && info[0]->IsObject() && !impl->toNode())
|
| + addHiddenValueToArray(info.GetIsolate(), info.Holder(), info[0], V8EventTarget::eventListenerCacheIndex);
|
| +}
|
| +
|
| +void V8MediaQueryList::removeListenerMethodEpilogueCustom(const v8::FunctionCallbackInfo<v8::Value>& info, MediaQueryList* impl)
|
| {
|
| - return DecodingImageGenerator::create(data);
|
| + if (info.Length() >= 1 && info[0]->IsObject() && !impl->toNode())
|
| + removeHiddenValueFromArray(info.GetIsolate(), info.Holder(), info[0], V8EventTarget::eventListenerCacheIndex);
|
| }
|
|
|
| } // namespace blink
|
|
|