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

71701 Коммитов

Автор SHA1 Сообщение Дата
Erik Nordin 5c05e8e03f Bug 1617302 - Temporarily disallow duplicate style sheets r=emilio
* Disallow duplicate style sheets to unblock fuzzers until this is handled properly.

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

--HG--
extra : moz-landing-system : lando
2020-02-24 21:50:53 +00:00
Emilio Cobos Álvarez bc8a8f5439 Bug 1492315 - Subtract table grid item margins correctly. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D63762

--HG--
extra : moz-landing-system : lando
2020-02-24 21:56:02 +00:00
Dorel Luca 1def5d818a Backed out 4 changesets (bug 911444) for Mochitest failures in dom/base/test/test_pdf_print.html. CLOSED TREE
Backed out changeset d156bbaabbd5 (bug 911444)
Backed out changeset a32592af0b11 (bug 911444)
Backed out changeset b96d0a37ed1a (bug 911444)
Backed out changeset fd2e3e8728d9 (bug 911444)
2020-02-25 00:11:50 +02:00
Boris Zbarsky a771d31d7e Bug 911444 part 1. Factor out the "is pdf viewer" code so we can reuse it. r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D63707

--HG--
extra : moz-landing-system : lando
2020-02-21 22:19:53 +00:00
Emilio Cobos Álvarez 5c4b14bd2f Bug 1615811 - Invalidate old display items if overflow changes on an element that can display ellipsis. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D63327

--HG--
extra : moz-landing-system : lando
2020-02-24 19:34:07 +00:00
Kartikaya Gupta 186b239065 Bug 1613199 - Fix hit-testing for scrollframes with hoisted scrollinfos. r=botond
In some cases (such as the case from this bug) the display list contains a
"hoisted" scrollinfo display item, which indicates the presence of a scroller
inside an inactive layer subtree (e.g. a div with certain kinds of filters).
The scrollinfo display item is "hoisted" outside the display list subtree so
that it doesn't get flattened away inside the inactive subtree. That display
item then causes the compositor hit-test regions to updated appropriately so
that APZ knows about the scrollframe inside the flattened content. This in turn
allows APZ to request main-thread scrolling for that scrollframe when input
events are directed to it.

With the WebRender codepath, the information represented by the hoisted
scrollinfo display item was being lost instead of being propagated to the
compositor. This was because the mechanism used for information propagation is
different (WebRender commands vs layers EventRegions). This patch ensures that
the scrollinfo display items also generate appropriate WebRender commands so
that the information is not lost, and WR knows about the scrollframe inside
the flattened content.

The patch includes:
- A code movement in nsGfxScrolllFrame.cpp so that necessary information can
  be provided to the nsDisplayScrollInfoLayer constructor
- Updates to nsDisplayScrollInfoLayer members to store the necessary information
- Addition of nsDisplayScrollInfoLayer::CreateWebRenderCommands which propagates
  the information to the WR display list
- A test to exercise the changes.

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

--HG--
extra : moz-landing-system : lando
2020-02-24 17:26:19 +00:00
Cosmin Sabou 7f1afff492 Backed out 5 changesets (bug 1617604, bug 1617542, bug 1617546) for causing build bustages on ipc/mscom/Interceptor.cpp.
CLOSED TREE

Backed out changeset 5faa54ad950e (bug 1617542)
Backed out changeset cb38779e1eb6 (bug 1617604)
Backed out changeset 3aea18e0396f (bug 1617542)
Backed out changeset bc3eeefdfb6c (bug 1617542)
Backed out changeset b76a3aa5ff6f (bug 1617546)
2020-02-24 19:50:13 +02:00
Simon Giesecke df538d9a79 Bug 1617542 - Remove nsRefPtrHashtable::Put overload accepting already_AddRefed and adapt all uses. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D63865

--HG--
extra : moz-landing-system : lando
2020-02-24 17:08:30 +00:00
Kartikaya Gupta 85c3d9e6a5 Bug 1617565 - Convert additional compile-conditional logging bits to MOZ_LOG. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D63868

