commit | eff2364e27c71e9becf6c634842dc271c10bfe6e | [log] [tgz] |
---|---|---|
author | Koji Ishii <kojii@chromium.org> | Fri Oct 06 20:09:43 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Oct 06 20:09:43 2017 |
tree | 6095c05cf8c49ff1f3129cf2cad8a7bb62e69ab6 | |
parent | dead4a6c01ec0850e2ea507427cf60b2ad39c93b [diff] |
[LayoutNG] Add NGLogicalRect This patch adds NGLogicalRect to compute visual rect in logical coordinates. In doing this, minor adjustments are done to NGLogicalOffset: 1. Add operator+/- for NGLogicalSize. 2. Whether "offset - offset" should produce "size" or "offset" was controversial. Added two functions to clarify, "RelativeTo" and "DistanceTo", and keep the "operator-" unchanged as the alias to "offset" version. Bug: 591099 Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_layout_ng Change-Id: Ib3e5450cdf040dcffc50b6e3f69cc00d52338780 Reviewed-on: https://chromium-review.googlesource.com/701817 Commit-Queue: Koji Ishii <kojii@chromium.org> Reviewed-by: Emil A Eklund <eae@chromium.org> Reviewed-by: Morten Stenshorne <mstensho@opera.com> Cr-Commit-Position: refs/heads/master@{#507157}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .