Remove redundant code from DOMWindowSQLDatabase.cpp
authorharaken@chromium.org <haraken@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 11 Jan 2012 02:04:53 +0000 (02:04 +0000)
committerharaken@chromium.org <haraken@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 11 Jan 2012 02:04:53 +0000 (02:04 +0000)
commitcf9457a9ba1eebf62719f82fa92b86e1f840f4bb
tree1ad762cef8aa9967b68f94c62cd4fd57715d7b2c
parent28426c333124034d4877204f6389cb681b91b4a6
Remove redundant code from DOMWindowSQLDatabase.cpp
https://bugs.webkit.org/show_bug.cgi?id=76010

Reviewed by Adam Barth.

This patch removes redundant code from DOMWindowSQLDatabase.cpp.

- Remove window->frame() check, since window->frame() is always true when
  window->isCurrentlyDisplayedInFrame() is true.
- window->frame()->document() can just be window->document()

Tests: storage/open-database-creation-callback-isolated-world.html
       storage/open-database-creation-callback.html
       storage/open-database-empty-version.html
       storage/open-database-over-quota.html
       storage/open-database-set-empty-version.html
       storage/open-database-while-transaction-in-progress.html

* storage/DOMWindowSQLDatabase.cpp:
(WebCore::DOMWindowSQLDatabase::openDatabase):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@104659 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/storage/DOMWindowSQLDatabase.cpp