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

3622 Коммитов

Автор SHA1 Сообщение Дата
Geoff Brown d0c30405e1 Bug 1521640 - Update android crashtest assertion ranges; r=geckoview-reviewers,snorp
Avoid assertion range mismatch errors in Android crashtests.

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

--HG--
extra : moz-landing-system : lando
2019-10-15 19:40:24 +00:00
Emilio Cobos Álvarez fb24706ec8 Bug 1588486 - Don't generate frames for children display: contents is used within SVG text. r=mats
The TextNodeCorrespondenceRecorder stuff doesn't handle display: contents or
Shadow DOM at all. This causes a failure with an upcoming patch.

This patch fixes it and fixes related crashes like bug 1563779. This is the same
wallpaper as bug 1421807.

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

--HG--
extra : moz-landing-system : lando
2019-10-14 17:38:41 +00:00
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
Brendan Dahl c68cd30ef2 Bug 1510785 - Only build XBL related code when MOZ_XBL is defined. r=bzbarsky
When XBL is disabled, no code in dom/xbl will be built. Also, adds ifdefs
to remove any of the XBL related code elsewhere. There's definitely more
that can be done here, but I think it's better to wait to do the rest of
the cleanup when we actually remove the code.

Depends on D45612

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

--HG--
extra : moz-landing-system : lando
2019-10-08 23:52:14 +00:00
Emilio Cobos Álvarez e99e9dc4ac Bug 1585863 - Remove nsChangeHint_UpdateTextPath. r=longsonr
The only thing it does is asserting a bit and posting more async work to the
text frame. It seems we can just post all the async work early instead, and
remove the change hint.

This was only introduced to fix bug 779971, where a <textPath> element
references its parent SVG, which is obviously unsound if we allowed to render
it.

What we're doing right now is a bit silly... We're observing the <svg>, so when
we finish reflowing it and store its overflow, we invalidate its rendering
observers, but that invalidates a _descendant_, which makes no sense.

Fortunately we don't let the element affect its rendering, as it fails this
check:

 * https://searchfox.org/mozilla-central/rev/35cc00a25c4471993fdaa5761952bd3afd4f1731/layout/svg/SVGObserverUtils.cpp#1390

But we still request reflow of the outer <text>, which is not amazing. We
shouldn't invalidate anything if the textpath doesn't reference a valid element
and that didn't change. This is roughly what the code tried to do when checking
mValid, except we always initialize mValid to true and thus always trigger at
least one bogus reflow call.

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

--HG--
extra : moz-landing-system : lando
2019-10-08 21:52:47 +00: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
Jeff Muizelaar 5d3cd1472d Bug 1582645. Add crash test to manifest.
The earlier commit added the file but not the listing in the manifest.

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

--HG--
extra : moz-landing-system : lando
2019-09-30 20:09:36 +00:00
Jeff Muizelaar 9651ff76cf Bug 1582645. Only set mLastVisibleRect after we've sent it to WebRender. r=nical
This avoids us setting when we don't send it. e.g. When it's empty.

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

--HG--
extra : moz-landing-system : lando
2019-09-30 17:48:34 +00:00
Coroiu Cristina 161096b665 Backed out changeset 43ac974f69db (bug 1582645) for increasing the crash volume a=backout 2019-09-30 12:51:23 +03:00
Jeff Muizelaar bdcf335677 Bug 1582645. Only set mLastVisibleRect after we've sent it to WebRender. r=nical
This avoids us setting when we don't send it. e.g. When it's empty.

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

--HG--
extra : moz-landing-system : lando
2019-09-26 21:08:29 +00:00
Jonathan Watt c5ffdfd9e0 Bug 1574137. Re-enable layout/svg/tests/test_filter_crossorigin.html for Fission. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D46819

--HG--
extra : moz-landing-system : lando
2019-09-23 18:15:58 +00:00
longsonr e48a579229 Bug 1582991 - Check the validity of the DrawTarget before using it, in nsFilterInstance::Render r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D46716

--HG--
extra : moz-landing-system : lando
2019-09-23 18:14:12 +00:00
longsonr ff387da653 Bug 1578098 - move DOM classes to DOM namespace and eliminate using namespace mozilla r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D44318

--HG--
extra : moz-landing-system : lando
2019-09-21 14:38:56 +00:00
Andreea Pavel e18057a961 Merge mozilla-inbound to mozilla-central. a=merge 2019-09-20 12:48:30 +03:00
Kris Maglione ee31fee500 Bug 1582523: Part 2 - Update tests which rely on OOP frames blocking load. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D46504

MANUAL PUSH: Still cannot update reopened Phabricator revisions.

