[webkit-changes] cvs commit: WebCore ChangeLog

David hyatt at opensource.apple.com
Thu Jun 16 12:42:24 PDT 2005


hyatt       05/06/16 12:42:24

  Modified:    WebCore.pbproj project.pbxproj
               .        ChangeLog
  Added:       khtml/xml dom_qname.h dom_qname.cpp
               khtml/html htmlnames.h htmlnames.cpp
  Removed:     khtml/xml dom_nameimpl.h
  Log:
          Add an initial implementation of QualifiedName and HTMLNames.  These classes are not used by anyone yet.
  	Progress being recorded in bugzilla bug 3405.
  
          Reviewed by mjs
  
          Test cases added: (None, does not affect build yet)
  
          * WebCore.pbproj/project.pbxproj:
          * khtml/xml/dom_qname.h,.cpp
          * khtml/html/htmlnames.h,.cpp
  
  Revision  Changes    Path
  1.553     +64 -16    WebCore/WebCore.pbproj/project.pbxproj
  
  Index: project.pbxproj
  ===================================================================
  RCS file: /cvs/root/WebCore/WebCore.pbproj/project.pbxproj,v
  retrieving revision 1.552
  retrieving revision 1.553
  diff -u -r1.552 -r1.553
  --- project.pbxproj	8 Jun 2005 09:55:12 -0000	1.552
  +++ project.pbxproj	16 Jun 2005 19:42:18 -0000	1.553
  @@ -311,6 +311,62 @@
   //552
   //553
   //554
  +		550A0BC7085F6039007353D6 = {
  +			fileEncoding = 30;
  +			isa = PBXFileReference;
  +			lastKnownFileType = sourcecode.cpp.cpp;
  +			path = dom_qname.cpp;
  +			refType = 4;
  +			sourceTree = "<group>";
  +		};
  +		550A0BC8085F6039007353D6 = {
  +			fileEncoding = 30;
  +			isa = PBXFileReference;
  +			lastKnownFileType = sourcecode.c.h;
  +			path = dom_qname.h;
  +			refType = 4;
  +			sourceTree = "<group>";
  +		};
  +		550A0BC9085F6039007353D6 = {
  +			fileRef = 550A0BC7085F6039007353D6;
  +			isa = PBXBuildFile;
  +			settings = {
  +			};
  +		};
  +		550A0BCA085F6039007353D6 = {
  +			fileRef = 550A0BC8085F6039007353D6;
  +			isa = PBXBuildFile;
  +			settings = {
  +			};
  +		};
  +		550A0BCB085F604D007353D6 = {
  +			fileEncoding = 30;
  +			isa = PBXFileReference;
  +			lastKnownFileType = sourcecode.cpp.cpp;
  +			path = htmlnames.cpp;
  +			refType = 4;
  +			sourceTree = "<group>";
  +		};
  +		550A0BCC085F604D007353D6 = {
  +			fileEncoding = 30;
  +			isa = PBXFileReference;
  +			lastKnownFileType = sourcecode.c.h;
  +			path = htmlnames.h;
  +			refType = 4;
  +			sourceTree = "<group>";
  +		};
  +		550A0BCD085F604D007353D6 = {
  +			fileRef = 550A0BCB085F604D007353D6;
  +			isa = PBXBuildFile;
  +			settings = {
  +			};
  +		};
  +		550A0BCE085F604D007353D6 = {
  +			fileRef = 550A0BCC085F604D007353D6;
  +			isa = PBXBuildFile;
  +			settings = {
  +			};
  +		};
   		55998A57052B598F0017A6C1 = {
   			children = (
   				55998A5A052B59CC0017A6C1,
  @@ -2606,7 +2662,6 @@
   				93F199CA08245E59001E9ABC,
   				93F199CB08245E59001E9ABC,
   				93F199CC08245E59001E9ABC,
  -				93F199CD08245E59001E9ABC,
   				93F199CE08245E59001E9ABC,
   				93F199CF08245E59001E9ABC,
   				93F199D008245E59001E9ABC,
  @@ -2681,6 +2736,8 @@
   				65436058083D129100C20475,
   				65436072083DB9FB00C20475,
   				1A69D381085627410009880D,
  +				550A0BCA085F6039007353D6,
  +				550A0BCE085F604D007353D6,
   			);
   			isa = PBXHeadersBuildPhase;
   			runOnlyForDeploymentPostprocessing = 0;
  @@ -4361,12 +4418,6 @@
   			settings = {
   			};
   		};
  -		93F199CD08245E59001E9ABC = {
  -			fileRef = BC7E782005C5EB700088A50F;
  -			isa = PBXBuildFile;
  -			settings = {
  -			};
  -		};
   		93F199CE08245E59001E9ABC = {
   			fileRef = BC3B364605C9D5E200E42902;
   			isa = PBXBuildFile;
  @@ -5058,6 +5109,8 @@
   				65436081083DB9FC00C20475,
   				65436082083DB9FC00C20475,
   				1A69D382085627410009880D,
  +				550A0BC9085F6039007353D6,
  +				550A0BCD085F604D007353D6,
   			);
   			isa = PBXSourcesBuildPhase;
   			runOnlyForDeploymentPostprocessing = 0;
  @@ -6817,14 +6870,6 @@
   			refType = 4;
   			sourceTree = "<group>";
   		};
  -		BC7E782005C5EB700088A50F = {
  -			fileEncoding = 30;
  -			isa = PBXFileReference;
  -			lastKnownFileType = sourcecode.c.h;
  -			path = dom_nameimpl.h;
  -			refType = 4;
  -			sourceTree = "<group>";
  -		};
   		BC7FDE3105C1D9AB0070A902 = {
   			fileEncoding = 30;
   			isa = PBXFileReference;
  @@ -8614,6 +8659,8 @@
   		};
   		F523D27702DE4398018635CA = {
   			children = (
  +				550A0BCB085F604D007353D6,
  +				550A0BCC085F604D007353D6,
   				F523D23502DE4396018635CA,
   				F523D23602DE4396018635CA,
   				F523D23702DE4396018635CA,
  @@ -9295,6 +9342,8 @@
   		};
   		F523D32402DE4478018635CA = {
   			children = (
  +				550A0BC7085F6039007353D6,
  +				550A0BC8085F6039007353D6,
   				BC3B364505C9D5E200E42902,
   				BC3B364605C9D5E200E42902,
   				BC3B364705C9D5E200E42902,
  @@ -9302,7 +9351,6 @@
   				F523D2F502DE4476018635CA,
   				F523D2F702DE4476018635CA,
   				F523D2F802DE4476018635CA,
  -				BC7E782005C5EB700088A50F,
   				F523D2F902DE4476018635CA,
   				F523D2FA02DE4476018635CA,
   				BE91FC8B06133666005E3790,
  
  
  
  1.1                  WebCore/khtml/xml/dom_qname.h
  
  Index: dom_qname.h
  ===================================================================
  /*
   * This file is part of the DOM implementation for KDE.
   *
   * Copyright (C) 2005 Apple Computer, Inc.
   *
   * This library is free software; you can redistribute it and/or
   * modify it under the terms of the GNU Library General Public
   * License as published by the Free Software Foundation; either
   * version 2 of the License, or (at your option) any later version.
   *
   * This library is distributed in the hope that it will be useful,
   * but WITHOUT ANY WARRANTY; without even the implied warranty of
   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   * Library General Public License for more details.
   *
   * You should have received a copy of the GNU Library General Public License
   * along with this library; see the file COPYING.LIB.  If not, write to
   * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
   * Boston, MA 02111-1307, USA.
   *
   */
  #ifndef _DOM_QNAME_h_
  #define _DOM_QNAME_h_
  
  #include "dom_atomicstring.h"
  
  namespace DOM {
  
  class QualifiedName {
  public:
      class QualifiedNameImpl : public khtml::Shared<QualifiedNameImpl> {
      public:
          QualifiedNameImpl(const AtomicString& p, const AtomicString& l, const AtomicString& n) :m_prefix(p), m_localName(l), m_namespace(n) {}
  
          friend class QualifiedName;
  
      private:
          AtomicString m_prefix;
          AtomicString m_localName;
          AtomicString m_namespace;
      };
  
      QualifiedName(const AtomicString& p, const AtomicString& l, const AtomicString& n);
      QualifiedName(QualifiedNameImpl* inner);
      ~QualifiedName();
  
      QualifiedName(const QualifiedName& other);
      const QualifiedName& operator=(const QualifiedName& other);
  
      DOMStringImpl* localNamePtr() const { return localName().implementation(); }
      
      bool operator==(const QualifiedName& other) const { return m_impl == other.m_impl; }
      bool operator!=(const QualifiedName& other) const { return !(*this == other); }
  
      bool matches(const QualifiedName& other) const { return m_impl == other.m_impl || (localName() == other.localName() && namespaceURI() == other.namespaceURI()); }
  
      const AtomicString& prefix() const { return m_impl->m_prefix; }
      const AtomicString& localName() const { return m_impl->m_localName; }
      const AtomicString& namespaceURI() const { return m_impl->m_namespace; }
  
  private:
  
      void ref() { if (m_impl) m_impl->ref(); } // FIXME: Yank null check eventually.
      void deref();
      
      QualifiedNameImpl* m_impl;
  };
  
  bool operator==(const AtomicString& a, const QualifiedName& q) { return a == q.localName(); }
  bool operator!=(const AtomicString& a, const QualifiedName& q) { return a != q.localName(); }
  bool operator==(const QualifiedName& q, const AtomicString& a) { return a == q.localName(); }
  bool operator!=(const QualifiedName& q, const AtomicString& a) { return a != q.localName(); }
  
  
  }
  #endif
  
  
  
  1.1                  WebCore/khtml/xml/dom_qname.cpp
  
  Index: dom_qname.cpp
  ===================================================================
  /**
   * This file is part of the DOM implementation for KDE.
   *
   * Copyright (C) 2005 Apple Computer, Inc.
   *
   * This library is free software; you can redistribute it and/or
   * modify it under the terms of the GNU Library General Public
   * License as published by the Free Software Foundation; either
   * version 2 of the License, or (at your option) any later version.
   *
   * This library is distributed in the hope that it will be useful,
   * but WITHOUT ANY WARRANTY; without even the implied warranty of
   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   * Library General Public License for more details.
   *
   * You should have received a copy of the GNU Library General Public License
   * along with this library; see the file COPYING.LIB.  If not, write to
   * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
   * Boston, MA 02111-1307, USA.
   */
  
  #include <qptrdict.h>
  #include "dom_qname.h"
  
  namespace DOM {
  
  static QPtrDict<QPtrDict<QPtrDict<QualifiedName::QualifiedNameImpl> > >* gNameCache = 0;
  
  QualifiedName::QualifiedName(const AtomicString& p, const AtomicString& l, const AtomicString& n)
  {
      // Obtain an appropriate inner from our dictionary.
      QPtrDict<QPtrDict<QualifiedNameImpl> >* namespaceDict = 0;
      QPtrDict<QualifiedNameImpl>* prefixDict = 0;
      if (gNameCache) {
          namespaceDict = gNameCache->find((void*)(n.implementation()));
          if (namespaceDict) {
              prefixDict = namespaceDict->find((void*)p.implementation());
              if (prefixDict)
                  m_impl = prefixDict->find((void*)l.implementation());
          }
      }
  
      if (!m_impl) {
          m_impl = new QualifiedNameImpl(p, l, n);
  
          // Put the object into the hash.
          if (!gNameCache)
              gNameCache = new QPtrDict<QPtrDict<QPtrDict<QualifiedNameImpl> > >;
          
          if (!namespaceDict) {
              namespaceDict = new QPtrDict<QPtrDict<QualifiedNameImpl> >;
              namespaceDict->setAutoDelete(true);
              gNameCache->insert((void*)n.implementation(), namespaceDict);
          }
          
          if (!prefixDict) {
              prefixDict = new QPtrDict<QualifiedNameImpl>;
              namespaceDict->insert((void*)p.implementation(), prefixDict);
          }
          
          prefixDict->insert((void*)l.implementation(), m_impl);
      }
      
      ref();
  }
  
  QualifiedName::~QualifiedName()
  {
      deref();
  }
  
  QualifiedName::QualifiedName(const QualifiedName& other)
  {
      m_impl = other.m_impl;
      ref();
  }
  
  const QualifiedName& QualifiedName::operator=(const QualifiedName& other)
  {
      if (m_impl != other.m_impl) {
          deref();
          m_impl = other.m_impl;
          ref();
      }
      
      return *this;
  }
  
  void QualifiedName::deref()
  {
      if (m_impl->refCount() == 1) {
          // Before decrementing the ref to 0, remove ourselves from the hash table.
          QPtrDict<QPtrDict<QualifiedNameImpl> >* namespaceDict = 0;
          QPtrDict<QualifiedNameImpl>* prefixDict = 0;
          if (gNameCache) {
              namespaceDict = gNameCache->find((void*)(namespaceURI().implementation()));
              if (namespaceDict) {
                  prefixDict = namespaceDict->find((void*)prefix().implementation());
                  if (prefixDict)
                      prefixDict->remove((void*)localName().implementation());
              }
          }
      }
      
      m_impl->deref();
  }
  
  }
  
  
  
  1.1                  WebCore/khtml/html/htmlnames.h
  
  Index: htmlnames.h
  ===================================================================
  /*
   * This file is part of the HTML DOM implementation for KDE.
   *
   * Copyright (C) 2005 Apple Computer, Inc.
   *
   * This library is free software; you can redistribute it and/or
   * modify it under the terms of the GNU Library General Public
   * License as published by the Free Software Foundation; either
   * version 2 of the License, or (at your option) any later version.
   *
   * This library is distributed in the hope that it will be useful,
   * but WITHOUT ANY WARRANTY; without even the implied warranty of
   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   * Library General Public License for more details.
   *
   * You should have received a copy of the GNU Library General Public License
   * along with this library; see the file COPYING.LIB.  If not, write to
   * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
   * Boston, MA 02111-1307, USA.
   *
   */
  #ifndef HTMLNAMES_H
  #define HTMLNAMES_H
  
  #include "xml/dom_elementimpl.h"
  
  namespace DOM
  {
  
  class HTMLNames
  {
  public:
      // The namespace URI.
      static const AtomicString& xhtmlNamespaceURI();
      
      // Full tag names.
      static const QualifiedName& a();
      static const QualifiedName& address();
      static const QualifiedName& applet();
      static const QualifiedName& area();
      static const QualifiedName& b();
      static const QualifiedName& base();
      static const QualifiedName& basefont();
      static const QualifiedName& big();
      static const QualifiedName& blockquote();
      static const QualifiedName& body();
      static const QualifiedName& br();
      static const QualifiedName& button();
      static const QualifiedName& canvas();
      static const QualifiedName& caption();
      static const QualifiedName& center();
      static const QualifiedName& code();
      static const QualifiedName& col();
      static const QualifiedName& colgroup();
      static const QualifiedName& dd();
      static const QualifiedName& del();
      static const QualifiedName& dfn();
      static const QualifiedName& dir();
      static const QualifiedName& div();
      static const QualifiedName& dl();
      static const QualifiedName& dt();
      static const QualifiedName& em();
      static const QualifiedName& embed();
      static const QualifiedName& fieldset();
      static const QualifiedName& font();
      static const QualifiedName& form();
      static const QualifiedName& frame();
      static const QualifiedName& frameset();
      static const QualifiedName& head();
      static const QualifiedName& h1();
      static const QualifiedName& h2();
      static const QualifiedName& h3();
      static const QualifiedName& h4();
      static const QualifiedName& h5();
      static const QualifiedName& h6();
      static const QualifiedName& hr();
      static const QualifiedName& html();
      static const QualifiedName& i();
      static const QualifiedName& iframe();
      static const QualifiedName& img();
      static const QualifiedName& input();
      static const QualifiedName& ins();
      static const QualifiedName& isindex();
      static const QualifiedName& kbd();
      static const QualifiedName& keygen();
      static const QualifiedName& label();
      static const QualifiedName& legend();
      static const QualifiedName& li();
      static const QualifiedName& link();
      static const QualifiedName& map();
      static const QualifiedName& marquee();
      static const QualifiedName& menu();
      static const QualifiedName& meta();
      static const QualifiedName& noembed();
      static const QualifiedName& noframes();
      static const QualifiedName& noscript();
      static const QualifiedName& object();
      static const QualifiedName& ol();
      static const QualifiedName& optgroup();
      static const QualifiedName& option();
      static const QualifiedName& p();
      static const QualifiedName& param();
      static const QualifiedName& pre();
      static const QualifiedName& q();
      static const QualifiedName& s();
      static const QualifiedName& samp();
      static const QualifiedName& script();
      static const QualifiedName& select();
      static const QualifiedName& small();
      static const QualifiedName& strike();
      static const QualifiedName& strong();
      static const QualifiedName& style();
      static const QualifiedName& table();
      static const QualifiedName& tbody();
      static const QualifiedName& td();
      static const QualifiedName& textarea();
      static const QualifiedName& tfoot();
      static const QualifiedName& th();
      static const QualifiedName& thead();
      static const QualifiedName& title();
      static const QualifiedName& tr();
      static const QualifiedName& tt();
      static const QualifiedName& u();
      static const QualifiedName& ul();
      static const QualifiedName& var();
      static const QualifiedName& xmp();
  
      // Attribute names.
  };
  
  }
  
  #endif
  
  
  
  1.1                  WebCore/khtml/html/htmlnames.cpp
  
  Index: htmlnames.cpp
  ===================================================================
  /*
   * This file is part of the HTML DOM implementation for KDE.
   *
   * Copyright (C) 2005 Apple Computer, Inc.
   *
   * This library is free software; you can redistribute it and/or
   * modify it under the terms of the GNU Library General Public
   * License as published by the Free Software Foundation; either
   * version 2 of the License, or (at your option) any later version.
   *
   * This library is distributed in the hope that it will be useful,
   * but WITHOUT ANY WARRANTY; without even the implied warranty of
   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   * Library General Public License for more details.
   *
   * You should have received a copy of the GNU Library General Public License
   * along with this library; see the file COPYING.LIB.  If not, write to
   * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
   * Boston, MA 02111-1307, USA.
   *
   */
  
  #include "htmlnames.h"
  
  namespace DOM {
  
  const AtomicString& HTMLNames::xhtmlNamespaceURI()
  {
      static AtomicString xhtmlNS("http://www.w3.org/1999/xhtml");
      return xhtmlNS;
  }
  
  
  // Tag names.
  const QualifiedName& HTMLNames::a()
  {
      static QualifiedName a(nullAtom, "a", xhtmlNamespaceURI());
      return a;
  }
  
  const QualifiedName& HTMLNames::address()
  {
      static QualifiedName address(nullAtom, "address", xhtmlNamespaceURI());
      return address;
  }
  
  const QualifiedName& HTMLNames::applet()
  {
      static QualifiedName applet(nullAtom, "applet", xhtmlNamespaceURI());
      return applet;
  }
  
  const QualifiedName& HTMLNames::area()
  {
      static QualifiedName area(nullAtom, "area", xhtmlNamespaceURI());
      return area;
  }
  
  const QualifiedName& HTMLNames::b()
  {
      static QualifiedName b(nullAtom, "b", xhtmlNamespaceURI());
      return b;
  }
  
  const QualifiedName& HTMLNames::base()
  {
      static QualifiedName base(nullAtom, "base", xhtmlNamespaceURI());
      return base;
  }
  
  const QualifiedName& HTMLNames::basefont()
  {
      static QualifiedName basefont(nullAtom, "basefont", xhtmlNamespaceURI());
      return basefont;
  }
  
  const QualifiedName& HTMLNames::big()
  {
      static QualifiedName big(nullAtom, "big", xhtmlNamespaceURI());
      return big;
  }
  
  const QualifiedName& HTMLNames::blockquote()
  {
      static QualifiedName blockquote(nullAtom, "blockquote", xhtmlNamespaceURI());
      return blockquote;
  }
  
  const QualifiedName& HTMLNames::body()
  {
      static QualifiedName body(nullAtom, "body", xhtmlNamespaceURI());
      return body;
  }
  
  const QualifiedName& HTMLNames::br()
  {
      static QualifiedName br(nullAtom, "br", xhtmlNamespaceURI());
      return br;
  }
  
  const QualifiedName& HTMLNames::button()
  {
      static QualifiedName button(nullAtom, "button", xhtmlNamespaceURI());
      return button;
  }
  
  const QualifiedName& HTMLNames::canvas()
  {
      static QualifiedName canvas(nullAtom, "canvas", xhtmlNamespaceURI());
      return canvas;
  }
  
  const QualifiedName& HTMLNames::caption()
  {
      static QualifiedName caption(nullAtom, "caption", xhtmlNamespaceURI());
      return caption;
  }
  
  const QualifiedName& HTMLNames::center()
  {
      static QualifiedName center(nullAtom, "center", xhtmlNamespaceURI());
      return center;
  }
  
  const QualifiedName& HTMLNames::code()
  {
      static QualifiedName code(nullAtom, "code", xhtmlNamespaceURI());
      return code;
  }
  
  const QualifiedName& HTMLNames::col()
  {
      static QualifiedName col(nullAtom, "col", xhtmlNamespaceURI());
      return col;
  }
  
  const QualifiedName& HTMLNames::colgroup()
  {
      static QualifiedName colgroup(nullAtom, "colgroup", xhtmlNamespaceURI());
      return colgroup;
  }
  
  const QualifiedName& HTMLNames::dd()
  {
      static QualifiedName dd(nullAtom, "dd", xhtmlNamespaceURI());
      return dd;
  }
  
  const QualifiedName& HTMLNames::del()
  {
      static QualifiedName del(nullAtom, "del", xhtmlNamespaceURI());
      return del;
  }
  
  const QualifiedName& HTMLNames::dfn()
  {
      static QualifiedName dfn(nullAtom, "dfn", xhtmlNamespaceURI());
      return dfn;
  }
  
  const QualifiedName& HTMLNames::dir()
  {
      static QualifiedName dir(nullAtom, "dir", xhtmlNamespaceURI());
      return dir;
  }
  
  const QualifiedName& HTMLNames::div()
  {
      static QualifiedName div(nullAtom, "div", xhtmlNamespaceURI());
      return div;
  }
  
  const QualifiedName& HTMLNames::dl()
  {
      static QualifiedName dl(nullAtom, "dl", xhtmlNamespaceURI());
      return dl;
  }
  
  const QualifiedName& HTMLNames::dt()
  {
      static QualifiedName dt(nullAtom, "dt", xhtmlNamespaceURI());
      return dt;
  }
  
  const QualifiedName& HTMLNames::em()
  {
      static QualifiedName em(nullAtom, "em", xhtmlNamespaceURI());
      return em;
  }
  
  const QualifiedName& HTMLNames::embed()
  {
      static QualifiedName embed(nullAtom, "embed", xhtmlNamespaceURI());
      return embed;
  }
  
  const QualifiedName& HTMLNames::fieldset()
  {
      static QualifiedName fieldset(nullAtom, "fieldset", xhtmlNamespaceURI());
      return fieldset;
  }
  
  const QualifiedName& HTMLNames::font()
  {
      static QualifiedName font(nullAtom, "font", xhtmlNamespaceURI());
      return font;
  }
  
  const QualifiedName& HTMLNames::form()
  {
      static QualifiedName form(nullAtom, "form", xhtmlNamespaceURI());
      return form;
  }
  
  const QualifiedName& HTMLNames::frame()
  {
      static QualifiedName frame(nullAtom, "frame", xhtmlNamespaceURI());
      return frame;
  }
  
  const QualifiedName& HTMLNames::frameset()
  {
      static QualifiedName frameset(nullAtom, "frameset", xhtmlNamespaceURI());
      return frameset;
  }
  
  const QualifiedName& HTMLNames::head()
  {
      static QualifiedName head(nullAtom, "head", xhtmlNamespaceURI());
      return head;
  }
  
  const QualifiedName& HTMLNames::h1()
  {
      static QualifiedName h1(nullAtom, "h1", xhtmlNamespaceURI());
      return h1;
  }
  
  const QualifiedName& HTMLNames::h2()
  {
      static QualifiedName h2(nullAtom, "h2", xhtmlNamespaceURI());
      return h2;
  }
  
  const QualifiedName& HTMLNames::h3()
  {
      static QualifiedName h3(nullAtom, "h3", xhtmlNamespaceURI());
      return h3;
  }
  
  const QualifiedName& HTMLNames::h4()
  {
      static QualifiedName h4(nullAtom, "h4", xhtmlNamespaceURI());
      return h4;
  }
  
  const QualifiedName& HTMLNames::h5()
  {
      static QualifiedName h5(nullAtom, "h5", xhtmlNamespaceURI());
      return h5;
  }
  
  const QualifiedName& HTMLNames::h6()
  {
      static QualifiedName h6(nullAtom, "h6", xhtmlNamespaceURI());
      return h6;
  }
  
  const QualifiedName& HTMLNames::hr()
  {
      static QualifiedName hr(nullAtom, "hr", xhtmlNamespaceURI());
      return hr;
  }
  
  const QualifiedName& HTMLNames::html()
  {
      static QualifiedName html(nullAtom, "html", xhtmlNamespaceURI());
      return html;
  }
  
  const QualifiedName& HTMLNames::i()
  {
      static QualifiedName i(nullAtom, "i", xhtmlNamespaceURI());
      return i;
  }
  
  const QualifiedName& HTMLNames::iframe()
  {
      static QualifiedName iframe(nullAtom, "iframe", xhtmlNamespaceURI());
      return iframe;
  }
  
  const QualifiedName& HTMLNames::img()
  {
      static QualifiedName img(nullAtom, "img", xhtmlNamespaceURI());
      return img;
  }
  
  const QualifiedName& HTMLNames::input()
  {
      static QualifiedName input(nullAtom, "input", xhtmlNamespaceURI());
      return input;
  }
  
  const QualifiedName& HTMLNames::ins()
  {
      static QualifiedName ins(nullAtom, "ins", xhtmlNamespaceURI());
      return ins;
  }
  
  const QualifiedName& HTMLNames::isindex()
  {
      static QualifiedName isindex(nullAtom, "isindex", xhtmlNamespaceURI());
      return isindex;
  }
  
  const QualifiedName& HTMLNames::kbd()
  {
      static QualifiedName kbd(nullAtom, "kbd", xhtmlNamespaceURI());
      return kbd;
  }
  
  const QualifiedName& HTMLNames::keygen()
  {
      static QualifiedName keygen(nullAtom, "keygen", xhtmlNamespaceURI());
      return keygen;
  }
  
  const QualifiedName& HTMLNames::label()
  {
      static QualifiedName label(nullAtom, "label", xhtmlNamespaceURI());
      return label;
  }
  
  const QualifiedName& HTMLNames::legend()
  {
      static QualifiedName legend(nullAtom, "legend", xhtmlNamespaceURI());
      return legend;
  }
  
  const QualifiedName& HTMLNames::li()
  {
      static QualifiedName li(nullAtom, "li", xhtmlNamespaceURI());
      return li;
  }
  
  const QualifiedName& HTMLNames::link()
  {
      static QualifiedName link(nullAtom, "link", xhtmlNamespaceURI());
      return link;
  }
  
  const QualifiedName& HTMLNames::map()
  {
      static QualifiedName map(nullAtom, "map", xhtmlNamespaceURI());
      return map;
  }
  
  const QualifiedName& HTMLNames::marquee()
  {
      static QualifiedName marquee(nullAtom, "marquee", xhtmlNamespaceURI());
      return marquee;
  }
  
  const QualifiedName& HTMLNames::menu()
  {
      static QualifiedName menu(nullAtom, "menu", xhtmlNamespaceURI());
      return menu;
  }
  
  const QualifiedName& HTMLNames::meta()
  {
      static QualifiedName meta(nullAtom, "meta", xhtmlNamespaceURI());
      return meta;
  }
  
  const QualifiedName& HTMLNames::noembed()
  {
      static QualifiedName noembed(nullAtom, "noembed", xhtmlNamespaceURI());
      return noembed;
  }
  
  const QualifiedName& HTMLNames::noframes()
  {
      static QualifiedName noframes(nullAtom, "noframes", xhtmlNamespaceURI());
      return noframes;
  }
  
  const QualifiedName& HTMLNames::noscript()
  {
      static QualifiedName noscript(nullAtom, "noscript", xhtmlNamespaceURI());
      return noscript;
  }
  
  const QualifiedName& HTMLNames::object()
  {
      static QualifiedName object(nullAtom, "object", xhtmlNamespaceURI());
      return object;
  }
  
  const QualifiedName& HTMLNames::ol()
  {
      static QualifiedName ol(nullAtom, "ol", xhtmlNamespaceURI());
      return ol;
  }
  
  const QualifiedName& HTMLNames::optgroup()
  {
      static QualifiedName optgroup(nullAtom, "optgroup", xhtmlNamespaceURI());
      return optgroup;
  }
  
  const QualifiedName& HTMLNames::p()
  {
      static QualifiedName p(nullAtom, "p", xhtmlNamespaceURI());
      return p;
  }
  
  const QualifiedName& HTMLNames::param()
  {
      static QualifiedName param(nullAtom, "param", xhtmlNamespaceURI());
      return param;
  }
  
  const QualifiedName& HTMLNames::pre()
  {
      static QualifiedName pre(nullAtom, "pre", xhtmlNamespaceURI());
      return pre;
  }
  
  const QualifiedName& HTMLNames::q()
  {
      static QualifiedName q(nullAtom, "q", xhtmlNamespaceURI());
      return q;
  }
  
  const QualifiedName& HTMLNames::s()
  {
      static QualifiedName s(nullAtom, "s", xhtmlNamespaceURI());
      return s;
  }
  
  const QualifiedName& HTMLNames::samp()
  {
      static QualifiedName samp(nullAtom, "samp", xhtmlNamespaceURI());
      return samp;
  }
  
  const QualifiedName& HTMLNames::script()
  {
      static QualifiedName script(nullAtom, "script", xhtmlNamespaceURI());
      return script;
  }
  
  const QualifiedName& HTMLNames::select()
  {
      static QualifiedName select(nullAtom, "select", xhtmlNamespaceURI());
      return select;
  }
  
  const QualifiedName& HTMLNames::small()
  {
      static QualifiedName small(nullAtom, "small", xhtmlNamespaceURI());
      return small;
  }
  
  const QualifiedName& HTMLNames::strike()
  {
      static QualifiedName strike(nullAtom, "strike", xhtmlNamespaceURI());
      return strike;
  }
  
  const QualifiedName& HTMLNames::strong()
  {
      static QualifiedName strong(nullAtom, "strong", xhtmlNamespaceURI());
      return strong;
  }
  
  const QualifiedName& HTMLNames::style()
  {
      static QualifiedName style(nullAtom, "style", xhtmlNamespaceURI());
      return style;
  }
  
  const QualifiedName& HTMLNames::table()
  {
      static QualifiedName table(nullAtom, "table", xhtmlNamespaceURI());
      return table;
  }
  
  const QualifiedName& HTMLNames::tbody()
  {
      static QualifiedName tbody(nullAtom, "tbody", xhtmlNamespaceURI());
      return tbody;
  }
  
  const QualifiedName& HTMLNames::td()
  {
      static QualifiedName td(nullAtom, "td", xhtmlNamespaceURI());
      return td;
  }
  
  const QualifiedName& HTMLNames::textarea()
  {
      static QualifiedName textarea(nullAtom, "textarea", xhtmlNamespaceURI());
      return textarea;
  }
  
  const QualifiedName& HTMLNames::tfoot()
  {
      static QualifiedName tfoot(nullAtom, "tfoot", xhtmlNamespaceURI());
      return tfoot;
  }
  
  const QualifiedName& HTMLNames::th()
  {
      static QualifiedName th(nullAtom, "th", xhtmlNamespaceURI());
      return th;
  }
  
  const QualifiedName& HTMLNames::thead()
  {
      static QualifiedName thead(nullAtom, "thead", xhtmlNamespaceURI());
      return thead;
  }
  
  const QualifiedName& HTMLNames::title()
  {
      static QualifiedName title(nullAtom, "title", xhtmlNamespaceURI());
      return title;
  }
  
  const QualifiedName& HTMLNames::tr()
  {
      static QualifiedName tr(nullAtom, "tr", xhtmlNamespaceURI());
      return tr;
  }
  
  const QualifiedName& HTMLNames::tt()
  {
      static QualifiedName tt(nullAtom, "tt", xhtmlNamespaceURI());
      return tt;
  }
  
  const QualifiedName& HTMLNames::u()
  {
      static QualifiedName u(nullAtom, "u", xhtmlNamespaceURI());
      return u;
  }
  
  const QualifiedName& HTMLNames::ul()
  {
      static QualifiedName ul(nullAtom, "ul", xhtmlNamespaceURI());
      return ul;
  }
  
  const QualifiedName& HTMLNames::var()
  {
      static QualifiedName var(nullAtom, "var", xhtmlNamespaceURI());
      return var;
  }
  
  const QualifiedName& HTMLNames::xmp()
  {
      static QualifiedName xmp(nullAtom, "xmp", xhtmlNamespaceURI());
      return xmp;
  }
  
  }
  
  
  
  1.4266    +13 -0     WebCore/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /cvs/root/WebCore/ChangeLog,v
  retrieving revision 1.4265
  retrieving revision 1.4266
  diff -u -r1.4265 -r1.4266
  --- ChangeLog	14 Jun 2005 22:36:27 -0000	1.4265
  +++ ChangeLog	16 Jun 2005 19:42:20 -0000	1.4266
  @@ -1,5 +1,18 @@
   2005-06-14  David Hyatt  <hyatt at apple.com>
   
  +        Add an initial implementation of QualifiedName and HTMLNames.  These classes are not used by anyone yet.
  +	Progress being recorded in bugzilla bug 3405.
  +	
  +        Reviewed by mjs
  +
  +        Test cases added: (None, does not affect build yet)
  +
  +        * WebCore.pbproj/project.pbxproj:
  +        * khtml/xml/dom_qname.h,.cpp
  +        * khtml/html/htmlnames.h,.cpp
  +
  +2005-06-14  David Hyatt  <hyatt at apple.com>
  +
   	The behavior of <pre> is broken so that the newline
   	is not always properly being eaten after the open of the tag.  In addition we were eating the first newline
   	after all other tags.  This patch stops eating newlines after other tags and refines the behavior for pre
  
  
  



More information about the webkit-changes mailing list