Add missing V8 bindings to get CSS_FILTERS to compile in Chromium.
authorsenorblanco@chromium.org <senorblanco@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Dec 2011 19:25:47 +0000 (19:25 +0000)
committersenorblanco@chromium.org <senorblanco@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Dec 2011 19:25:47 +0000 (19:25 +0000)
https://bugs.webkit.org/show_bug.cgi?id=74091

Reviewed by Kenneth Russell.

Will be covered by tests in css3/filters (when enabled).

* bindings/v8/custom/V8WebKitCSSFilterValueCustom.cpp: Added.
(WebCore::V8WebKitCSSFilterValue::indexedPropertyGetter):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@102356 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/bindings/v8/custom/V8WebKitCSSFilterValueCustom.cpp [new file with mode: 0644]

index a29674f..e94500e 100644 (file)
@@ -1,3 +1,15 @@
+2011-12-08  Stephen White  <senorblanco@chromium.org>
+
+        Add missing V8 bindings to get CSS_FILTERS to compile in Chromium.
+        https://bugs.webkit.org/show_bug.cgi?id=74091
+
+        Reviewed by Kenneth Russell.
+
+        Will be covered by tests in css3/filters (when enabled).
+
+        * bindings/v8/custom/V8WebKitCSSFilterValueCustom.cpp: Added.
+        (WebCore::V8WebKitCSSFilterValue::indexedPropertyGetter):
+
 2011-12-08  Beth Dakin  <bdakin@apple.com>
 
         https://bugs.webkit.org/show_bug.cgi?id=73348
diff --git a/Source/WebCore/bindings/v8/custom/V8WebKitCSSFilterValueCustom.cpp b/Source/WebCore/bindings/v8/custom/V8WebKitCSSFilterValueCustom.cpp
new file mode 100644 (file)
index 0000000..d7d4a57
--- /dev/null
@@ -0,0 +1,45 @@
+/*
+ * Copyright (C) 2011 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1.  Redistributions of source code must retain the above copyright
+ *     notice, this list of conditions and the following disclaimer.
+ * 2.  Redistributions in binary form must reproduce the above copyright
+ *     notice, this list of conditions and the following disclaimer in the
+ *     documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "config.h"
+
+#if ENABLE(CSS_FILTERS)
+
+#include "V8WebKitCSSFilterValue.h"
+
+#include "V8Binding.h"
+#include "WebKitCSSFilterValue.h"
+
+namespace WebCore {
+
+v8::Handle<v8::Value> V8WebKitCSSFilterValue::indexedPropertyGetter(uint32_t index, const v8::AccessorInfo& info)
+{
+    INC_STATS("DOM.WebKitCSSFilterValue.IndexedPropertyGetter");
+    WebKitCSSFilterValue* list = V8WebKitCSSFilterValue::toNative(info.Holder());
+    return toV8(list->item(index));
+}
+
+} // namespace WebCore
+
+#endif