--HG--
extra : moz-landing-system : lando
2020-02-24 16:31:04 +00:00
Sylvestre Ledru ca6530131a Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan,kvark
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2020-02-24 15:33:38 +00:00
Emilio Cobos Álvarez 54cc92c94d Bug 1617472 - Remove nsCSSKeywords and related infrastructure. r=heycam
Seeya

Depends on D63795

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

--HG--
extra : moz-landing-system : lando
2020-02-24 13:30:48 +00:00
Emilio Cobos Álvarez 8d0f4ce3ca Bug 1617472 - Remove kTextDecorationStyleKTable. r=heycam
In a somewhat easy way. There are better ways to do this (moving
text-decoration-style to be a proper cbindgen enum class or such), but this
does the job for now.

Depends on D63794

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

--HG--
extra : moz-landing-system : lando
2020-02-24 13:30:46 +00:00
Emilio Cobos Álvarez 1ff4460ea3 Bug 1617472 - Remove kTextAlignKTable. r=heycam
Depends on D63793

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

--HG--
extra : moz-landing-system : lando
2020-02-24 13:30:44 +00:00
Emilio Cobos Álvarez 5e65211744 Bug 1617472 - Use enums for text-align / text-align-last. r=jfkthame
This also fixes some backwards logic in nsBlockFrame::ReflowDirtyLines, and adds
some static assertions to nsGenericHTMLElement that almost cause a very subtle
bug.

Depends on D63792

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

--HG--
extra : moz-landing-system : lando
2020-02-24 13:32:57 +00:00
Emilio Cobos Álvarez 844051acc0 Bug 1617472 - Remove kFontSmoothingKTable. r=heycam
Use the more general mechanism to get a property value. We can't just remove
the getter because of the resist-fingerprinting check, but...

Depends on D63791

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

--HG--
extra : moz-landing-system : lando
2020-02-24 13:29:45 +00:00
Emilio Cobos Álvarez 6f172a0ae4 Bug 1617472 - Minor cleanup of image layers. r=heycam
Remove some unused enums and some single-call function that also caused a copy
of two LengthPercentage values.

This is pretty drive-by, could be a different bug.

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

--HG--
extra : moz-landing-system : lando
2020-02-24 13:29:37 +00:00
Tim Nguyen 46aff81118 Bug 1616994 - Merge layout/reftests/backgrounds/gradient and layout/reftests/css-gradients. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D63559

--HG--
rename : layout/reftests/backgrounds/gradient/color-stop-clamp-interpolation-ref.html => layout/reftests/css-gradients/color-stop-clamp-interpolation-ref.html
rename : layout/reftests/backgrounds/gradient/color-stop-clamp-interpolation.html => layout/reftests/css-gradients/color-stop-clamp-interpolation.html
rename : layout/reftests/backgrounds/gradient/linear-gradient-repeated-ref.html => layout/reftests/css-gradients/linear-gradient-repeated-ref.html
rename : layout/reftests/backgrounds/gradient/linear-gradient-repeated.html => layout/reftests/css-gradients/linear-gradient-repeated.html
rename : layout/reftests/backgrounds/gradient/scaled-color-stop-position-ref.html => layout/reftests/css-gradients/scaled-color-stop-position-ref.html
rename : layout/reftests/backgrounds/gradient/scaled-color-stop-position.html => layout/reftests/css-gradients/scaled-color-stop-position.html
extra : moz-landing-system : lando
2020-02-24 11:40:23 +00:00
Brindusan Cristian de02c75c28 Backed out changeset ca76228564c8 (bug 1616994) for breaking Gecko Decision Task. CLOSED TREE
--HG--
rename : layout/reftests/css-gradients/color-stop-clamp-interpolation-ref.html => layout/reftests/backgrounds/gradient/color-stop-clamp-interpolation-ref.html
rename : layout/reftests/css-gradients/color-stop-clamp-interpolation.html => layout/reftests/backgrounds/gradient/color-stop-clamp-interpolation.html
rename : layout/reftests/css-gradients/linear-gradient-repeated-ref.html => layout/reftests/backgrounds/gradient/linear-gradient-repeated-ref.html
rename : layout/reftests/css-gradients/linear-gradient-repeated.html => layout/reftests/backgrounds/gradient/linear-gradient-repeated.html
rename : layout/reftests/css-gradients/scaled-color-stop-position-ref.html => layout/reftests/backgrounds/gradient/scaled-color-stop-position-ref.html
rename : layout/reftests/css-gradients/scaled-color-stop-position.html => layout/reftests/backgrounds/gradient/scaled-color-stop-position.html
2020-02-24 05:06:24 +02:00
Tim Nguyen 4c05de78b4 Bug 1616994 - Merge layout/reftests/backgrounds/gradient and layout/reftests/css-gradients. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D63559

