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

Unified Diff: Source/core/inspector/InspectorHistory.cpp

Issue 208893007: DevTools: InspectorHistory actions become refcounted. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/core/inspector/InspectorHistory.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorHistory.cpp
diff --git a/Source/core/inspector/InspectorHistory.cpp b/Source/core/inspector/InspectorHistory.cpp
index 556d4bbb40331ca7bbe2fc4cb7233299ac659f6a..b73699cd1d2aa15ebe02329d92674d5d8b1a6673 100644
--- a/Source/core/inspector/InspectorHistory.cpp
+++ b/Source/core/inspector/InspectorHistory.cpp
@@ -77,13 +77,13 @@ String InspectorHistory::Action::mergeId()
return "";
}
-void InspectorHistory::Action::merge(PassOwnPtr<Action>)
+void InspectorHistory::Action::merge(PassRefPtr<Action>)
{
}
InspectorHistory::InspectorHistory() : m_afterLastActionIndex(0) { }
-bool InspectorHistory::perform(PassOwnPtr<Action> action, ExceptionState& exceptionState)
+bool InspectorHistory::perform(PassRefPtr<Action> action, ExceptionState& exceptionState)
{
if (!action->perform(exceptionState))
return false;
@@ -100,7 +100,7 @@ bool InspectorHistory::perform(PassOwnPtr<Action> action, ExceptionState& except
void InspectorHistory::markUndoableState()
{
- perform(adoptPtr(new UndoableStateMark()), IGNORE_EXCEPTION);
+ perform(adoptRef(new UndoableStateMark()), IGNORE_EXCEPTION);
}
bool InspectorHistory::undo(ExceptionState& exceptionState)
« no previous file with comments | « Source/core/inspector/InspectorHistory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698