Commit cde5ee48 authored by weinig@apple.com's avatar weinig@apple.com

2008-07-07 Sam Weinig <sam@webkit.org>

        Reviewed by Anders Carlsson.

        Remove extraneous null check.

        * dom/Node.cpp:
        (WebCore::Node::querySelector):
        (WebCore::Node::querySelectorAll):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@35057 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 903a05c5
2008-07-07 Sam Weinig <sam@webkit.org>
Reviewed by Anders Carlsson.
Remove extraneous null check.
* dom/Node.cpp:
(WebCore::Node::querySelector):
(WebCore::Node::querySelectorAll):
2008-07-07 Sam Weinig <sam@webkit.org>
Reviewed by Anders Carlsson.
......@@ -1239,7 +1239,7 @@ static bool selectorNeedsNamespaceResolution(CSSSelector* selector)
PassRefPtr<Element> Node::querySelector(const String& selectors, ExceptionCode& ec)
{
if (selectors.isNull() || selectors.isEmpty()) {
if (selectors.isEmpty()) {
ec = SYNTAX_ERR;
return 0;
}
......@@ -1285,7 +1285,7 @@ PassRefPtr<Element> Node::querySelector(const String& selectors, ExceptionCode&
PassRefPtr<NodeList> Node::querySelectorAll(const String& selectors, ExceptionCode& ec)
{
if (selectors.isNull() || selectors.isEmpty()) {
if (selectors.isEmpty()) {
ec = SYNTAX_ERR;
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment