Refactoring: Remove Node::isContentElement and Node::isShadowElement.
authorshinyak@chromium.org <shinyak@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Mar 2012 08:22:06 +0000 (08:22 +0000)
committershinyak@chromium.org <shinyak@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Mar 2012 08:22:06 +0000 (08:22 +0000)
commitbc2b820229b4a59c61e174d80ebc94b2b44fa180
tree52885b587a8cc10c58063634b9e2d183e822e774
parent19a3e4e390dca1ff789725de65bdc255a774685e
Refactoring: Remove Node::isContentElement and Node::isShadowElement.
https://bugs.webkit.org/show_bug.cgi?id=80501

Reviewed by Hajime Morita.

Removes Node::isContentElement and Node::isShadowElement. These methods are replaced
by hasTagName. However the tag name of HTMLContentElement was not consistent,
this patch make them consistent.

No new tests. Should be covered by existing tests.

* dom/Node.h:
* html/HTMLElement.h:
(WebCore::HTMLElement::isInsertionPoint):
(HTMLElement):
* html/HTMLSummaryElement.cpp:
(WebCore::SummaryContentElement::SummaryContentElement):
  It uses HTMLNames::divTag as tagname. It should use HTMLNames::webkitShadowTagName.
* html/shadow/HTMLContentElement.h:
(HTMLContentElement):
* html/shadow/InsertionPoint.h:
(InsertionPoint):
(WebCore::InsertionPoint::isInsertionPoint):
(WebCore::isInsertionPoint):
* testing/Internals.cpp:
(WebCore::Internals::isValidContentSelect):
* testing/Internals.h:
(Internals):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@110151 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/dom/Node.h
Source/WebCore/html/HTMLElement.h
Source/WebCore/html/HTMLSummaryElement.cpp
Source/WebCore/html/shadow/HTMLContentElement.h
Source/WebCore/html/shadow/InsertionPoint.h
Source/WebCore/testing/Internals.cpp
Source/WebCore/testing/Internals.h