--HG--
rename : layout/reftests/backgrounds/gradient/color-stop-clamp-interpolation-ref.html => layout/reftests/css-gradients/color-stop-clamp-interpolation-ref.html
rename : layout/reftests/backgrounds/gradient/color-stop-clamp-interpolation.html => layout/reftests/css-gradients/color-stop-clamp-interpolation.html
rename : layout/reftests/backgrounds/gradient/linear-gradient-repeated-ref.html => layout/reftests/css-gradients/linear-gradient-repeated-ref.html
rename : layout/reftests/backgrounds/gradient/linear-gradient-repeated.html => layout/reftests/css-gradients/linear-gradient-repeated.html
rename : layout/reftests/backgrounds/gradient/scaled-color-stop-position-ref.html => layout/reftests/css-gradients/scaled-color-stop-position-ref.html
rename : layout/reftests/backgrounds/gradient/scaled-color-stop-position.html => layout/reftests/css-gradients/scaled-color-stop-position.html
extra : moz-landing-system : lando
2020-02-24 02:06:13 +00:00
Emilio Cobos Álvarez 3d0a668ddd Bug 1519519 - Fix some tests that were testing as invalid now-valid syntax.
MANUAL PUSH: Bustage
2020-02-24 01:36:24 +01:00
Emilio Cobos Álvarez f1e371b6fb Bug 1617425 - Minor cleanup of gecko.mako.rs. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D63779

--HG--
extra : moz-landing-system : lando
2020-02-23 15:43:21 +00:00
Emilio Cobos Álvarez 71cc1a2c62 Bug 1617425 - Use cbindgen for SVG lengths. r=jwatt
Depends on D63777

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

--HG--
extra : moz-landing-system : lando
2020-02-23 15:43:03 +00:00
Emilio Cobos Álvarez fff63130d9 Bug 1617421 - Use cbindgen for cursors. r=jwatt
Pretty straight-forward.

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

--HG--
extra : moz-landing-system : lando
2020-02-23 13:07:30 +00:00
Erik Nordin b837c381bc Bug 1613746 - Implement Replace() Functionality r=emilio
- Enable StyleSheet to resolve/reject a promise from Replace()
- Implement the StyleSheet::Replace() method.
- Remove use of `alternate` in WPTs, because it will soon be gone.
- Ensure that WPT test cases which modify document's style clean up after themselves.
- Modify WPT @import test cases to handle unhandled cases on promises.
- Modify WPT test case for failed imports to correctly check `NetworkError` as per the spec, rather than `NotAllowedError`.

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

--HG--
extra : moz-landing-system : lando
2020-02-22 20:41:30 +00:00
Erik Nordin 9f804f290f Bug 1613746 - Update Replace() WebIDL to take UTF8String -- r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D62127

--HG--
extra : moz-landing-system : lando
2020-02-19 01:00:15 +00:00
Emilio Cobos Álvarez e4106f7b64 Bug 1615955 - Suppress scroll anchoring when scroll offset is zero. r=dholbert
As per https://github.com/w3c/csswg-drafts/pull/4679.

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

