Skip to content

layout: Improve our handling of inline absolute containing blocks. - #7177

Merged
bors-servo merged 1 commit into
servo:masterfrom
pcwalton:intervening-inline-block
Aug 17, 2015
Merged

bors-servo merged 1 commit into
servo:masterfrom
pcwalton:intervening-inline-block

Conversation

@pcwalton

Copy link
Copy Markdown
Contributor

Several issues are addressed in this commit:

  • Inline flows now bubble up their absolute descendants instead of
    making the inline flow the containing block for them. (In the future,
    we will need to make the inline flow sometimes be the containing
    block for them, but for now it improves sites to unconditionally
    bubble up.)
  • Fragments now look at their inline fragment context to determine
    whether they are positioned.
  • Inline flows now push the stacking-relative position of the absolute
    containing block down to their inline-block fragments.
  • Inline absolute hypothetical fragments can be containing blocks.
  • Fixes the logic in
    containing_block_range_for_flow_surrounding_fragment_at_index. The
    condition to determine whether fragments are positioned was inverted!
  • Descendants/AbsDescendants has been refactored in order to become
    more friendly to inline absolute containing blocks in the future.

Improves the inline position of the green drop-down arrow in the Google
SERPs. (The block position is still wrong.)

r? @mbrubeck

Review on Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Aug 12, 2015
@mbrubeck mbrubeck self-assigned this Aug 12, 2015

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file looks identical to the other one

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@pcwalton
pcwalton force-pushed the intervening-inline-block branch from d63e0f2 to b26e2dc Compare August 12, 2015 21:43
@mbrubeck

Copy link
Copy Markdown
Contributor

Reviewed 7 of 8 files at r1, 1 of 1 files at r2.
Review status: all files reviewed at latest revision, 1 unresolved discussion, all commit checks successful.


Comments from the review on Reviewable.io

@mbrubeck

Copy link
Copy Markdown
Contributor

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit b26e2dc has been approved by mbrubeck

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Aug 12, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit b26e2dc with merge 53cdd09...

bors-servo pushed a commit that referenced this pull request Aug 12, 2015
layout: Improve our handling of inline absolute containing blocks.

Several issues are addressed in this commit:

* Inline flows now bubble up their absolute descendants instead of
  making the inline flow the containing block for them. (In the future,
  we will need to make the inline flow *sometimes* be the containing
  block for them, but for now it improves sites to unconditionally
  bubble up.)

* Fragments now look at their inline fragment context to determine
  whether they are positioned.

* Inline flows now push the stacking-relative position of the absolute
  containing block down to their inline-block fragments.

* Inline absolute hypothetical fragments can be containing blocks.

* Fixes the logic in
  `containing_block_range_for_flow_surrounding_fragment_at_index`. The
  condition to determine whether fragments are positioned was inverted!

* `Descendants`/`AbsDescendants` has been refactored in order to become
  more friendly to inline absolute containing blocks in the future.

Improves the inline position of the green drop-down arrow in the Google
SERPs. (The block position is still wrong.)

r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7177)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux2

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Aug 12, 2015
@mbrubeck

Copy link
Copy Markdown
Contributor
 0:30.87 PROCESS_OUTPUT: Thread-TestrunnerManager-37 (pid:101668) Full command: /home/servo/buildbot/slave/linux2/build/target/release/servo --cpu --hard-fail --exit -u Servo/wptrunner -Z disable-text-aa --output=/tmp/tmpP0q3TA/e6ee477d-2182-43cf-91b8-9a53f3e8654a http://localhost:8000/css21_dev/html4/abspos-007.htm --user-stylesheet /home/servo/buildbot/slave/linux2/build/resources/ahem.css
(pid:101668) "thread 'LayoutWorker worker 1/27' panicked at 'called `Option::unwrap()` on a `None` value', src/libcore/option.rs:363"

/css21_dev/html4/abspos-007.htm
-------------------------------
TIMEOUT expected FAIL [Parent]

@Ms2ger

Ms2ger commented Aug 13, 2015

Copy link
Copy Markdown
Contributor

Just one test?

@pcwalton
pcwalton force-pushed the intervening-inline-block branch from b26e2dc to e2d9eb8 Compare August 14, 2015 21:50
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-tests-failed The changes caused existing tests to fail. labels Aug 14, 2015
@pcwalton

Copy link
Copy Markdown
Contributor Author

@bors-servo: r=mbrubeck

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit e2d9eb8 has been approved by mbrubeck

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit e2d9eb8 with merge 968b86b...

bors-servo pushed a commit that referenced this pull request Aug 14, 2015
layout: Improve our handling of inline absolute containing blocks.

Several issues are addressed in this commit:

* Inline flows now bubble up their absolute descendants instead of
  making the inline flow the containing block for them. (In the future,
  we will need to make the inline flow *sometimes* be the containing
  block for them, but for now it improves sites to unconditionally
  bubble up.)

* Fragments now look at their inline fragment context to determine
  whether they are positioned.

* Inline flows now push the stacking-relative position of the absolute
  containing block down to their inline-block fragments.

* Inline absolute hypothetical fragments can be containing blocks.

* Fixes the logic in
  `containing_block_range_for_flow_surrounding_fragment_at_index`. The
  condition to determine whether fragments are positioned was inverted!

