Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2204)

Unified Diff: Source/modules/webdatabase/SQLResultSet.cpp

Issue 207453006: Oilpan: Prepare to move SQLResultSet and SQLResultSetRowList to oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove setValid Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/webdatabase/SQLResultSet.h ('k') | Source/modules/webdatabase/SQLResultSet.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webdatabase/SQLResultSet.cpp
diff --git a/Source/modules/webdatabase/SQLResultSet.cpp b/Source/modules/webdatabase/SQLResultSet.cpp
index b467578e6675a4bc998f2629ea6d6ecaedd2195e..0a76d07fc9bc05541dc141908f89b813fd84c4a5 100644
--- a/Source/modules/webdatabase/SQLResultSet.cpp
+++ b/Source/modules/webdatabase/SQLResultSet.cpp
@@ -31,18 +31,25 @@
#include "bindings/v8/ExceptionState.h"
#include "core/dom/ExceptionCode.h"
+#include "heap/Handle.h"
namespace WebCore {
SQLResultSet::SQLResultSet()
: m_rows(SQLResultSetRowList::create())
, m_insertId(0)
- , m_insertIdSet(false)
, m_rowsAffected(0)
+ , m_insertIdSet(false)
+ , m_isValid(false)
{
ScriptWrappable::init(this);
}
+void SQLResultSet::trace(Visitor* visitor)
+{
+ visitor->trace(m_rows);
+}
+
int64_t SQLResultSet::insertId(ExceptionState& exceptionState) const
{
// 4.11.4 - Return the id of the last row inserted as a result of the query
@@ -75,6 +82,7 @@ void SQLResultSet::setInsertId(int64_t id)
void SQLResultSet::setRowsAffected(int count)
{
m_rowsAffected = count;
+ m_isValid = true;
}
}
« no previous file with comments | « Source/modules/webdatabase/SQLResultSet.h ('k') | Source/modules/webdatabase/SQLResultSet.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698