Граф коммитов

16699 Коммитов

Автор SHA1 Сообщение Дата
Brendan Dahl 237d762715 Bug 1510785 - Skip all XBL related tests when XBL is disabled. r=bzbarsky
XBL will be disabled on android, so these tests must be skipped. Where possible
tests are copied to create shadow DOM tests.

Depends on D45615

Differential Revision: https://phabricator.services.mozilla.com/D45616

--HG--
rename : layout/inspector/tests/test_bug522601.xhtml => layout/inspector/tests/test_bug522601-shadow.xhtml
rename : layout/inspector/tests/test_bug609549.xhtml => layout/inspector/tests/test_bug609549-shadow.xhtml
rename : layout/reftests/bugs/334829-1a.xhtml => layout/reftests/bugs/334829-1a-shadow.xhtml
rename : layout/reftests/bugs/334829-1b.xhtml => layout/reftests/bugs/334829-1b-shadow.xhtml
rename : layout/reftests/bugs/386310-1b.html => layout/reftests/bugs/386310-1b-shadow.html
rename : layout/reftests/bugs/386310-1c.html => layout/reftests/bugs/386310-1c-shadow.html
rename : layout/reftests/bugs/386310-1d.html => layout/reftests/bugs/386310-1d-shadow.html
rename : layout/reftests/bugs/482592-1a.xhtml => layout/reftests/bugs/482592-1a-shadow.xhtml
rename : layout/reftests/bugs/482592-1b.xhtml => layout/reftests/bugs/482592-1b-shadow.xhtml
rename : layout/reftests/css-selectors/sibling-combinators-on-anon-content-1.xhtml => layout/reftests/css-selectors/sibling-combinators-on-anon-content-1-shadow.xhtml
rename : layout/reftests/css-selectors/sibling-combinators-on-anon-content-2.xhtml => layout/reftests/css-selectors/sibling-combinators-on-anon-content-2-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-appendmultiple.xhtml => layout/reftests/dom/multipleinsertionpoints-appendmultiple-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-appendsingle-1.xhtml => layout/reftests/dom/multipleinsertionpoints-appendsingle-1-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-appendsingle-2.xhtml => layout/reftests/dom/multipleinsertionpoints-appendsingle-2-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-insertmultiple.xhtml => layout/reftests/dom/multipleinsertionpoints-insertmultiple-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-insertsingle-1.xhtml => layout/reftests/dom/multipleinsertionpoints-insertsingle-1-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-insertsingle-2.xhtml => layout/reftests/dom/multipleinsertionpoints-insertsingle-2-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-ref2.xhtml => layout/reftests/dom/multipleinsertionpoints-ref2-shadow.xhtml
rename : layout/reftests/ib-split/insert-into-split-inline-5.html => layout/reftests/ib-split/insert-into-split-inline-5-shadow.html
extra : moz-landing-system : lando
2019-10-08 23:52:46 +00:00
Emma Malysz e539d2cdc1 Bug 1586883, replace the remaining XUL textbox with HTML input in testcases within layout directory r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D48434

--HG--
extra : moz-landing-system : lando
2019-10-08 18:26:49 +00:00
Emilio Cobos Álvarez bb4daeb401 Bug 1586909 - Process anchor suppressions even when ignoring adjustments. r=dholbert
Otherwise we may keep the scroll anchor around and we may try to anchor to it
later even though we should've really suppressed it completely.

Maybe we should just call InvalidateAnchor() unconditionally from that code
path, even if there are no suppressions pending...

Differential Revision: https://phabricator.services.mozilla.com/D48456

