2011-04-13  Roland Steiner  <rolandsteiner@chromium.org>

        Reviewed by Dimitri Glazkov.

        Bug 58460 - childTypeAllowed() should be const
        https://bugs.webkit.org/show_bug.cgi?id=58460

        Made childTypeAllowed const.

        No new tests. (minor refactoring).

        * dom/Attr.cpp:
        (WebCore::Attr::childTypeAllowed):
        * dom/Attr.h:
        * dom/CDATASection.cpp:
        (WebCore::CDATASection::childTypeAllowed):
        * dom/CDATASection.h:
        * dom/Comment.cpp:
        (WebCore::Comment::childTypeAllowed):
        * dom/Comment.h:
        * dom/Document.cpp:
        (WebCore::Document::childTypeAllowed):
        * dom/Document.h:
        * dom/DocumentFragment.cpp:
        (WebCore::DocumentFragment::childTypeAllowed):
        * dom/DocumentFragment.h:
        * dom/Element.cpp:
        (WebCore::Element::childTypeAllowed):
        * dom/Element.h:
        * dom/Node.h:
        (WebCore::Node::childTypeAllowed):
        * dom/Notation.cpp:
        (WebCore::Notation::childTypeAllowed):
        * dom/Notation.h:
        * dom/ProcessingInstruction.cpp:
        (WebCore::ProcessingInstruction::childTypeAllowed):
        * dom/ProcessingInstruction.h:
        * dom/Text.cpp:
        (WebCore::Text::childTypeAllowed):
        * dom/Text.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83816 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebCore/dom/Document.cpp b/Source/WebCore/dom/Document.cpp
index 66a98b5..d9e0fcf 100644
--- a/Source/WebCore/dom/Document.cpp
+++ b/Source/WebCore/dom/Document.cpp
@@ -2733,7 +2733,7 @@
 }
 
 // DOM Section 1.1.1
-bool Document::childTypeAllowed(NodeType type)
+bool Document::childTypeAllowed(NodeType type) const
 {
     switch (type) {
     case ATTRIBUTE_NODE: