+2012-02-07 Kentaro Hara <haraken@chromium.org>
+
+ [GTK] Ignore [Custom] attributes in CodeGeneratorGObject.pm
+ https://bugs.webkit.org/show_bug.cgi?id=78059
+
+ Reviewed by Adam Barth.
+
+ CodeGeneratorGObject.pm does not support custom attributes.
+ We can skip generating code for attributes with [Custom].
+ The change would make sense, since CodeGeneratorGObject.pm already
+ skips attributes with [CustomGetter] or [CustomSetter].
+
+ Test: bindings/scripts/test/TestObj.idl
+
+ * bindings/scripts/CodeGeneratorGObject.pm:
+ (SkipAttribute):
+ * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
+
2012-02-07 Emil A Eklund <eae@chromium.org>
Add pixelSnappedX/Y/Width/Height methods
sub SkipAttribute {
my $attribute = shift;
-
- if ($attribute->signature->extendedAttributes->{"CustomGetter"} ||
- $attribute->signature->extendedAttributes->{"CustomSetter"}) {
+
+ if ($attribute->signature->extendedAttributes->{"Custom"}
+ || $attribute->signature->extendedAttributes->{"CustomGetter"}
+ || $attribute->signature->extendedAttributes->{"CustomSetter"}) {
return 1;
}
PROP_ATTR_WITH_SETTER_EXCEPTION,
PROP_STRING_ATTR_WITH_GETTER_EXCEPTION,
PROP_STRING_ATTR_WITH_SETTER_EXCEPTION,
- PROP_CUSTOM_ATTR,
PROP_WITH_SCRIPT_STATE_ATTRIBUTE,
PROP_WITH_SCRIPT_EXECUTION_CONTEXT_ATTRIBUTE,
PROP_WITH_SCRIPT_STATE_ATTRIBUTE_RAISES,