--HG--
extra : source : 2e8fcb1718611e8ce81e7c83fb480d664000c2cc
extra : histedit_source : 29005a64bf92828ed472f378d36feff98d3d3a9f
2019-09-19 11:50:45 -07:00
Andreea Pavel 5b9c485d55 Backed out 2 changesets (bug 1582523) for build bustages at ContentChild.cpp on a CLOSED TREE
Backed out changeset 72ca7d054061 (bug 1582523)
Backed out changeset a6c10aa450ba (bug 1582523)
2019-09-20 08:45:25 +03:00
Kris Maglione afef6a355c Bug 1582523: Part 2 - Update tests which rely on OOP frames blocking load. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D46504

--HG--
extra : moz-landing-system : lando
2019-09-19 20:57:51 +00:00
Timothy Nikkel 239c12b7f0 Bug 1582528. Restrict visual and dirty rect when building the display list for svg contents that cannot overflow. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D46555

--HG--
extra : moz-landing-system : lando
2019-09-20 02:05:35 +00:00
Botond Ballo 439820f334 Bug 1578777 - Move UsesSVGEffectsNotSupportedInCompositor() to nsSVGIntegrationUtils. r=tnikkel
Depends on D46061

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

--HG--
extra : moz-landing-system : lando
2019-09-17 00:06:28 +00:00
Botond Ballo eb5a78b194 Bug 1578777 - Introduce a helper nsSVGIntegrationUtils::CanCreateWebRenderFiltersForFrame(). r=jrmuizel
Depends on D46059

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

--HG--
extra : moz-landing-system : lando
2019-09-16 21:54:38 +00:00
Botond Ballo 4375178c34 Bug 1578777 - Move CreateWebRenderCSSFilters() to nsSVGIntegrationUtils. r=jrmuizel
Depends on D46058

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

--HG--
extra : moz-landing-system : lando
2019-09-16 21:54:16 +00:00
Emilio Cobos Álvarez 5506cc7c20 Bug 1581399 - Remove useless rule in svg.css. r=longsonr
It was added in bug 256624, but -moz-binding is no longer exposed to content so
it doesn't do anything.

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

--HG--
extra : moz-landing-system : lando
2019-09-15 17:39:12 +00:00
Emilio Cobos Álvarez c2bb091273 Bug 1579181 - Don't keep <use> shadow trees which we know we'll never render. r=longsonr
This partially addresses the regression, but not fully. With this patch we don't
maintain shadow trees for nodes that we know won't get rendered.

This works fast in WebKit / Blink because of a bug in their implementation which
doesn't synchronize style attributes, introduced in [1].

