[go: up one dir, main page]

Revert "Allocate memory for borders and padding members of NGPhysicalBoxFragment if needed"

This reverts commit d91d4f3cdb39fc6157a1a05b8353110ecce8c5d4.

Reason for revert:Breaks beta builds, crbug 974731

Original change's description:
> Allocate memory for borders and padding members of NGPhysicalBoxFragment if needed
> 
> This patch changes memory layout of |NGPhysicalBoxFragment| based on value of
> borders and padding as
>  - No borders and no padding
>   |NGPhysicalBoxFragment|, children[]
>  - having both borders no padding
>   |NGPhysicalBoxFragment|, children[], borders, padding
>  - borders and no padding
>   |NGPhysicalBoxFragment|, children[], borders
>  - no borders and padding
>   |NGPhysicalBoxFragment|, children[], padding
> for reducing memory usage, since borders and padding are frequently zero.
> 
> (cherry picked from commit 8318aa75176654769ece376cd71fd9fc5deef823)
> 
> TBR=yosin@chromium.org
> 
> Bug: 962108
> Change-Id: I2af0ed3a3c3f111d2d4cd567073ebcba628c7279
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1662094
> Reviewed-by: Yoshifumi Inoue <yosin@chromium.org>
> Cr-Commit-Position: refs/branch-heads/3809@{#335}
> Cr-Branched-From: d82dec1a818f378c464ba307ddd9c92133eac355-refs/heads/master@{#665002}

TBR=yosin@chromium.org

Change-Id: I99119543d16950d287ba0497b5850c91e9c1cb5c
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 962108
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1661662
Reviewed-by: Krishna Govind <govind@chromium.org>
Cr-Commit-Position: refs/branch-heads/3809@{#343}
Cr-Branched-From: d82dec1a818f378c464ba307ddd9c92133eac355-refs/heads/master@{#665002}
4 files changed