Repository navigation
Do not create stacking contexts for text fragments - #11035
Conversation
|
An example of this problem is that following HTML creates around 15 stacking contexts: |
|
@pcwalton r? |
|
@bors-servo: r+ |
|
📌 Commit ea67804 has been approved by |
…nts, r=pcwalton Do not create stacking contexts for text fragments Without this change, each text fragment in a block that establishes a stacking context will establish its own stacking context. This is unnecessary and increases the amount of work done during display list construction. This change should not change output, but should improve performance. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11035) <!-- Reviewable:end -->
|
💔 Test failed - mac-rel-css |
|
|
I investigated both newly failing tests. for both tests, the test and reference match before my change, but both are rendered incorrectly (according to companion text and display in Firefox and Chromium). For the first test, the reference has progressed slightly, but the test has not. For the second test, the test itself has progressed, but the reference has not. I think the right thing to do here is to mark these tests as failing. The failing reference reflects an improvement in proper layout, but not a sufficient one to keep the tests passing. Later I can investigate why these are failing. |
|
I agree with marking them both failing. |
ea67804 to
f7134ca
Compare
|
New code was committed to pull request. |
|
@bors-servo: r+ |
|
📌 Commit f7134ca has been approved by |
…nts, r=pcwalton Do not create stacking contexts for text fragments Without this change, each text fragment in a block that establishes a stacking context will establish its own stacking context. This is unnecessary and increases the amount of work done during display list construction. This change should not change output, but should improve performance. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11035) <!-- Reviewable:end -->
|
💔 Test failed - mac-rel-css |
|
So it seems like the results differ between mac and linux. Very curious. |
41f5cc8 to
ee4c8f1
Compare
|
New code was committed to pull request. |
Without this change, each text fragment in a block that establishes a stacking context will establish its own stacking context. This is unnecessary and increases the amount of work done during display list construction.
ee4c8f1 to
7e4cf6a
Compare
|
New code was committed to pull request. |
|
@bors-servo try |
…nts, r=<try> Do not create stacking contexts for text fragments Without this change, each text fragment in a block that establishes a stacking context will establish its own stacking context. This is unnecessary and increases the amount of work done during display list construction. This change should not change output, but should improve performance. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11035) <!-- Reviewable:end -->
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows |
|
@pcwalton So, I think that the failure in '/css-transforms-1_dev/html/css-transforms-3d-on-anonymous-block-001.htm' is platform specific due to font issues. I looked at the failing image and the text is shifted a few pixels up on Linux and not on Mac. I've posted a new patch which marks the test as failing only on Linux. Does this seem like a reasonable way forward? |
|
Sure, that's fine. |
|
@pcwalton Thanks! I'll hand it to bors again. |
|
@bors-servo r=pcwalton |
|
📌 Commit 7e4cf6a has been approved by |
…nts, r=pcwalton Do not create stacking contexts for text fragments Without this change, each text fragment in a block that establishes a stacking context will establish its own stacking context. This is unnecessary and increases the amount of work done during display list construction. This change should not change output, but should improve performance. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11035) <!-- Reviewable:end -->
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows |
|
This PR made css-transforms-1_dev/html/transform-abspos-002.htm and css-transforms-1_dev/html/transform-abspos-007.htm very unstable. |
|
Possible also #11574. |
|
Uugh. Sorry for this breakage. I'm going to try to allocate some time to look at this today. |
Without this change, each text fragment in a block that establishes a
stacking context will establish its own stacking context. This is
unnecessary and increases the amount of work done during display list
construction. This change should not change output, but should improve
performance.
This change is