Skip to content
  • ap@apple.com's avatar
    Reviewed by Darin Adler. · 38221c65
    ap@apple.com authored
            https://bugs.webkit.org/show_bug.cgi?id=33787
            Add constants for more XML strings
    
            No change in functionality, so no tests.
    
            * WebCore/xml/xmlnsattrs.in: Added a new file for xmlns namespace and attribute - 
            XMLNames.{h,cpp} are auto-generated, and I dodn't see a reasonable way to extend it.
    
            * platform/text/AtomicString.cpp: (WebCore::AtomicString::init):
            * platform/text/AtomicString.h:
            Added atomic strings for "xml" and "xmlns".
    
            * page/Frame.cpp: (WebCore::Frame::Frame): Call XMLNSNames::init().
    
            * dom/Attr.cpp: (WebCore::Attr::setPrefix):
            * dom/Document.cpp:
            (WebCore::Document::hasPrefixNamespaceMismatch):
            (WebCore::Document::createAttributeNS):
            * dom/Node.cpp:
            (WebCore::Node::checkSetPrefix):
            (WebCore::Node::isDefaultNamespace):
            (WebCore::Node::lookupNamespaceURI):
            (WebCore::Node::lookupNamespacePrefix):
            * dom/XMLTokenizerLibxml2.cpp:
            (WebCore::XMLTokenizer::XMLTokenizer):
            (WebCore::handleElementNamespaces):
            * editing/markup.cpp:
            (WebCore::shouldAddNamespaceAttr):
            (WebCore::appendNamespace):
            * xml/XPathStep.cpp:
            (WebCore::XPath::nodeMatchesBasicTest):
            (WebCore::XPath::Step::nodesInAxis):
            Use the new constants.
    
            * Android.derived.mk:
            * DerivedSources.make:
            * GNUmakefile.am:
            * WebCore.gyp/WebCore.gyp:
            * WebCore.pri:
            * WebCore.vcproj/WebCore.vcproj:
            * WebCore.xcodeproj/project.pbxproj:
            * WebCoreSources.bkl:
            Added the new files to projects.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@53429 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    38221c65