diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-12-08 13:24:59 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-12-08 13:24:59 +0100 |
commit | cd7832ee326b0c424d4ad1538efd074c86a68f9b (patch) | |
tree | 158872ea92d5df96b1290b578cbe574aaa2acfd5 /chromium/ui/accessibility/ax_tree.cc | |
parent | 93cdb9906305e23304d9ff55350b7557fc1850cb (diff) | |
parent | 69b8f9169ffd66fdeca1ac60a4bc06b91d106186 (diff) | |
download | qtwebengine-chromium-cd7832ee326b0c424d4ad1538efd074c86a68f9b.tar.gz |
Merge remote-tracking branch 'origin/upstream-master' into 63-based
Change-Id: I4d88054034fccbb7409fa65c37d4498b74ec0578
Diffstat (limited to 'chromium/ui/accessibility/ax_tree.cc')
-rw-r--r-- | chromium/ui/accessibility/ax_tree.cc | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/chromium/ui/accessibility/ax_tree.cc b/chromium/ui/accessibility/ax_tree.cc index 81584ab35bf..f8827172a6a 100644 --- a/chromium/ui/accessibility/ax_tree.cc +++ b/chromium/ui/accessibility/ax_tree.cc @@ -231,37 +231,6 @@ gfx::RectF AXTree::RelativeToTreeBounds(const AXNode* node, bounds.Offset(-scroll_x, -scroll_y); } - // If this is the root web area, make sure we clip the node to fit. - if (container->data().role == ui::AX_ROLE_ROOT_WEB_AREA) { - gfx::RectF clipped = bounds; - clipped.Intersect(container_bounds); - if (!clipped.IsEmpty()) { - // We can simply clip it to the container. - bounds = clipped; - // No need to update |offscreen| if it is set, because it should be - // false by default. - } else { - // Totally offscreen. Find the nearest edge or corner. - // Make the minimum dimension 1 instead of 0. - if (bounds.x() >= container_bounds.width()) { - bounds.set_x(container_bounds.width() - 1); - bounds.set_width(1); - } else if (bounds.x() + bounds.width() <= 0) { - bounds.set_x(0); - bounds.set_width(1); - } - if (bounds.y() >= container_bounds.height()) { - bounds.set_y(container_bounds.height() - 1); - bounds.set_height(1); - } else if (bounds.y() + bounds.height() <= 0) { - bounds.set_y(0); - bounds.set_height(1); - } - if (offscreen != nullptr) - *offscreen |= true; - } - } - node = container; } |