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

Unified Diff: Source/bindings/core/v8/custom/V8MediaQueryListCustom.cpp

Issue 1019453002: IDL: Add [Custom=CallEpilogue] to eliminate CG special cases (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix after rebase Created 5 years, 9 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 | « Source/bindings/core/v8/custom/V8HistoryCustom.cpp ('k') | Source/bindings/core/v8/custom/custom.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/bindings/core/v8/custom/V8HistoryCustom.cpp ('k') | Source/bindings/core/v8/custom/custom.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698