Commit Graph
15 Commits
Author SHA1 Message Date
Morten Stenshorne 0a71180d3e Bug 1504064 [wpt PR 13843] - [LayoutNG] Use cached fragment if size won't change., a=testonly
Automatic update from web-platform-tests[LayoutNG] Use cached fragment if size won't change.

Available size may change from one layout pass to another, but that
doesn't have to mean that we need to re-lay out a child. If we can be
sure that its size will remain the same, and that if it will keep the
same size, that won't affect any descendants, we can skip layout and
return the cached fragment.

We cannot ignore initial containing block size changes if there are
orthogonal flow root children, so keep track of that.

Makes perf_tests/layout/many-block-children-fixed-inline-size.html
about 3 times faster.

Update expectations for one invalidation test. The test has some
fixed-width descendants, so when only the window width changes,
there's less work to do, than before.

Update one unit test, and expand it a bit, to provide a case where we
actually still do need layout.

Bug: 897450
Change-Id: I063f650110d5a488de430b938b3d46e713a1433e
Reviewed-on: https://chromium-review.googlesource.com/c/1297367
Commit-Queue: Morten Stenshorne <[email protected]>
Reviewed-by: Christian Biesinger <[email protected]>
Reviewed-by: Ian Kilpatrick <[email protected]>
Cr-Commit-Position: refs/heads/master@{#605168}

--

wpt-commits: e4821cbf95780723ec4f19546b50c1a4d8774117
wpt-pr: 13843
2018-11-10 09:03:15 +00:00
Ian Kilpatrick 517d8bb742 Bug 1488882 [wpt PR 12854] - [LayoutNG] Add CalculateChildPercentageSize utility function., a=testonly
Automatic update from web-platform-tests[LayoutNG] Add CalculateChildPercentageSize utility function.

Fixes percentage sized floats which were previously not using the
correct percentage resolution size.

Cq-Include-Trybots: luci.chromium.try​:linux_layout_tests_layout_ng
Change-Id: Ie57909b7f452f5d59b8dfe2f899bedf253ab90ac
Reviewed-on: https://chromium-review.googlesource.com/1205200
Commit-Queue: Ian Kilpatrick <[email protected]>
Reviewed-by: Morten Stenshorne <[email protected]>
Cr-Commit-Position: refs/heads/master@{#588959}

--

wpt-commits: 687bba2b04f6279af734274514048f9a3c74ba37
wpt-pr: 12854
2018-09-10 10:12:07 +00:00
moz-wptsync-bot 69e12b5cd9 Bug 1468897 [wpt PR 11515] - Update wpt metadata, a=testonly
wpt-pr: 11515
wpt-type: metadata
MozReview-Commit-ID: Ep3hCydnRdA
2018-07-11 07:51:26 +01:00
David Grogan 7dde2fb938 Bug 1458766 [wpt PR 10812] - [LayoutNG] Add caption tests that NG fails, a=testonly
Automatic update from web-platform-tests[LayoutNG] Add caption tests that NG fails

There are no existing tests (or any imported that I could find) that
verify captions' BFCs behave properly.

Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_layout_ng
Change-Id: I56398bdd1ab6b993eaf8898e09b8aaa4b0ce0100
Bug: 635619
Reviewed-on: https://chromium-review.googlesource.com/1041219
Commit-Queue: David Grogan <[email protected]>
Reviewed-by: Morten Stenshorne <[email protected]>
Cr-Commit-Position: refs/heads/master@{#555822}

--

wpt-commits: 8b7ef0c6aba16661e995d2ab656c3376e4285463
wpt-pr: 10812
2018-05-14 09:54:51 +00:00
Morten Stenshorne 619314b3dd Bug 1452181 [wpt PR 10019] - [LayoutNG] Don't resolve unresolvable percentage min-height and max-height., a=testonly
Automatic update from web-platform-tests[LayoutNG] Don't resolve unresolvable percentage min-height and max-height.

We cannot use the content size (intrinsic block size) as min-height or
max-height (min-width or max-width, if writing mode is vertical).
Doing so would cause min-height to incorrectly override any specified
height or max-height that is less than the intrinsic block size, and
max-height to override any specified height that's greater than the
intrinsic block size. Do what the spec says [1] instead: max-height
to become 'none', and min-height to become 0.

This fixes the final rendering problem with Acid2 (this was about the
min-height issue). It now renders correctly with LayoutNG!

Since no other tests than Acid2 started to pass with this change, I wrote
a couple.

[1] https://www.w3.org/TR/CSS22/visudet.html#min-max-heights

     XXXXXX
   XX      XX
  X          X
 X   O    O   X
 X            X
X      /\      X
X      \/      X
X              X
 X X        X X
 X  XXXXXXXX  X
  X          X
   XX      XX
     XXXXXX

Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_layout_ng
Change-Id: Ic4f2c3c1dbc2bd66956ed4b270b08058999bc351
Reviewed-on: https://chromium-review.googlesource.com/960085
Reviewed-by: Ian Kilpatrick <[email protected]>
Reviewed-by: Aleks Totic <[email protected]>
Reviewed-by: Emil A Eklund <[email protected]>
Commit-Queue: Morten Stenshorne <[email protected]>
Cr-Commit-Position: refs/heads/master@{#543018}

wpt-commits: 6573773339b47b2e255df1e274788257aa50ad92
wpt-pr: 10019
wpt-commits: 6573773339b47b2e255df1e274788257aa50ad92
wpt-pr: 10019
2018-04-15 08:31:17 +01:00
Morten Stenshorne 3a79ce1155 Bug 1436558 [wpt PR 9430] - [LayoutNG] Mild cleanup and bugfixing of end margin strut handling., a=testonly
Automatic update from web-platform-tests
Also some more documentation.

Tried to make the various situations a bit clearer, with documentation
and code. And shared code for layout abortion.

The code used to call MaybeUpdateFragmentBfcOffset() quite
unconditionally based on an *end* offset inside the block. I found it
confusing to use an end offset as a BFC start offset. The code was
correct, though, since MaybeUpdateFragmentBfcOffset() wouldn't do
anything if the BFC offset was already known (which would be the case
if had children with actual size, for instance, making for a strange
BFC offset in that case). We'll now only call
MaybeUpdateFragmentBfcOffset() if BFC offset is unknown.
That's the only time end_bfc_block_offset can actually be used as a BFC
start offset.

Fixed one bug, though: A block with explicit height:0 ate the input
margin, rather than letting it collapse through and propagate to
subsequent layout input nodes. The intention of the code was just to get
rid of the last child margin, since height was non-auto. Now we check if
we have a BFC offset before doing so. If we have BFC offset, it means
that no input margins should collapse through. And if we DON'T have a
BFC offset, leave the margins alone for subsequent layout input nodes.
Otherwise we'd just lose them.

Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_layout_ng
Change-Id: Iec8cea316015c6d36ef6bab9acbe826513222b1d
Reviewed-on: https://chromium-review.googlesource.com/907549
Commit-Queue: Morten Stenshorne <[email protected]>
Commit-Queue: Emil A Eklund <[email protected]>
Reviewed-by: Emil A Eklund <[email protected]>
Reviewed-by: Ian Kilpatrick <[email protected]>
Cr-Commit-Position: refs/heads/master@{#535273}

<!-- Reviewable:start -->

<!-- Reviewable:end -->

wpt-commits: 19b995f0100dcc3c163153bd7e0a32249d736034
wpt-pr: 9430
reapplied-commits: 370e267e160568862f1fd9ec246ab5bb840f586e, fe4514c84e7ad28e46bad5da93381deb99b177f3, 7806af854343c043a2645a4034fdc7812f65daad, 9ddfd21554293dec5a4bf2e5375ae4f3c9f2ded0, 75f63c4d1ebc949647184fd60972fc7b9fd4affb, 1f3a5b496acd2288cc8cf0c32af86cb35157ea4e, 88b42bd5847abac58a62c4d6b33c1509bfce5f3d, 15c2e4c690700c6c115f8afe5e44ded10d943538, c8d461ef1437641ae7d4ea1d21e1e60cd62910b0, a6088a5f48ee299386a84d2f771902267d7355b1, 0634cd8f08ebe0905a9188fb1398c7b5f889c5dc, c8ee4a012dae506ae06bb5b2ad50942b04c1aaaa, c2c352456a4cf62dcc12f851138b04397675a445, b93a8879555d2fa7e7d4e00a275513a3a6338b35, b86e1331cb36634fd33677043b61fc0c1d8485bc, 44ddf14fd3346658c3223f13652073fafbfa48fa, a1a5840a6bb53e305ba02bcbeb215659342d0edb, 7465cb110ae5ec2e2ca73182caf5293f0efc8fd5, aad5349b3458bc3414e274b33fa86a1123901ff2, eca0907980d2769c449894a6277c60c1a306792f, 38626987c0cfd6e715cfcc6f4f1a1209191a03c5, e4a67f7ddcde6cd99348e9104bd7ed07074da44a, bb3c9990840a0fae2afc840b5952d7874785b112, 042d7adef0bdb9dc80e825c3997ace7519477c42, 99f1ea44fc7915b8b7b33bce4732fa8765fd3ac2, b81999f30c1516a70c153de51a0331d14c8faead
2018-03-09 10:23:13 +00:00
Cosmin Sabou 1f10e98400 Backed out 28 changesets (bug 1436506, bug 1436451, bug 1436996, bug 1436991, bug 1436558, bug 1436398, bug 1443501, bug 1437067, bug 1436436, bug 1436497, bug 1441364, bug 1436405, bug 1441367, bug 1436440, bug 1436416, bug 1436522, bug 1443192) for mass wpt failures after backout for bug 1443558. a=backout
Backed out changeset 09992ffb6a0d (bug 1437067)
Backed out changeset 340be2f71abf (bug 1437067)
Backed out changeset fd8dcd647f0e (bug 1436996)
Backed out changeset 15ff3b2ed202 (bug 1441367)
Backed out changeset bb0cf2a57f10 (bug 1441367)
Backed out changeset 9a8713e25d0e (bug 1436522)
Backed out changeset c5e6aba65927 (bug 1436522)
Backed out changeset 9673a31cbd06 (bug 1436991)
Backed out changeset 260c6ce91561 (bug 1436558)
Backed out changeset aae516e4f973 (bug 1443501)
Backed out changeset ce2b417e9261 (bug 1443501)
Backed out changeset 8daa68e631db (bug 1441364)
Backed out changeset 6015bfa88dd2 (bug 1441364)
Backed out changeset 176a3931afef (bug 1436497)
Backed out changeset ed58e17e8abe (bug 1436497)
Backed out changeset 40628dced2b8 (bug 1436506)
Backed out changeset 0901be04972f (bug 1443192)
Backed out changeset 3f1f453a3cdd (bug 1443192)
Backed out changeset fef37d4246d4 (bug 1436451)
Backed out changeset 99fd7a7dcbca (bug 1436405)
Backed out changeset 0ee344617508 (bug 1436405)
Backed out changeset b84b7682d105 (bug 1436440)
Backed out changeset 1f8ba818cab9 (bug 1436436)
Backed out changeset 010c0213dab3 (bug 1436436)
Backed out changeset 3a2ddfdae7d9 (bug 1436398)
Backed out changeset 68ef54b2b9e0 (bug 1436398)
Backed out changeset 1ce98b09f438 (bug 1436416)
Backed out changeset 7b7d1504387a (bug 1436416)
2018-03-08 08:12:16 +02:00
Morten Stenshorne e7c42c0ca5 Bug 1436558 [wpt PR 9430] - [LayoutNG] Mild cleanup and bugfixing of end margin strut handling., a=testonly
Automatic update from web-platform-tests
Also some more documentation.

Tried to make the various situations a bit clearer, with documentation
and code. And shared code for layout abortion.

The code used to call MaybeUpdateFragmentBfcOffset() quite
unconditionally based on an *end* offset inside the block. I found it
confusing to use an end offset as a BFC start offset. The code was
correct, though, since MaybeUpdateFragmentBfcOffset() wouldn't do
anything if the BFC offset was already known (which would be the case
if had children with actual size, for instance, making for a strange
BFC offset in that case). We'll now only call
MaybeUpdateFragmentBfcOffset() if BFC offset is unknown.
That's the only time end_bfc_block_offset can actually be used as a BFC
start offset.

Fixed one bug, though: A block with explicit height:0 ate the input
margin, rather than letting it collapse through and propagate to
subsequent layout input nodes. The intention of the code was just to get
rid of the last child margin, since height was non-auto. Now we check if
we have a BFC offset before doing so. If we have BFC offset, it means
that no input margins should collapse through. And if we DON'T have a
BFC offset, leave the margins alone for subsequent layout input nodes.
Otherwise we'd just lose them.

Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_layout_ng
Change-Id: Iec8cea316015c6d36ef6bab9acbe826513222b1d
Reviewed-on: https://chromium-review.googlesource.com/907549
Commit-Queue: Morten Stenshorne <[email protected]>
Commit-Queue: Emil A Eklund <[email protected]>
Reviewed-by: Emil A Eklund <[email protected]>
Reviewed-by: Ian Kilpatrick <[email protected]>
Cr-Commit-Position: refs/heads/master@{#535273}

<!-- Reviewable:start -->

<!-- Reviewable:end -->

wpt-commits: 19b995f0100dcc3c163153bd7e0a32249d736034
wpt-pr: 9430
reapplied-commits: 370e267e160568862f1fd9ec246ab5bb840f586e, fe4514c84e7ad28e46bad5da93381deb99b177f3, 7806af854343c043a2645a4034fdc7812f65daad, 9ddfd21554293dec5a4bf2e5375ae4f3c9f2ded0, 75f63c4d1ebc949647184fd60972fc7b9fd4affb, 1f3a5b496acd2288cc8cf0c32af86cb35157ea4e, 88b42bd5847abac58a62c4d6b33c1509bfce5f3d, 15c2e4c690700c6c115f8afe5e44ded10d943538, c8d461ef1437641ae7d4ea1d21e1e60cd62910b0, a6088a5f48ee299386a84d2f771902267d7355b1, 0634cd8f08ebe0905a9188fb1398c7b5f889c5dc, c8ee4a012dae506ae06bb5b2ad50942b04c1aaaa, c2c352456a4cf62dcc12f851138b04397675a445, b93a8879555d2fa7e7d4e00a275513a3a6338b35, b86e1331cb36634fd33677043b61fc0c1d8485bc, 44ddf14fd3346658c3223f13652073fafbfa48fa, a1a5840a6bb53e305ba02bcbeb215659342d0edb, 7465cb110ae5ec2e2ca73182caf5293f0efc8fd5, aad5349b3458bc3414e274b33fa86a1123901ff2, eca0907980d2769c449894a6277c60c1a306792f, 38626987c0cfd6e715cfcc6f4f1a1209191a03c5, e4a67f7ddcde6cd99348e9104bd7ed07074da44a, bb3c9990840a0fae2afc840b5952d7874785b112, 042d7adef0bdb9dc80e825c3997ace7519477c42, 99f1ea44fc7915b8b7b33bce4732fa8765fd3ac2, b81999f30c1516a70c153de51a0331d14c8faead
2018-03-07 15:49:53 +00:00
James Graham 4706d37b48 Bug 1435337 - Update web-platform-tests to revision 7174d3e89f3057aae399483194dc4b608ee8c933, a=testonly
MozReview-Commit-ID: CSM0hnryiTp
2018-02-02 19:09:23 +00:00
James Graham 70d673c377 Bug 1410245 - Update web-platform-tests to revision a372dce582c21c911056273eec042fd9073cbd60, a=testonly
MozReview-Commit-ID: CQzdR66hsXZ
2017-10-25 10:45:59 +01:00
Attila Craciun c1a7e6e3a9 Backed out changeset 2c89e7b44592 (bug 1410245) for failing Windows web platform tests (Assertion Failure) r=backout on a CLOSED TREE. 2017-10-20 15:37:18 +03:00
James Graham 09fc912cfe Bug 1410245 - Update web-platform-tests to revision a372dce582c21c911056273eec042fd9073cbd60, a=testonly
MozReview-Commit-ID: CQzdR66hsXZ
2017-10-20 11:07:49 +01:00
Sebastian Hengst c6ce04b694 Backed out changeset 8cbc5032b043 (bug 1410245) for references to removed files in wpt's moz.build file. r=backout on a CLOSED TREE 2017-10-20 00:50:06 +02:00
James Graham 15428f7b8f Bug 1410245 - Update web-platform-tests to revision a372dce582c21c911056273eec042fd9073cbd60, a=testonly
MozReview-Commit-ID: CQzdR66hsXZ
2017-10-19 22:22:41 +01:00
James Graham 4163e541cc Bug 1381842 - Update web-platform-tests to revision 85ae24e3dc80ee63b6dc2ed78a922cff68c6e819, a=testonly
MozReview-Commit-ID: DfvN9mAFYhI
2017-07-20 13:05:25 +01:00