--HG--
extra : moz-landing-system : lando
2020-02-22 20:08:22 +00:00
Emilio Cobos Álvarez 1bfaededfa Bug 1616537 - Don't give images with empty alt an intrinsic ratio. r=bzbarsky
The spec seems to want us to treat it like an inline, but that's not what other
browsers do (I added tests for this in bug 1196668, and they still pass in all
engines).

This is an oddly specific condition to put in
nsImageFrame::ShouldShowBrokenImageIcon(), but oh well, we're past all sanity
here I think...

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

--HG--
extra : moz-landing-system : lando
2020-02-21 21:03:22 +00:00
Timothy Nikkel 77f147bde2 Bug 1614532. Fix layout/reftests/async-scrolling/disable-apz-for-sle-pages.html. r=kats
In order for the test to pass the scroll event handler needs to run so that a scroll linked effect is detected and apz is disabled. It is triggered by the scrollTo call in the load handler. Which then removes reftest-wait off a setTimeout(..., 0). The scroll event is dispatched from the refresh driver so it can happen after this setTimeout runs. So the scroll handler runs too late to affect the test.

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

--HG--
extra : moz-landing-system : lando
2020-02-21 14:29:42 +00:00
Masayuki Nakano 1110bedb45 Bug 1613830 - Add `nsINode::GetAsElementOrParentElement()` r=smaug
This patch assumes that only element node can have content node.  I.e., we
won't hit the following `MOZ_ASSERT`:

```
Element* element = nullptr;
nsIContent* content = aContent;
while (content) {
  if (content->IsElement()) {
    element = content->AsElement();
    break;
  }
  content = content->GetParent();
}
MOZ_ASSERT(!content || content == element || content->GetParent() == element);
```

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

--HG--
extra : moz-landing-system : lando
2020-02-21 02:47:05 +00:00
Jeff Gilbert 011c0a1fd7 Bug 1616715 - SurfaceFromElement gets alpha Premult unless opt-in to NonPremult. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D63421

--HG--
extra : moz-landing-system : lando
2020-02-21 02:27:08 +00:00
Tooru Fujisawa 76889b2105 Bug 1616161 - Add generate_with_same_crate entrypoint to RunCbindgen.py. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D63121

--HG--
extra : moz-landing-system : lando
2020-02-21 01:16:57 +00:00
James Teh c604c6018c Bug 1616078: Don't use HTMLListBulletAccessible for CSS ::marker content. r=eeejay,emilio,MarcoZ
::marker content gets handled like text from any other CSS pseudo-class.
Therefore, using HTMLListBulletAccessible ends up duplicating the content already exposed in the a11y tree.
Now, we only use HTMLListBulletAccessible for nsBulletFrames instead of all marker frames.

As part of this, remove nsContainerFrame::GetSpokenMarkerContent, since we no longer need it to retrieve ::marker content.
The bulk of its other work was done by nsBulletFrame::GetSpokenContent, which we now call directly.
It also handled producing a default bullet character for list-style-image, but it makes sense for this to live in the a11y code.

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

--HG--
extra : moz-landing-system : lando
2020-02-21 01:23:37 +00:00
Emilio Cobos Álvarez 1c8cc0fccb Bug 1616691 - Fix C++ side of <length-percentage> values. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D63398

--HG--
extra : moz-landing-system : lando
2020-02-21 00:46:50 +00:00
Tim Nguyen 08ab9ceb1e Bug 1616587 - Implement conic-gradient for Skia graphics backend. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D63415

--HG--
extra : moz-landing-system : lando
2020-02-21 00:12:47 +00:00
Emilio Cobos Álvarez 71b1d98e23 Bug 1615142 - Fix gcc builds that error because of an unused variable.
Meh.

MANUAL PUSH: Fuzzing build bustage fix.

CLOSED TREE
2020-02-21 01:22:36 +01:00
Mike Shal c8abdd68c2 Bug 1616630 - Use py3_action for GENERATED_FILES that already support it; r=firefox-build-system-reviewers,kvark,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D63438

