Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDo not create stacking contexts for text fragments #11035
Conversation
highfive
commented
May 5, 2016
|
An example of this problem is that following HTML creates around 15 stacking contexts:
|
|
@pcwalton r? |
|
@bors-servo: r+ |
|
|
…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 -->
|
|
highfive
commented
May 6, 2016
|
|
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
highfive
commented
May 9, 2016
|
New code was committed to pull request. |
|
@bors-servo: r+ |
|
|
…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 -->
|
|
highfive
commented
May 11, 2016
|
|
So it seems like the results differ between mac and linux. Very curious. |
41f5cc8
to
ee4c8f1
highfive
commented
May 27, 2016
|
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
highfive
commented
Jun 1, 2016
|
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 -->
|
|
|
@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 |
|
|
…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 -->
|
|
|
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. |
mrobinson commentedMay 5, 2016
•
edited by larsbergstrom
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