* `Descendants`/`AbsDescendants` has been refactored in order to become
  more friendly to inline absolute containing blocks in the future.

Improves the inline position of the green drop-down arrow in the Google
SERPs. (The block position is still wrong.)

r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7177)
<!-- Reviewable:end -->
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Aug 14, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux1

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Aug 14, 2015
@mbrubeck

Copy link
Copy Markdown
Contributor
failures:
    absolute_inline_containing_block_a.html == absolute_inline_containing_block_ref.html

@pcwalton
pcwalton force-pushed the intervening-inline-block branch from e2d9eb8 to ebd030b Compare August 15, 2015 02:29
@highfive highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Aug 15, 2015
@pcwalton

Copy link
Copy Markdown
Contributor Author

The reftest failure was a 1-pixel Linux-only difference that I think I just removed.

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit ebd030b with merge aac7476...

bors-servo pushed a commit that referenced this pull request Aug 15, 2015
layout: Improve our handling of inline absolute containing blocks.

Several issues are addressed in this commit:

* Inline flows now bubble up their absolute descendants instead of
  making the inline flow the containing block for them. (In the future,
  we will need to make the inline flow *sometimes* be the containing
  block for them, but for now it improves sites to unconditionally
  bubble up.)

* Fragments now look at their inline fragment context to determine
  whether they are positioned.

* Inline flows now push the stacking-relative position of the absolute
  containing block down to their inline-block fragments.

* Inline absolute hypothetical fragments can be containing blocks.

* Fixes the logic in
  `containing_block_range_for_flow_surrounding_fragment_at_index`. The
  condition to determine whether fragments are positioned was inverted!

* `Descendants`/`AbsDescendants` has been refactored in order to become
  more friendly to inline absolute containing blocks in the future.

Improves the inline position of the green drop-down arrow in the Google
SERPs. (The block position is still wrong.)

r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7177)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac2

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Aug 15, 2015
@jdm

jdm commented Aug 15, 2015

Copy link
Copy Markdown
Member

failures:
    absolute_inline_containing_block_a.html == absolute_inline_containing_block_ref.html

@pcwalton

Copy link
Copy Markdown
Contributor Author

Ugh! 1-pixel OS-specific differences :(

@pcwalton
pcwalton force-pushed the intervening-inline-block branch from ebd030b to cfb3297 Compare August 17, 2015 18:50
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-tests-failed The changes caused existing tests to fail. labels Aug 17, 2015
Several issues are addressed in this commit:

* Inline flows now bubble up their absolute descendants instead of
  making the inline flow the containing block for them. (In the future,
  we will need to make the inline flow *sometimes* be the containing
  block for them, but for now it improves sites to unconditionally
  bubble up.)

* Fragments now look at their inline fragment context to determine
  whether they are positioned.

* Inline flows now push the stacking-relative position of the absolute
  containing block down to their inline-block fragments.

* Inline absolute hypothetical fragments can be containing blocks.

* Fixes the logic in
  `containing_block_range_for_flow_surrounding_fragment_at_index`. The
  condition to determine whether fragments are positioned was inverted!

* `Descendants`/`AbsDescendants` has been refactored in order to become
  more friendly to inline absolute containing blocks in the future.

Improves the inline position of the green drop-down arrow in the Google
SERPs. (The block position is still wrong.)
@pcwalton
pcwalton force-pushed the intervening-inline-block branch from cfb3297 to a303799 Compare August 17, 2015 19:43
@pcwalton

Copy link
Copy Markdown
Contributor Author

@bors-servo: r=mbrubeck

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit a303799 has been approved by mbrubeck

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Aug 17, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit a303799 with merge d654841...

bors-servo pushed a commit that referenced this pull request Aug 17, 2015
layout: Improve our handling of inline absolute containing blocks.

Several issues are addressed in this commit:

* Inline flows now bubble up their absolute descendants instead of
  making the inline flow the containing block for them. (In the future,
  we will need to make the inline flow *sometimes* be the containing
  block for them, but for now it improves sites to unconditionally
  bubble up.)

* Fragments now look at their inline fragment context to determine
  whether they are positioned.

* Inline flows now push the stacking-relative position of the absolute
  containing block down to their inline-block fragments.

* Inline absolute hypothetical fragments can be containing blocks.

* Fixes the logic in
  `containing_block_range_for_flow_surrounding_fragment_at_index`. The
  condition to determine whether fragments are positioned was inverted!

* `Descendants`/`AbsDescendants` has been refactored in order to become
  more friendly to inline absolute containing blocks in the future.

Improves the inline position of the green drop-down arrow in the Google
SERPs. (The block position is still wrong.)

r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7177)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux2

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Aug 17, 2015
@pcwalton

Copy link
Copy Markdown
Contributor Author

@bors-servo: retry

@bors-servo

Copy link
Copy Markdown
Contributor

⚡ Previous build results for android, gonk, mac1, mac2, mac3 are reusable. Rebuilding only linux1, linux2...

@pcwalton

Copy link
Copy Markdown
Contributor Author

Weird error (binary does not exist) - looks infra related

@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux1, linux2, mac1, mac2, mac3

@bors-servo
bors-servo merged commit a303799 into servo:master Aug 17, 2015
@SimonSapin SimonSapin removed the S-tests-failed The changes caused existing tests to fail. label Jan 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants