• kojii's avatar
    [LayoutNG] Set InlineBoxWrapper when copying fragments to LayoutBox · b0ad7c5c
    kojii authored
    Re-land of r485142 due to one crash turned to flaky.
    
    This patch fixes to set InlineBoxWrapper when copying fragments to
    LayoutBox.
    
    To create InlineBox'es, NGInlineNode::CopyFragmentDataToLayoutBox()
    calls LayoutBlockFlow::ConstructLine(), but it does not set
    InlineBoxWrapper.
    
    LayoutBlockFlow::ComputeBlockDirectionPositionsForLine() sets
    InlineBoxWrapper but LayoutNG does not call this function. It does
    several other things, but SetInlineBoxWrapper() is the only thing needed
    for CopyFragmentDataToLayoutBox().
    
    BUG=636993, 739365
    
    Review-Url: https://codereview.chromium.org/2975663002
    Cr-Commit-Position: refs/heads/master@{#485160}
    b0ad7c5c
TestExpectations 250 KB