Title: [104659] trunk/Source/WebCore
- Revision
- 104659
- Author
- [email protected]
- Date
- 2012-01-10 18:04:53 -0800 (Tue, 10 Jan 2012)
Log Message
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):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (104658 => 104659)
--- trunk/Source/WebCore/ChangeLog 2012-01-11 01:51:19 UTC (rev 104658)
+++ trunk/Source/WebCore/ChangeLog 2012-01-11 02:04:53 UTC (rev 104659)
@@ -1,3 +1,26 @@
+2012-01-10 Kentaro Hara <[email protected]>
+
+ 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 <[email protected]>
Repaint video controls when buffering during pause.
Modified: trunk/Source/WebCore/storage/DOMWindowSQLDatabase.cpp (104658 => 104659)
--- trunk/Source/WebCore/storage/DOMWindowSQLDatabase.cpp 2012-01-11 01:51:19 UTC (rev 104658)
+++ trunk/Source/WebCore/storage/DOMWindowSQLDatabase.cpp 2012-01-11 02:04:53 UTC (rev 104659)
@@ -49,8 +49,8 @@
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;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes