[webkit-changes] cvs commit: SVGSupport/ksvg2/svg SVGElementImpl.cpp

Eric eseidel at opensource.apple.com
Tue Nov 29 16:11:11 PST 2005


eseidel     05/11/29 16:11:10

  Modified:    .        ChangeLog
               ksvg2/css svg.css
               ksvg2/svg SVGElementImpl.cpp
  Log:
  Bug #: 5873
  Submitted by: eseidel
  Reviewed by: darin
          Fixes W3C events tests, no additional tests necessary.
          http://bugzilla.opendarwin.org/show_bug.cgi?id=5876
  
          * ksvg2/css/svg.css: added namespace declaration
          * ksvg2/svg/SVGElementImpl.cpp:
          (SVGElementImpl::parseMappedAttribute): added support of on* attrs
  
  Revision  Changes    Path
  1.432     +11 -0     WebCore/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /cvs/root/WebCore/ChangeLog,v
  retrieving revision 1.431
  retrieving revision 1.432
  diff -u -r1.431 -r1.432
  --- ChangeLog	29 Nov 2005 22:14:05 -0000	1.431
  +++ ChangeLog	30 Nov 2005 00:11:06 -0000	1.432
  @@ -1,3 +1,14 @@
  +2005-11-29  Eric Seidel  <eseidel at apple.com>
  +
  +        Reviewed by darin.
  +
  +        Fixes W3C events tests, no additional tests necessary.
  +        http://bugzilla.opendarwin.org/show_bug.cgi?id=5876
  +
  +        * ksvg2/css/svg.css: added namespace declaration
  +        * ksvg2/svg/SVGElementImpl.cpp:
  +        (SVGElementImpl::parseMappedAttribute): added support of on* attrs
  +
   2005-11-29  David Harrison  <harrison at apple.com>
   
           Reviewed by John Sullivan.
  
  
  
  1.2       +2 -0      SVGSupport/ksvg2/css/svg.css
  
  Index: svg.css
  ===================================================================
  RCS file: /cvs/root/SVGSupport/ksvg2/css/svg.css,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- svg.css	9 Jul 2005 06:54:48 -0000	1.1
  +++ svg.css	30 Nov 2005 00:11:10 -0000	1.2
  @@ -1,5 +1,7 @@
   /*
    */
  + 
  + at namespace "http://www.w3.org/2000/svg";
   
   svg, symbol, marker, pattern, foreignObject
   {
  
  
  
  1.14      +19 -1     SVGSupport/ksvg2/svg/SVGElementImpl.cpp
  
  Index: SVGElementImpl.cpp
  ===================================================================
  RCS file: /cvs/root/SVGSupport/ksvg2/svg/SVGElementImpl.cpp,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- SVGElementImpl.cpp	28 Nov 2005 23:34:05 -0000	1.13
  +++ SVGElementImpl.cpp	30 Nov 2005 00:11:10 -0000	1.14
  @@ -114,7 +114,25 @@
       }
       else
   #endif
  -    KDOM::StyledElementImpl::parseMappedAttribute(attr);
  +    // standard events
  +    if (attr->name() == onclickAttr)
  +        setHTMLEventListener(clickEvent, getDocument()->createHTMLEventListener(attr->value().qstring(), this));
  +    else if (attr->name() == onmousedownAttr)
  +        setHTMLEventListener(mousedownEvent, getDocument()->createHTMLEventListener(attr->value().qstring(), this));
  +    else if (attr->name() == onmousemoveAttr)
  +        setHTMLEventListener(mousemoveEvent, getDocument()->createHTMLEventListener(attr->value().qstring(), this));
  +    else if (attr->name() == onmouseoutAttr)
  +        setHTMLEventListener(mouseoutEvent, getDocument()->createHTMLEventListener(attr->value().qstring(), this));
  +    else if (attr->name() == onmouseoverAttr)
  +        setHTMLEventListener(mouseoverEvent, getDocument()->createHTMLEventListener(attr->value().qstring(), this));
  +    else if (attr->name() == onmouseupAttr)
  +        setHTMLEventListener(mouseupEvent, getDocument()->createHTMLEventListener(attr->value().qstring(), this));
  +    else if (attr->name() == onfocusAttr)
  +        setHTMLEventListener(DOMFocusInEvent, getDocument()->createHTMLEventListener(attr->value().qstring(), this));
  +    else if (attr->name() == onblurAttr)
  +        setHTMLEventListener(DOMFocusOutEvent, getDocument()->createHTMLEventListener(attr->value().qstring(), this));
  +    else
  +        KDOM::StyledElementImpl::parseMappedAttribute(attr);
   }
   
   // vim:ts=4:noet
  
  
  



More information about the webkit-changes mailing list