Description[layoutng] margin: auto support
Add an ApplyAutoMargin function in ng_length_utils and use that from
ng_block_layout_algorithm.
I did not add it to computeMargins because not all callers should take
margin: auto into account. In particular, a child's width: auto computation
needs to treat margin: auto as zero (and, at any rate, does not have a fragment
available yet).
R=glebl@chromium.org,eae@chromium.org
BUG=635619
Committed: https://crrev.com/db9e18276e2915c4f59bb8f8f924e5a6cee3e0b7
Cr-Commit-Position: refs/heads/master@{#423680}
Patch Set 1 #
Total comments: 2
Patch Set 2 : review comment #Patch Set 3 : one more test now passes! #
Messages
Total messages: 17 (9 generated)
|