You can see this clearly if you click on the bug's test-case and inspect the
<use> shadow trees (there's no style="stroke:orange" whatsoever).

They can kinda get away with it because they don't properly implement SVG 2. In
particular, in Blink / WebKit, the style of the element in the <use> shadow tree
is the style of the referenced element, which means that even if the style
attribute isn't properly synced it's ~ok since it doesn't end up mattering for
styling.

Easiest test-case for the behavior difference is:

```
<!doctype html>
<style>
  rect:hover {
    fill: green;
  }
</style>
<svg width=300 height=300>
  <g id="canvas">
    <rect fill=red width=100 height=100></rect>
  </g>
  <g>
    <use x=200 href="#canvas"></use>
  </g>
</svg>
```

Where Firefox will properly update each square independently when hovered, but
Blink / WebKit won't.

This used to work faster because in this particular test-case we have 3 hidden
<use> elements whose href is the #canvas, which is basically everything.

Before moving to shadow trees we'd do it using anonymous content, and since we
never got a frame we'd never clone the subtree in the first case.

This case was faster before bug 1450250, but this approach makes other cases
slow that were fixed by that bug, like bug 1485402.

So I'll try to optimize shadow tree syncing instead, I guess, but there's no
good reason not to land this in the meantime IMHO.

[1]: f4b022e64b%5E%21/third_party/WebKit/WebCore/svg/SVGElement.cpp

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

--HG--
extra : moz-landing-system : lando
2019-09-15 16:09:28 +00:00
Cosmin Sabou 5efec8c158 Bug 1574137 - Disable test_filter_crossorigin.html on fission. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D44979

--HG--
extra : moz-landing-system : lando
2019-09-06 13:35:57 +00:00
Ting-Yu Lin b8fee8f71c Bug 1308587 Part 2 - Remove -moz prefix for all multi-column properties in testing and css files. r=dholbert
This patch is generated by the following script:

```
function remove_column_prefix() {
    echo "Renaming $1 to $2"
    find .\
         -type f\
         ! -path "./obj*"\
         ! -path "./.git"\
         ! -path "./.hg"\
         \( -name "*.html" -or\
            -name "*.xhtml" -or\
            -name "*.xht" -or\
            -name "*.xul" -or\
            -name "*.xml" -or\
            -name "*.css"  \)\
            -exec sed -i -e "s/$1/$2/g" "{}" \;
}

remove_column_prefix "-moz-columns" "columns"
remove_column_prefix "-moz-column-width" "column-width"
remove_column_prefix "-moz-column-count" "column-count"
remove_column_prefix "-moz-column-fill" "column-fill"
remove_column_prefix "-moz-column-gap" "column-gap"
remove_column_prefix "-moz-column-rule" "column-rule"
remove_column_prefix "-moz-column-rule-width" "column-rule-width"
remove_column_prefix "-moz-column-rule-color" "column-rule-color"
remove_column_prefix "-moz-column-rule-style" "column-rule-style"

```

Note: after running the above script, I reverted one minor change to the
file multicol-nested-column-rule-001.xht in the theoretically read-only
directory layout/reftests/w3c-css/received/css-multicol/.

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

--HG--
extra : moz-landing-system : lando
2019-09-05 21:37:32 +00:00
Nicolas Silva bf5ea4cb2d Bug 1576372 - Check the validity of the DrawTarget before rendering SVG content into it. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D43751

--HG--
extra : moz-landing-system : lando
2019-08-28 13:16:58 +00:00
Emilio Cobos Álvarez 7cc40cf7ef Bug 1576666 - Use cbindgen for clip / -moz-image-region. r=boris
This also fixes some of the issues with -moz-image-region, where we just minted
an auto out of the blue.

Depends on D43472

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

--HG--
extra : moz-landing-system : lando
2019-08-26 23:09:47 +00:00
Emilio Cobos Álvarez 346d47d739 Bug 1575608 - Avoid manual paint-order glue code. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D42913

--HG--
extra : moz-landing-system : lando
2019-08-21 19:47:53 +00:00
Thomas Nguyen 32ab8293ff Bug 1528697 - Expose ReferrerPolicy.webidl and use referrerpolicy enum r=smaug
ReferrerPolicy gets tossed back and forth as a uint32_t and
ReferrerPolicy enum in header file. Expose ReferrerPolicyValues from
webidl file and use consistently in native code.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 13:24:45 +00:00
Mats Palmgren 2525944e34 Bug 1574994 part 1 - Remove/replace display:-moz-inline-grid and -moz-inline-stack in tests. r=emilio
I replaced the values with -moz-inline-box in the crashtests
rather than removing them.  I think they are still valuable
after replacing the display value.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 21:19:04 +00:00
Brindusan Cristian 3a61fb322f Merge inbound to mozilla-central. a=merge 2019-08-15 12:45:55 +03:00
Emilio Cobos Álvarez 5a7da15b28 Bug 1569648 - Remove a bogus assertion. r=dholbert
There's no guarantee at all that the filter URI is valid, it just so happens
that for regular CSS filters we bail out earlier.

A bogus base URI makes relative uris just invalid, which triggers this assert.

The assert was gracefully handled anyway, so no big deal.

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

--HG--
extra : moz-landing-system : lando
2019-08-14 16:41:20 +00:00
Connor Brewster 04d4ece0af Bug 1178765 - Part 3: Add backdrop-filter display items to Gecko r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D39099

--HG--
extra : moz-landing-system : lando
2019-08-13 22:02:57 +00:00
Nicholas Nethercote 89e8b16702 Bug 1573364 - Convert svg.context-properties.content.enabled to a static pref. r=heycam
Depends on D41698

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

--HG--
extra : moz-landing-system : lando
2019-08-13 04:58:06 +00:00
Nicholas Nethercote 516383ef66 Bug 1573364 - Convert svg.new-getBBox.enabled to a static pref. r=heycam
Also remove nsSVGUtils::Init(), which is no longer necessary.

Depends on D41697

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

--HG--
extra : moz-landing-system : lando
2019-08-13 04:55:09 +00:00
Nicholas Nethercote efead97995 Bug 1573364 - Convert svg.display-lists.*.enabled to static prefs. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D41697

--HG--
extra : moz-landing-system : lando
2019-08-13 04:53:58 +00:00
L. David Baron 1488be9417 Bug 1571250 - Convert flags passed to ReflowChild, FinishReflowChild, SyncFrameViewAfterReflow and from GetXULLayoutFlags / GetLayoutFlags into an enum class. r=TYLin
It seems better to convert this before adding a new flag (in bug
1547759) and risking replacing the wrong 0 with a flag.

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

--HG--
extra : moz-landing-system : lando
2019-08-08 19:48:19 +00:00
Kris Maglione c01ad83372 Bug 1571502: Don't leak TabGroups which have never had windows joined to them. r=nika
Currently, TabGroups know to break their reference cycles only when the last
window leaves them. For TabGroups which have never had a window join (which
happens under Fission), this means they also never see a window leave, and
therefore never break their reference cycles, and leak.

This patch adds a check to break reference cycles if no windows have joined by
the time a BrowserChild they belong to is destroyed.

MANUAL PUSH: Lando fails to rebase.

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

--HG--
extra : source : 03acb28ab60fb77fa06064385a62cc46cf4ad1bd
extra : amend_source : 0a71625d99951bebe45ee6f62570de491a714e97
2019-08-02 18:19:53 -07:00
Kris Maglione ef02b3cbd8 Bug 1568035: Part 1 - Skip tests which cause shutdown leaks under Fission. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D39459

--HG--
extra : rebase_source : 594e7c17a8aa81f9b212ff1fa492a8ab8f40d5ee
2019-07-19 15:31:16 -07:00
Nicholas Nethercote 18fae65f38 Bug 1563139 - Remove StaticPrefs.h. r=glandium
This requires replacing inclusions of it with inclusions of more specific prefs
files.

The exception is that StaticPrefsAll.h, which is equivalent to StaticPrefs.h,
and is used in `Codegen.py` because doing something smarter is tricky and
suitable for a follow-up. As a result, any change to StaticPrefList.yaml will
still trigger recompilation of all the generated DOM bindings files, but that's
still a big improvement over trigger recompilation of every file that uses
static prefs.

Most of the changes in this commit are very boring. The only changes that are
not boring are modules/libpref/*, Codegen.py, and ServoBindings.toml.

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

--HG--
extra : moz-landing-system : lando
2019-07-26 01:10:23 +00:00
harry baaa880823 Bug 1567962 - Remove context-fill-opacity and context-stroke-opacity warnings. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D38893

--HG--
extra : moz-landing-system : lando
2019-07-22 18:40:42 +00:00
longsonr 15c69a978b Bug 1353164 Part 2 - Change dominant-baseline from reset to inherit r=heycam
--HG--
extra : source : 5c8a0f41b86df61e7a1ef26b64fb355b5a11ab7d
2019-07-19 12:57:54 +01:00
Bogdan Tara e34bf750c9 Backed out changeset 5c8a0f41b86d (bug 1353164) for test_css-properties-db.js failures CLOSED TREE 2019-07-19 16:50:35 +03:00
longsonr 1335355ed5 Bug 1353164 Part 2 - Change dominant-baseline from reset to inherit r=heycam 2019-07-19 12:57:54 +01:00
L. David Baron ce547cd6f5 Bug 1566945 - Add a parameter to nsContainerFrame::InsertFrames for aPrevFrame's line box. r=dholbert
For now, always pass null, except when passing it through from one
overload to another.

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

--HG--
extra : moz-landing-system : lando
2019-07-17 23:34:45 +00:00
Kris Maglione 0962c2b731 Bug 1566182: Annotate mochitests that fail with Fission enabled. r=mccr8
My preference was to annotate most of the failing tests with `fail-if` so that
if they start passing, the `fail-if` needs to be removed and they need to keep
passing. That doesn't work for tests that timeout, or which trigger failures
from their cleanup functions, however, so those tests need skip-if. And tests
with fail in their cleanup functions likely leave the browser in an
inconsistent state for subsequent tests, anyway, so really should be skipped
regardless.

There are some remaining tests which still fail because of crashes. I chose
not to skip them here, but to fix the crashes in separate bugs instead.

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

--HG--
extra : rebase_source : 39ba8fec2e882cfe577c5f2b58ab7e4b461f1178
2019-07-15 16:19:32 -07:00
Daniel Holbert c66b95d09e Bug 1565384 part 1: When an embedded SVG document has an aspect-ratio change, trigger a reflow if 'object-fit' is set on the embedding element. r=emilio
If the embedding element uses `object-fit`, then that indicates it's precisely
positioning and/or sizing the embedded SVG document's viewport to fit inside
the embedding element's content area.  So, when the internal SVG viewBox
changes, then the embedding element needs to redo that positioning/sizing.  For
now, this specifically requires a reflow (and in particular, the nsViewManager
adjustments at the end of nsSubDocumentFrame::Reflow).

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

--HG--
extra : moz-landing-system : lando
2019-07-17 00:58:57 +00:00
Daniel Holbert f3d02f7eee Bug 1565384 part 0: Remove some single-use helper-variables that don't add value. r=emilio
This patch doesn't affect behavior; it's just minor code cleanup.

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

--HG--
extra : moz-landing-system : lando
2019-07-17 00:49:53 +00:00
Thomas Nguyen fc05893051 Bug 1546334 - Use referrerInfo in style system. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D36478

--HG--
extra : moz-landing-system : lando
2019-07-16 11:43:56 +00:00
Boris Zbarsky 374137e8d8 Bug 1565767 part 5. Remove some unnecesary refcounting at nsIContent::GetBaseURI callsites. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D37973

--HG--
extra : moz-landing-system : lando
2019-07-15 18:29:05 +00:00