--HG--
extra : moz-landing-system : lando
2019-10-07 22:47:15 +00:00
Ricky Stewart c010710916 Bug 1586358 - Replace existing instances of GENERATED_FILES with references to the GeneratedFile template r=firefox-build-system-reviewers,mshal
(Same content as bad revision https://phabricator.services.mozilla.com/D48230, but with a very small change to config/external/icu/data/moz.build to fix the build breakage.)

Try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=833f6a69fcac689488a640b43e8e0bdaa086a56c

Differential Revision: https://phabricator.services.mozilla.com/D48409

--HG--
extra : moz-landing-system : lando
2019-10-07 21:15:19 +00:00
Daniel Varga 052ef806b5 Backed out changeset 8d95f2c8867b (bug 1586358) for build bustage with FATAL ERROR PROCESSING MOZBUILD FILE. On a CLOSED TREE
--HG--
extra : rebase_source : 325fbad2455afc7f693087e75fa57dba79f4d86b
2019-10-07 20:22:08 +03:00
Ricky Stewart 940d91af38 Bug 1586358 - Replace existing instances of GENERATED_FILES with references to the GeneratedFile template r=nalexander
This patch doesn't remove all references to GENERATED_FILES, but does remove most of them, leaving only those which can't be trivially translated to the new template.

Try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=e4a25230c3992b9c5519ceb351fb37f6b2bf605e

Differential Revision: https://phabricator.services.mozilla.com/D48230

--HG--
extra : moz-landing-system : lando
2019-10-07 15:31:05 +00:00
Emilio Cobos Álvarez 457aabd5d0 Bug 1581467 - Use DisplayInside() / DisplayOutside() a bit more. r=mats
And remove some unused display values from the C++ bindings.

Differential Revision: https://phabricator.services.mozilla.com/D45974

--HG--
extra : moz-landing-system : lando
2019-10-07 12:27:27 +00:00
Savo be6805c792 Bug 1586068 - Replace #define NS_STYLE_FLEX_WRAP with enum class. r=emilio
MANUAL PUSH: Rebasing contributor patch.

Differential Revision: https://phabricator.services.mozilla.com/D48166
2019-10-07 00:42:12 +02:00
Sylvestre Ledru f12b9fa5c3 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D47737

--HG--
extra : moz-landing-system : lando
2019-10-06 18:29:55 +00:00
Morgan Reschenberg 05ad28e67c Bug 1539212: Add readability backplate for all elements containing text when HCM or a11y theme is active. r=dholbert,mattwoodrow,Jamie
Differential Revision: https://phabricator.services.mozilla.com/D42979

--HG--
extra : moz-landing-system : lando
2019-10-04 16:44:49 +00:00
Ting-Yu Lin 3aa390f805 Bug 1579565 Part 2 - Skip block-end side if the frame has a column-span sibling. r=dbaron
Also, clean up the wording and variable names when aReflowInput is used.

Differential Revision: https://phabricator.services.mozilla.com/D47676

--HG--
extra : moz-landing-system : lando
2019-10-03 17:26:06 +00:00
Ting-Yu Lin f0e7225497 Bug 1579565 Part 1 - Skip applying the child block's block-end margin when placing it if it has a later sibling across column-span split. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D47675

--HG--
extra : moz-landing-system : lando
2019-10-03 17:28:48 +00:00
Emilio Cobos Álvarez 59196e7850 No bug - remove silly assertion as OwnerDoc() never returns null.
Differential Revision: https://phabricator.services.mozilla.com/D47994

--HG--
extra : moz-landing-system : lando
2019-10-02 23:29:51 +00:00
Emilio Cobos Álvarez a9d4bf384e Bug 1585317 - When using the scrollport, account for scroll-padding for anchor node selection. r=botond
Unclear whether the visual viewport code path is the right thing to do at all.

Differential Revision: https://phabricator.services.mozilla.com/D47791

--HG--
extra : moz-landing-system : lando
2019-10-02 17:24:25 +00:00
Cameron McCormack bcd2fa209b Bug 1581579 - Fix scrollbar style caching conflict for <resizer dir="bottom"> vs <resizer dir="bottomleft">. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D47568

--HG--
extra : moz-landing-system : lando
2019-09-30 09:51:07 +00:00
Emilio Cobos Álvarez 4b9dcc4e53 Bug 1584950 - Use StaticPrefs in ScrollFrameHelper::IsSmoothScrollingEnabled. r=njn
Differential Revision: https://phabricator.services.mozilla.com/D47589

--HG--
extra : moz-landing-system : lando
2019-10-01 08:01:22 +00:00
Matt Woodrow 4ad92502db Bug 1580738 - Generate unique per-frame-keys for all nsDisplayOwnLayer call sites. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D47673

--HG--
extra : moz-landing-system : lando
2019-09-30 21:01:20 +00:00
Brad Werth 2f3427bf7c Bug 1384266 Part 1: Make FlexItem::GetBaselineOffsetFromOuterCrossEdge use logical, not physical calculations. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D45424

--HG--
extra : moz-landing-system : lando
2019-09-30 21:08:08 +00:00
Mats Palmgren b15d020bef Bug 1581106 part 3 - [css-grid-2] Implement 'repeat(auto-fill, <line-names>)' in subgridded axis. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D46895

--HG--
extra : moz-landing-system : lando
2019-09-30 17:32:52 +00:00
Mats Palmgren 7d90d80ff0 Bug 1581106 part 2 - Simplify LineNameMap ctor by deducing track clamping bounds instead of passing them as params (idempotent change). r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D46373

--HG--
extra : moz-landing-system : lando
2019-09-30 17:51:28 +00:00
Mats Palmgren bb73a535cf Bug 1581106 part 1 - Remove unused aNumRepeatTracks param (idempotent change). r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D46372

--HG--
extra : moz-landing-system : lando
2019-09-30 17:50:55 +00:00
Tim Nguyen 5c78a8e3de Bug 1582530 - Fix remaining cases that were relying on blockification. r=dao,dholbert
Differential Revision: https://phabricator.services.mozilla.com/D46676

--HG--
extra : moz-landing-system : lando
2019-09-28 00:20:32 +00:00
Daniel Holbert 0445b9ba16 Bug 1584638: Relax -mox-box blockification assertions to be debug-only. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D47505

--HG--
extra : moz-landing-system : lando
2019-09-27 21:31:04 +00:00
Dorel Luca 759e72860c Backed out 2 changesets (bug 1582530) for Creshtest failures in ayout/generic/ReflowInput.cpp. CLOSED TREE
Backed out changeset 536e78fea3de (bug 1582530)
Backed out changeset ae88c31cf531 (bug 1582530)

--HG--
extra : amend_source : cd6928208a1916e72a8f14952adc85f5e5e2c47d
2019-09-28 00:31:24 +03:00
Tim Nguyen 597206ae06 Bug 1582530 - Fix remaining cases that were relying on blockification. r=dao,dholbert
Differential Revision: https://phabricator.services.mozilla.com/D46676

--HG--
extra : moz-landing-system : lando
2019-09-27 20:14:37 +00:00
L. David Baron e09d436481 Bug 1220352 - Make baseline positioning in vertical writing-mode independent of border and padding. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D47014

--HG--
extra : moz-landing-system : lando
2019-09-25 20:47:35 +00:00
Ting-Yu Lin df696cf9c1 Bug 1575054 - Disable column balancing for nested multicol containers of depth more than two. r=dbaron
That is, for the multicol container of depth two and more, we lay them
out by using "column-fill:auto" and "column-count:1".

I've check bug 725376 comment 9 for the previous approaches. Thanks to
bug 1555818, this solution is feasible because the fragmentation with
"column-fill:auto" is now possible.

Differential Revision: https://phabricator.services.mozilla.com/D47011

--HG--
extra : moz-landing-system : lando
2019-09-26 22:07:53 +00:00
Emilio Cobos Álvarez aef57af453 Bug 1553772 - Bug 1549812 - Try to assert a bit harder about stuff not flushing under our nose. r=TYLin,mats
I think these should hold, everything that runs under them should just schedule
other stuff to some later date:

 * Synth mouse events -> scheduled as refresh driver observers.
 * Scroll events -> Scheduled as well.
 * Caret state change events -> Also scheduled after last patch.
 * IME and accessibility stuff -> I don't think they can reenter layout.

We can always revert this if it causes troubles, plus it shouldn't crash on
release so should be fine.

Differential Revision: https://phabricator.services.mozilla.com/D31090

--HG--
extra : moz-landing-system : lando
2019-09-26 20:55:58 +00:00
Coroiu Cristina b567839436 Backed out changeset e10a3c249943 (bug 1575054) for crashtest failures at reftest/tests/layout/generic/crashtests/812893.html on a CLOSED TREE 2019-09-27 00:16:47 +03:00
Emilio Cobos Álvarez 9dfc84144f Bug 1584285 - Add a pref to disable scroll anchoring suppression triggers on Nightly. r=dholbert
I think most of them should not be needed after bug 1561450. From our discussion
at TPAC in https://github.com/w3c/csswg-drafts/issues/4239, there should be no
reason not to do this unless we find fallout.

We need to enable the pref in tests that test these particular heuristics of
course.

Differential Revision: https://phabricator.services.mozilla.com/D47315

--HG--
extra : moz-landing-system : lando
2019-09-26 18:57:52 +00:00
Ting-Yu Lin 1e019098f5 Bug 1575054 - Disable column balancing for nested multicol containers of depth more than two. r=dbaron
That is, for the multicol container of depth two and more, we lay them
out by using "column-fill:auto" and "column-count:1".

I've check bug 725376 comment 9 for the previous approaches. Thanks to
bug 1555818, this solution is feasible because the fragmentation with
"column-fill:auto" is now possible.

Differential Revision: https://phabricator.services.mozilla.com/D47011

--HG--
extra : moz-landing-system : lando
2019-09-24 21:38:00 +00:00
Ting-Yu Lin 626ea340bc Bug 1583639 Part 4 - Stop creating more columns in column-fill:auto mode if there's still block-size left in multicol container. r=dbaron
This patch makes fragmentation in "column-fill:auto" mode possible.

Note that we only bail out of creating more column contents when
"column-fill:auto" mode is set from the styles, i.e. when mForceAuto is
false. That is because when mForceAuto is true, we usually in the case
where we have gave up balancing, and we really want to create overflow
columns.

Note: without `!aConfig.mForceAuto` check, 673770.html can generated
assertions, and the frame tree contains dangling Overflow-lines and
ExcessOverflowContainersList.

Differential Revision: https://phabricator.services.mozilla.com/D47005

--HG--
extra : moz-landing-system : lando
2019-09-25 23:36:41 +00:00
Ting-Yu Lin 771bb28447 Bug 1583639 Part 3 - Keep the optimal used numColumns in column-fill:auto mode without resetting it to INT32_MAX. r=dbaron
mUsedColCount is used in balancing mode to check whether we have created
the maximum number of columns when the content cannot fit. Similarly,
mUsedColCount can also be useful in "column-fill:auto" mode to improve
the fragmentation story in the next patch.

This patch doesn't change the behavior (yet).

Differential Revision: https://phabricator.services.mozilla.com/D47004

--HG--
extra : moz-landing-system : lando
2019-09-25 06:41:10 +00:00
Ting-Yu Lin fd1d19e6aa Bug 1583639 Part 2 - Rename mBalanceColCount to mUsedColCount in nsColumnSetFrame::ReflowConfig. r=dbaron
In next patch, this variable won't be set to INT32_MAX in
"column-fill:auto" mode, and it will be used in Part 4. Hence the
rename.

Differential Revision: https://phabricator.services.mozilla.com/D47003

--HG--
extra : moz-landing-system : lando
2019-09-25 06:43:19 +00:00
Ting-Yu Lin eded32bd45 Bug 1583639 Part 1 - De-indent an else-block inside the while-loop in nsColumnSetFrame::ReflowChild. r=dbaron
The associated if-block has a "break" statement at the end of the scope
to break the while-loop, making the else-block redundant.

Differential Revision: https://phabricator.services.mozilla.com/D47002

--HG--
extra : moz-landing-system : lando
2019-09-24 21:09:20 +00:00
Geoff Brown b0e5901c93 Bug 1582884 - Enable some crashtests on Android; r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D46784

--HG--
extra : moz-landing-system : lando
2019-09-24 01:12:09 +00:00
Cameron McCormack 4ff6c875f8 Bug 1482778 - Include captions within table outlines. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D45802

--HG--
extra : moz-landing-system : lando
2019-09-22 23:42:04 +00:00
Ting-Yu Lin 88413c82e6 Bug 1575016 - Update a comment that describes minimum 1px block-size for column-content blocks. r=dbaron
Fragmentation spec already has a paragraph describing this behavior.

DONTBUILD because this is a comment only change.

Differential Revision: https://phabricator.services.mozilla.com/D46691

--HG--
extra : moz-landing-system : lando
2019-09-21 08:38:54 +00:00
Dorel Luca f5e74811ca Merge mozilla-central to mozilla-inbound 2019-09-21 00:58:45 +03:00
Kris Maglione 685d91c901 Bug 1553804: Part 6 - Fix chrome mochitests which open chrome windows with content openers. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D45828

MANUAL PUSH: Cannot update reopened Phabricator revisions.

--HG--
extra : source : 86b3d469b4ff9f22e5757f83450b956a4c769785
extra : histedit_source : 2bf945343632b15eb79cf6b2ddd3ce097ddf70de%2Caec93d9f11bc1c802b63793cd5818530b64e9b4b
2019-09-20 10:18:15 -07:00
Lee Salzman 2770b6301a Bug 1582231 - remove Moz2D dependency on Cairo glyph extents. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D46332

--HG--
extra : moz-landing-system : lando
2019-09-20 16:30:21 +00:00
Daniel Varga f0411a344a Backed out 6 changesets (bug 1553804) for browser-chrome failure at browser/base/content/test/general/browser_fullscreen-window-open.js. On a CLOSED TREE
Backed out changeset 86b3d469b4ff (bug 1553804)
Backed out changeset 301e0d883a5f (bug 1553804)
Backed out changeset acff4a663671 (bug 1553804)
Backed out changeset 1574aecf3177 (bug 1553804)
Backed out changeset 3acf056e792e (bug 1553804)
Backed out changeset 1ed250faeb2e (bug 1553804)
2019-09-20 10:09:54 +03:00
Kris Maglione 136131d397 Bug 1553804: Part 6 - Fix chrome mochitests which open chrome windows with content openers. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D45828

--HG--
extra : moz-landing-system : lando
2019-09-20 04:44:02 +00:00
Jonathan Kew bca3c87cf1 Bug 1472328 - Check if we're already at the end of the frame's content. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D45924

--HG--
extra : moz-landing-system : lando
2019-09-16 19:07:00 +00:00
Daniel Holbert 6adb0e04b4 Bug 1580302: Treat all flex items and grid items as being block-level in ReflowInput::InitConstraints. r=mats
In particular: in our frontend code, if we happen to end up with a flex/grid
item with 'display:-moz-box', we want it to take the same sizing codepath as
other flex/grid items, which are all block-level (even though -moz-box is not
exactly block-level itself). Notably, we want to use ComputeSizeFlags::eDefault
for sizing (like we do for real block-level things), because that's necessary
in order for grid items to stretch correctly in their inline axis.

Also: this patch renames "isBlock" to "isBlockLevel" to reflect reality. Its
naming is based on the constant NS_CSS_FRAME_TYPE_BLOCK, which in fact is not
specific to 'display:block' but in fact is for frames that are "block-level in
normal flow" (which I think in practice means block-level and not
out-of-flow). That is documented here:
https://searchfox.org/mozilla-central/rev/7531325c8660cfa61bf71725f83501028178cbb9/layout/generic/ReflowInput.h#51

