Commit dae58cf0 authored by haraken@chromium.org's avatar haraken@chromium.org

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: http://svn.webkit.org/repository/webkit/trunk@104659 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 9e555a3d
2012-01-10 Kentaro Hara <haraken@chromium.org>
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):
2012-01-10 Dale Curtis <dalecurtis@chromium.org>
Repaint video controls when buffering during pause.
......@@ -49,8 +49,8 @@ PassRefPtr<Database> DOMWindowSQLDatabase::openDatabase(DOMWindow* window, const
return 0;
RefPtr<Database> database = 0;
if (window->frame() && AbstractDatabase::isAvailable() && window->frame()->document()->securityOrigin()->canAccessDatabase())
database = Database::openDatabase(window->frame()->document(), name, version, displayName, estimatedSize, creationCallback, ec);
if (AbstractDatabase::isAvailable() && window->document()->securityOrigin()->canAccessDatabase())
database = Database::openDatabase(window->document(), name, version, displayName, estimatedSize, creationCallback, ec);
if (!database && !ec)
ec = SECURITY_ERR;
......
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