Index: content/renderer/render_frame_impl.cc |
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc |
index 32705ca85bd22eac78a5d7099615f0ab4d6ae9e9..328929f1e802490ca3950d93c9c76a9cf353297b 100644 |
--- a/content/renderer/render_frame_impl.cc |
+++ b/content/renderer/render_frame_impl.cc |
@@ -2521,11 +2521,10 @@ void RenderFrameImpl::addNavigationTransitionData( |
allowed_destination_host_pattern.utf8(); |
params.selector = selector.utf8(); |
params.markup = markup.utf8(); |
+ params.elements.resize(web_names.size()); |
for (size_t i = 0; i < web_names.size(); i++) { |
- params.names.push_back(web_names[i].utf8()); |
- } |
- for (size_t i = 0; i < web_rects.size(); i++) { |
- params.rects.push_back(gfx::Rect(web_rects[i])); |
+ params.elements[i].name = web_names[i].utf8(); |
+ params.elements[i].rect = gfx::Rect(web_rects[i]); |
} |
Send(new FrameHostMsg_AddNavigationTransitionData(params)); |