[Webkit-unassigned] [Bug 27434] adding necessary functions and properties to Document IDL gobject bindings

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 23 02:54:31 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=27434





--- Comment #5 from Luke Kenneth Casson Leighton <lkcl at lkcl.net>  2009-07-23 02:54:31 PDT ---
(In reply to comment #3)
> (From update of attachment 33063 [details])
> > Index: WebCore/dom/Document.idl
> > ===================================================================
> > --- WebCore/dom/Document.idl	(revision 44473)
> > +++ WebCore/dom/Document.idl	(working copy)
> > @@ -154,7 +154,8 @@
> >  
> >                   attribute [ConvertNullToNullString] DOMString title;
> >          readonly attribute DOMString referrer;
> > -#if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT
> > +#if (defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT) || \
> > +     (defined(LANGUAGE_GOBJECT) && LANGUAGE_GOBJECT)
> >                   attribute [ConvertNullToNullString] DOMString domain;
> >  #else
> >          readonly attribute DOMString domain;
> 
> I wonder why the non-JavaScript case is marked as readonly. The HTML 5 spec
> suggests it should not be.  It may be that we should consider removing the
> #if's here.

 ok - i'm happy to submit a [separate] patch and you can make a decision
 then.

> > @@ -180,7 +181,8 @@
> >  
> >          NodeList getElementsByName(in DOMString elementName);
> >  
> > -#if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT
> > +#if (defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT) || \
> > +     (defined(LANGUAGE_GOBJECT) && LANGUAGE_GOBJECT)
> >                   attribute [Custom] Location location;
> >  #endif
> 
> This is flagged as being [Custom] but I don't see a gobject method implementing
> this property anywhere in the patch.  Did you forget to include it?

 no - i added it on the basis that its inclusion will have no impact on
 the day-to-day compilation of webkit.

 the implementation comes automatically as part of the addition of
 gobject property auto-generation, in CodeGeneratorGObject.pm.

 and as you know, that's being reviewed separately.

> > @@ -193,7 +195,8 @@
> >          Element            elementFromPoint(in long x, in long y);
> >  
> >          // Mozilla extensions
> > -#if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT
> > +#if (defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT) || \
> > +     (defined(LANGUAGE_GOBJECT) && LANGUAGE_GOBJECT)
> >          DOMSelection       getSelection();
> >  #endif
> 
> The #if's should probably be removed from this one.  The method was added in
> <http://trac.webkit.org/changeset/30515>, where the ChangeLog notes that it was
> restricted to JS as it was only added for web compatibility.  Since then, the
> getSelection attribute on Document has made its way in to the HTML 5
> specification:

> <http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html#documents>.

 ack, ok, likewise, i'll include it in a separate patch, as both 
 DOMString domain and DOMSelection getSelection() changes aren't
 specifically gobject-related.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list