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

Unified Diff: content/public/renderer/document_state.h

Issue 10889019: Reset scale & scroll state after reloading with overridden URL (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase, nit fix Created 8 years, 3 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 | « no previous file | content/public/renderer/document_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/renderer/document_state.h
diff --git a/content/public/renderer/document_state.h b/content/public/renderer/document_state.h
index d47891cb8aba9ed3a143255c1589e94a0484f1b4..b9adb22d0eaa3cd3210fba601c9c60204e2014d3 100644
--- a/content/public/renderer/document_state.h
+++ b/content/public/renderer/document_state.h
@@ -197,6 +197,15 @@ class DocumentState : public WebKit::WebDataSource::ExtraData {
is_overriding_user_agent_ = state;
}
+ // True if we have to reset the scroll and scale state of the page
+ // after the provisional load has been committed.
+ bool must_reset_scroll_and_scale_state() const {
+ return must_reset_scroll_and_scale_state_;
+ }
+ void set_must_reset_scroll_and_scale_state(bool state) {
+ must_reset_scroll_and_scale_state_ = state;
+ }
+
void set_was_prefetcher(bool value) { was_prefetcher_ = value; }
bool was_prefetcher() const { return was_prefetcher_; }
@@ -279,6 +288,7 @@ class DocumentState : public WebKit::WebDataSource::ExtraData {
bool use_error_page_;
bool is_overriding_user_agent_;
+ bool must_reset_scroll_and_scale_state_;
// A prefetcher is a page that contains link rel=prefetch elements.
bool was_prefetcher_;
« no previous file with comments | « no previous file | content/public/renderer/document_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698