Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/renderer/accessibility/render_accessibility_impl.h" | 5 #include "content/renderer/accessibility/render_accessibility_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <queue> | 10 #include <queue> |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 388 WebFloatRect bounds_in_container; | 388 WebFloatRect bounds_in_container; |
| 389 SkMatrix44 container_transform; | 389 SkMatrix44 container_transform; |
| 390 obj.getRelativeBounds( | 390 obj.getRelativeBounds( |
| 391 offset_container, bounds_in_container, container_transform); | 391 offset_container, bounds_in_container, container_transform); |
| 392 ui::AXRelativeBounds new_location; | 392 ui::AXRelativeBounds new_location; |
| 393 new_location.offset_container_id = offset_container.axID(); | 393 new_location.offset_container_id = offset_container.axID(); |
| 394 new_location.bounds = bounds_in_container; | 394 new_location.bounds = bounds_in_container; |
| 395 if (!container_transform.isIdentity()) | 395 if (!container_transform.isIdentity()) |
| 396 new_location.transform = base::WrapUnique( | 396 new_location.transform = base::WrapUnique( |
| 397 new gfx::Transform(container_transform)); | 397 new gfx::Transform(container_transform)); |
| 398 if (iter != locations_.end() && iter->second != new_location) { | 398 if (iter->second != new_location) { |
|
aboxhall
2016/08/22 19:48:38
Why is this no longer necessary?
dmazzoni
2016/08/22 21:29:14
A few lines above, we have:
if (iter == locations
| |
| 399 AccessibilityHostMsg_LocationChangeParams message; | 399 AccessibilityHostMsg_LocationChangeParams message; |
| 400 message.id = id; | 400 message.id = id; |
| 401 message.new_location = new_location; | 401 message.new_location = new_location; |
| 402 messages.push_back(message); | 402 messages.push_back(message); |
| 403 } | 403 } |
| 404 | 404 |
| 405 // Save the new location. | 405 // Save the new location. |
| 406 new_locations[id] = new_location; | 406 new_locations[id] = new_location; |
| 407 | 407 |
| 408 // Explore children of this object. | 408 // Explore children of this object. |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 689 size_t new_count = pdf_update.nodes.size(); | 689 size_t new_count = pdf_update.nodes.size(); |
| 690 update->nodes.resize(old_count + new_count); | 690 update->nodes.resize(old_count + new_count); |
| 691 for (size_t i = 0; i < new_count; ++i) | 691 for (size_t i = 0; i < new_count; ++i) |
| 692 update->nodes[old_count + i] = pdf_update.nodes[i]; | 692 update->nodes[old_count + i] = pdf_update.nodes[i]; |
| 693 break; | 693 break; |
| 694 } | 694 } |
| 695 } | 695 } |
| 696 } | 696 } |
| 697 | 697 |
| 698 } // namespace content | 698 } // namespace content |
| OLD | NEW |