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

Unified Diff: content/renderer/history_serialization.cc

Issue 2710063002: Revert of Add DidSaveScrollOrScaleState flag to prevent restoreScrollPosition... (Closed)
Patch Set: rebase update Created 3 years, 8 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
Index: content/renderer/history_serialization.cc
diff --git a/content/renderer/history_serialization.cc b/content/renderer/history_serialization.cc
index c24d9d74c4e0573a643a269cdd04a83cf800b14f..e84a7e00d572750b409662e37e2ceba5f961f76d 100644
--- a/content/renderer/history_serialization.cc
+++ b/content/renderer/history_serialization.cc
@@ -53,7 +53,6 @@ void GenerateFrameStateFromItem(const WebHistoryItem& item,
state->item_sequence_number = item.ItemSequenceNumber();
state->document_sequence_number = item.DocumentSequenceNumber();
state->page_scale_factor = item.PageScaleFactor();
- state->did_save_scroll_or_scale_state = item.DidSaveScrollOrScaleState();
ToNullableString16Vector(item.GetDocumentState(), &state->document_state);
state->http_body.http_content_type =
@@ -102,7 +101,6 @@ void RecursivelyGenerateHistoryItem(const ExplodedFrameState& state,
item.SetVisualViewportScrollOffset(state.visual_viewport_scroll_offset);
item.SetScrollOffset(state.scroll_offset);
item.SetPageScaleFactor(state.page_scale_factor);
- item.SetDidSaveScrollOrScaleState(state.did_save_scroll_or_scale_state);
// These values are generated at WebHistoryItem construction time, and we
// only want to override those new values with old values if the old values

Powered by Google App Engine
This is Rietveld 408576698