--HG--
extra : moz-landing-system : lando
2020-02-21 00:05:17 +00:00
Csoregi Natalia ff5e1dafb1 Backed out changeset bf981458da0c (bug 1616587) for bustage on DrawTargetCairo.cpp. CLOSED TREE 2020-02-21 02:07:11 +02:00
Tim Nguyen edf9be08c3 Bug 1616587 - Implement conic-gradient for Skia graphics backend. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D63415

--HG--
extra : moz-landing-system : lando
2020-02-20 23:50:06 +00:00
Emilio Cobos Álvarez 712d386afe Bug 1615142 - Fix triple-click selection on pre-formatted text. r=mats
We need to check for terminal new-lines on ourselves before looking at our next
sibling frame.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 11:57:50 +00:00
Csoregi Natalia 0d667d17dd Backed out changeset 5005fe56b7b0 (bug 1616715) for failures on test_2_conformance2__canvas__to-data-url-with-pack-params.html. CLOSED TREE 2020-02-21 01:33:48 +02:00
Csoregi Natalia 30fc2949d8 Backed out changeset 2d804daeaccb (bug 1616587) for bustages on DrawTargetCairo.cpp. CLOSED TREE 2020-02-21 01:19:36 +02:00
Tim Nguyen 41df136301 Bug 1616587 - Implement conic-gradient for Skia graphics backend. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D63415

--HG--
extra : moz-landing-system : lando
2020-02-20 22:58:59 +00:00
Tim Nguyen 378e9808bf Bug 1615862 - Handle conic-gradients in nsCSSGradientRenderer for WebRender. r=emilio,mstange
Differential Revision: https://phabricator.services.mozilla.com/D63018

--HG--
extra : moz-landing-system : lando
2020-02-20 22:07:32 +00:00
Jeff Gilbert 95d86374ba Bug 1616715 - SurfaceFromElement gets alpha Premult unless opt-in to NonPremult. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D63421

--HG--
extra : moz-landing-system : lando
2020-02-20 20:52:10 +00:00
Csoregi Natalia 6360b24e80 Backed out 2 changesets (bug 1616630) for Android bustage. CLOSED TREE
Backed out changeset 15016546c954 (bug 1616630)
Backed out changeset dcb7dc51633b (bug 1616630)
2020-02-20 21:24:11 +02:00
Andrew Halberstadt 4d752c4ca7 Bug 1616368 - [reftest] Replace 'default-preferences' with 'defaults' r=dbaron
With the new 'defaults' key being added, 'default-preferences' is now
redundant. This commit converts all existing uses of 'default-preferences' to
use 'defaults' instead.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 18:47:54 +00:00
Andrew Halberstadt e08b5215e1 Bug 1616368 - [reftest] Implement ability to set manifest-level defaults r=dbaron
This introduces a new 'defaults' key to reftest manifests. It works similarly
to the existing 'default-preferences' key except it can be used for any test
modifier (e.g, skip-if, fail-if, pref, etc.).

See the changes to README.txt in this commit for an explanation on how to use
it.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 16:04:18 +00:00
Mike Shal 39492660f4 Bug 1616630 - Use py3_action for GENERATED_FILES that already support it; r=firefox-build-system-reviewers,kvark,rstewart
Depends on D63437

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

--HG--
extra : moz-landing-system : lando
2020-02-20 16:21:55 +00:00
Razvan Maries 9122f59cc3 Bug 1616369 - Enabled 447749-1.html and 447749-1-ref.html. r=jnicol
Differential Revision: https://phabricator.services.mozilla.com/D63495

--HG--
extra : moz-landing-system : lando
2020-02-20 16:42:32 +00:00
Emilio Cobos Álvarez 0bc209c210 Bug 1614921 - Ignore background-image on canvas in high-contrast mode. r=morgan
Let's give this a shot.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 15:55:58 +00:00