[LayoutNG] Make NonInlineBlockFlow() in ax_node_object.cc to use IsAtomicInlineLevel()
This patch makes file local funciton |NonInlineBlockFlow()| in "ax_node_object.cc" to use |IsAtomicInlineLevel()| to make this funciton to work both legacy layout and LayoutNG. Note: |IsAtomicInlineLevel()| is a bitfiled in |LayoutObject|. It is set by |LayoutBlock::StyleWillChange()| when compute style has "display:inline-block". Therefore, in legacy layout, when |IsAtomicInlineLevel()| is true for |LayoutBlockFlow|, |!InlineBoxWrapper() == !IsAtomicInlineLevel()|. In LayoutNG, |IsAtomicInlineLevel()| is used for computing physical fragment box type in |BoxTypeFromLayoutObject()|. |BoxTypeFromLayoutObject()| returns |NGBoxyType::kAtomicInline| for |IsAtomicInlineLevel()|. Bug: 591099 Change-Id: Ieafd8a414662df7e0d4f48f1b15657a602265559 Reviewed-on: https://chromium-review.googlesource.com/1092224Reviewed-by:Koji Ishii <kojii@chromium.org> Reviewed-by:
Dominic Mazzoni <dmazzoni@chromium.org> Commit-Queue: Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#566770}
Showing
Please register or sign in to comment