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

Unified Diff: Source/core/frame/History.cpp

Issue 1180653003: Sync the IDL interfaces in core/frame/ with their many specs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix order-dependent test Created 5 years, 6 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/frame/History.h ('k') | Source/core/frame/History.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/History.cpp
diff --git a/Source/core/frame/History.cpp b/Source/core/frame/History.cpp
index 039727405262b3849f1a46f332a8b0449d4ccdab..ea3bd5dbbd232be4911c51cb1358434c4043f7c8 100644
--- a/Source/core/frame/History.cpp
+++ b/Source/core/frame/History.cpp
@@ -108,7 +108,7 @@ void History::forward(ExecutionContext* context)
go(context, 1);
}
-void History::go(ExecutionContext* context, int distance)
+void History::go(ExecutionContext* context, int delta)
{
if (!m_frame || !m_frame->loader().client())
return;
@@ -121,8 +121,8 @@ void History::go(ExecutionContext* context, int distance)
if (!activeDocument->frame() || !activeDocument->frame()->canNavigate(*m_frame))
return;
- if (distance)
- m_frame->loader().client()->navigateBackForward(distance);
+ if (delta)
+ m_frame->loader().client()->navigateBackForward(delta);
else
m_frame->reload(FrameLoadTypeReload, ClientRedirect);
}
« no previous file with comments | « Source/core/frame/History.h ('k') | Source/core/frame/History.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698