Slight reorganization of ComputeInlineBoxPosition
This patch slightly reorganizes the above mentioned function to make the logic clearer that, the function has three major branches dependig on the type of |layout_object|: text, block flow with children, or atomic inline. Detail: Adding |IsAtomicInlineLevel()| check to the last part of the function doesn't introduce any behavior change. This is because that |LayoutBox::InlineBoxWrapper()| returns non-null result only when the layout object is an atomic inline. Bug: 771398 Change-Id: Id61830a9ad11de40c5ae7456e3e13b6a4094b1a9 Reviewed-on: https://chromium-review.googlesource.com/775659Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#517410}
Showing
Please register or sign in to comment