2011-02-18 Fabrizio Machado <fabrizio.machado@nokia.com>

        Reviewed by Eric Seidel.

        Remove reduntant checks.
        https://bugs.webkit.org/show_bug.cgi?id=54764

        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
        (DumpRenderTreeSupportQt::elementDoesAutoCompleteForElementWithId):
        * WebCoreSupport/NotificationPresenterClientQt.cpp:
        (WebCore::NotificationPresenterClientQt::toPage):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79098 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 52386fd3
2011-02-18 Fabrizio Machado <fabrizio.machado@nokia.com>
Reviewed by Eric Seidel.
Remove reduntant checks.
https://bugs.webkit.org/show_bug.cgi?id=54764
* WebCoreSupport/DumpRenderTreeSupportQt.cpp:
(DumpRenderTreeSupportQt::elementDoesAutoCompleteForElementWithId):
* WebCoreSupport/NotificationPresenterClientQt.cpp:
(WebCore::NotificationPresenterClientQt::toPage):
2011-02-18 Csaba Osztrogonác <ossy@webkit.org>
Unreviewed.
......
......@@ -608,8 +608,6 @@ bool DumpRenderTreeSupportQt::elementDoesAutoCompleteForElementWithId(QWebFrame*
return false;
HTMLInputElement* inputElement = static_cast<HTMLInputElement*>(coreNode);
if (!inputElement)
return false;
return inputElement->isTextField() && !inputElement->isPasswordField() && inputElement->autoComplete();
}
......
......@@ -440,8 +440,6 @@ QWebPage* NotificationPresenterClientQt::toPage(ScriptExecutionContext* context)
return 0;
Document* document = static_cast<Document*>(context);
if (!document)
return 0;
Page* page = document->page();
if (!page || !page->mainFrame())
......
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