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

Unified Diff: content/common/page_state_serialization.cc

Issue 400923002: Save some gcc footprint (15 KB) in ExplodedFrameState. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ExplodedFrameSet - not inlined Created 6 years, 5 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 | « content/common/page_state_serialization.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/page_state_serialization.cc
diff --git a/content/common/page_state_serialization.cc b/content/common/page_state_serialization.cc
index 9239d030ccb4f6ec1f4635f967baa9ffa5eab192..add164bf2662e2e2622bd9ee3094b9f8488fdbcf 100644
--- a/content/common/page_state_serialization.cc
+++ b/content/common/page_state_serialization.cc
@@ -696,9 +696,34 @@ ExplodedFrameState::ExplodedFrameState()
referrer_policy(blink::WebReferrerPolicyDefault) {
}
+ExplodedFrameState::ExplodedFrameState(const ExplodedFrameState& other) {
+ assign(other);
+}
+
ExplodedFrameState::~ExplodedFrameState() {
}
+void ExplodedFrameState::operator=(const ExplodedFrameState& other) {
+ if (&other != this)
+ assign(other);
+}
+
+void ExplodedFrameState::assign(const ExplodedFrameState& other) {
+ url_string = other.url_string;
+ referrer = other.referrer;
+ target = other.target;
+ state_object = other.state_object;
+ document_state = other.document_state;
+ pinch_viewport_scroll_offset = other.pinch_viewport_scroll_offset;
+ scroll_offset = other.scroll_offset;
+ item_sequence_number = other.item_sequence_number;
+ document_sequence_number = other.document_sequence_number;
+ page_scale_factor = other.page_scale_factor;
+ referrer_policy = other.referrer_policy;
+ http_body = other.http_body;
+ children = other.children;
+}
+
ExplodedPageState::ExplodedPageState() {
}
« no previous file with comments | « content/common/page_state_serialization.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698