Differential Revision: https://phabricator.services.mozilla.com/D46539

--HG--
extra : moz-landing-system : lando
2019-09-19 23:43:55 +00:00
Bogdan Tara 4ba431cc02 Backed out changeset 928b755ef57b (bug 1539212) for backplate-bg-image-006.html failures 2019-09-20 03:59:03 +03:00
Alexander Surkov 322bf35c3e Bug 1555497 - Remove menupopup binding, r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D33282

--HG--
extra : moz-landing-system : lando
2019-09-19 02:13:43 +00:00
Morgan Reschenberg b20a6706d3 Bug 1539212: Add readability backplate for all elements containing text when HCM or a11y theme is active. r=dholbert,mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D42979

--HG--
extra : moz-landing-system : lando
2019-09-19 21:25:12 +00:00
Daniel Holbert 99952c0744 Bug 1580012: In css 'display' blockification codepath, leave -moz-box alone and promote -moz-inline-box to -moz-box (if a new pref is set). r=emilio
This is in the interests of allowing the frontend team to experiment with
switching from XUL grid to CSS grid, without inadvertently changing the
display values for the grid items via css-grid-item blockification.

This patch's new pref is not expected to remain in the codebase for long.
We're just adding it so that the behavior remains the same by default, because
we do currently have some XUL code that inadvertently depends on -moz-box
display values being blockified to 'block'.  The plan is for folks to remove
that dependency e.g. by adding explicit 'display:block' styling to frontend
code as-needed. After we've done that, we can tentatively flip the pref to true
by default, and then remove the pref entirely.

Differential Revision: https://phabricator.services.mozilla.com/D45258

--HG--
extra : moz-landing-system : lando
2019-09-19 03:58:53 +00:00
Ting-Yu Lin 977a6275d1 Bug 1582224 - Split SIDEWAYS bit in WritingMode. r=jfkthame,emilio
Currently, there's no way to tell whether the SIDEWAYS bit is set from
`writing-mode:sideways-*` or `writing-mode:vertical-*; text-orientation:sideways;`.
To be able to tell them apart, split SIDEWAYS bits into VERTICAL_SIDEWAYS
and TEXT_SIDEWAYS. This is needed by my proposed solution in bug 1102175.

Also, provide convenience methods related to sideways writing-mode, and replace
obscure checks in the codebase.

Note that we don't have the use cases to distinguish vertical-rl from
sideways-rl in layout, but for the completeness, IsSidewaysLR() is still
defined.

Differential Revision: https://phabricator.services.mozilla.com/D46321

--HG--
extra : moz-landing-system : lando
2019-09-19 02:37:14 +00:00