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

66749 Коммитов

Автор SHA1 Сообщение Дата
Ehsan Akhgari 0dcf936804 Bug 1510911 - Part 2: Backout changeset f8849239da42 (bug 1493563 - Part 5) for regressing performance 2018-12-03 14:27:53 -05:00
Emilio Cobos Álvarez 397cd32f41 Bug 1511811 - Remove useless GECKO_BORROWED_TYPE_MUT.
This causes a typedef mozilla::ServoElementSnapshot ServoElementSnapshot; to be
created, which we rely on bindgen not generating.

But bindgen will start (correctly) generating it in:

  https://github.com/rust-lang/rust-bindgen/pull/1436

So easiest fix is just to remove this typedef, since it's just used by one FFI
function.
2018-12-03 08:44:20 -05:00
shindli 6c6e4a960d Backed out 13 changesets (bug 1511811) for Btup bustages
Backed out changeset d71cde918f43 (bug 1511811)
Backed out changeset 0ae2634de8e1 (bug 1511811)
Backed out changeset 53d1f5ca4099 (bug 1511811)
Backed out changeset 5a08148928ef (bug 1511811)
Backed out changeset da7816ec50ef (bug 1511811)
Backed out changeset 5fe23889cccc (bug 1511811)
Backed out changeset 800bc60c75a7 (bug 1511811)
Backed out changeset 2392d8199cd0 (bug 1511811)
Backed out changeset 7bc486fbd195 (bug 1511811)
Backed out changeset d2c997426108 (bug 1511811)
Backed out changeset ddd573878432 (bug 1511811)
Backed out changeset 29c8ec1559a4 (bug 1511811)
Backed out changeset f5851346109d (bug 1511811)

--HG--
rename : third_party/rust/darling_core/src/macros_private.rs => third_party/rust/darling_core/src/macros.rs
2018-12-03 15:39:11 +02:00
Emilio Cobos Álvarez f0f4a31d87 Bug 1511811 - Remove useless GECKO_BORROWED_TYPE_MUT.
This causes a typedef mozilla::ServoElementSnapshot ServoElementSnapshot; to be
created, which we rely on bindgen not generating.

But bindgen will start (correctly) generating it in:

  https://github.com/rust-lang/rust-bindgen/pull/1436

So easiest fix is just to remove this typedef, since it's just used by one FFI
function.
2018-12-03 08:15:13 -05:00
Daniel Holbert 71aa6465b6 Bug 1452527: Un-skip reftest svg/outline.html on mac/linux, and mark it as fuzzy in general. (no review, just adjusting test annotation)
The fuzzy() annotation here is using the max-difference from the
Windows failures in bug 1452527, and the number-of-mismatching-pixels
from mac/linux failures in bug 1503525.

--HG--
extra : rebase_source : b7261f2f150ec609cec7c1f08e1fa7459994ddf3
2018-12-02 17:09:25 -08:00
arthur.iakab c6a108cc3c Merge mozilla-central to mozilla-inbound 2018-12-03 00:02:03 +02:00
Jonathan Kew ce26961aa9 Bug 1458365 - Re-enable test_dont_use_document_colors.html on Windows/ASAN, as it no longer seems to fail there. r=dmajor 2018-12-02 08:27:03 +00:00
Emilio Cobos Álvarez 10135fb97c No bug - remove an unused struct.
Differential Revision: https://phabricator.services.mozilla.com/D13641

--HG--
extra : moz-landing-system : lando
2018-12-02 14:34:28 +00:00
Daniel Varga fabf13656d Merge mozilla-central to mozilla-inbound. a=merge 2018-12-01 23:42:02 +02:00
Ting-Yu Lin 35b4281c96 Bug 1511536 - Restore the comment in nsCSSFrameConstructor::ConstructBlock(), and disable clang-format. r=sylvestre
The example frame tree didn't survive the global clang-format change.

DONTBUILD because this is a comment-only change.

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

--HG--
extra : moz-landing-system : lando
2018-12-01 13:48:45 +00:00
Botond Ballo cad1533d02 Bug 1511375 - Update the visual viewport size in UpdateResolution() if either the zoom or the display size might have changed. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D13578

--HG--
extra : moz-landing-system : lando
2018-12-01 05:34:57 +00:00
Coroiu Cristina 3564dfde3b Merge inbound to mozila-central a=merge 2018-12-01 07:46:00 +02:00
Andrea Marchesini 2d4f513ae0 Bug 1508310 - Implement Report-to header support - part 1 - Header parser, r=smaug 2018-12-01 21:26:08 +01:00
Hiroyuki Ikezoe 5c4c6cf5e4 Bug 1510214 - Change the default minimum scale to match Chrome's. r=botond
The reftest in this commit fails without changing the default value.  The test
image is shrunk too much.

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

--HG--
extra : moz-landing-system : lando
2018-11-29 07:32:25 +00:00
Sylvestre Ledru 265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Emilio Cobos Álvarez b54948124d Bug 1509717 - Use cbindgen for border-style and outline-style. r=heycam
I'm pretty sure the FIXME I left in the outline-style code is a bug,
but I want to clean this up further and I didn't want to fix it without adding
a test.

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

--HG--
extra : moz-landing-system : lando
2018-11-30 05:27:28 +00:00
Emilio Cobos Álvarez 9670d54612 Bug 1509718 - Get rid of mBorderWidthTable. r=jwatt
It has little to no use these days.

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

--HG--
extra : moz-landing-system : lando
2018-11-27 19:52:13 +00:00
Emilio Cobos Álvarez c279a94301 Bug 775618 - Implement page-break-{before,after} as legacy shorthands for {before,after}. r=heycam
This is all the style-system work needed for this.

This implements the concept of legacy shorthands, teaches tests to understand
it, and adds a few more tests for these properties in particular.

The WPT even caught a few WebKit / Blink bugs:

  https://bugs.chromium.org/p/chromium/issues/detail?id=906336
  https://bugs.webkit.org/show_bug.cgi?id=191803

This doesn't change the layout behavior for page-break-before: always, since
it'd stop breaking in multicol and such. Similarly, break-before / break-after:
column and page still behave the same, I'll file followups for those given
comment 22.

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

--HG--
extra : moz-landing-system : lando
2018-11-30 05:35:47 +00:00
Emilio Cobos Álvarez c76f00a8ad Bug 775618 - Introduce break-inside, and alias page-break-inside to it. r=heycam
This property has no weird value mapping, so we can just do this.

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

--HG--
extra : moz-landing-system : lando
2018-11-20 05:07:52 +00:00
Emilio Cobos Álvarez ddde052ada Bug 1510942 - Fix the position of the caret when the caret frame is a reference frame. r=mattwoodrow
This is consistent with what we do for non-stacking-contexts. The
GetCaretFrame() == child check may be able to go away, I'm not sure, so I've
left it for now.

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

--HG--
extra : moz-landing-system : lando
2018-11-30 06:19:21 +00:00
Shubham Kumaram b87c4f4c0c Bug 1509664 - Change Text Rendering constants to enum classes in nsStyleConsts.h. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D12839

--HG--
extra : moz-landing-system : lando
2018-11-30 05:08:46 +00:00
Razvan Maries 77d87d9972 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-11-30 05:13:14 +02:00
Botond Ballo 58464bd083 Bug 1509552 - Ensure MobileViewportManager doesn't choose a zoom level that makes the content smaller than the visual viewport. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D13315

--HG--
extra : moz-landing-system : lando
2018-11-30 00:59:11 +00:00
Botond Ballo 647b04cbf1 Bug 1509552 - MobileViewportManager::UpdateResolution cleanup, part 3. r=kats
Adds an |UpdateType| parameter to UpdateResolution() to better separate the
pre-reflow and post-reflow logic.

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

--HG--
extra : moz-landing-system : lando
2018-11-30 00:58:56 +00:00
Botond Ballo 51c7ddc4f7 Bug 1509552 - MobileViewportManager::UpdateResolution cleanup, part 2. r=kats
* Call SetResolutionAndScaleTo() in just one place
* Call UpdateVisualViewportSize() in UpdateResolution() rather than
  requiring the caller to do it (and on non-first paints, only call it
  if the resolution has actually changed)

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

--HG--
extra : moz-landing-system : lando
2018-11-30 00:56:49 +00:00
Botond Ballo 3c27a3d1e2 Bug 1509552 - MobileViewportManager::UpdateResolution cleanup, part 1. r=kats
* Introduce helpers for converting between zoom and resolution
* Perform calculations in terms of zoom rather than resolution

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

--HG--
extra : moz-landing-system : lando
2018-11-30 01:01:13 +00:00
Botond Ballo 10aa613485 Bug 1501342 - Add a reftest. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D13347

--HG--
extra : moz-landing-system : lando
2018-11-30 02:03:03 +00:00
Botond Ballo 5aba9815a4 Bug 1501342 - In ProcessDisplayItems(), handle the case where scrollMetadataASR and mContainerScrollMetadataASR are in different branches of the ASR tree. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D13346

--HG--
extra : moz-landing-system : lando
2018-11-30 02:02:48 +00:00
Razvan Maries d696b8eb57 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-11-29 23:46:52 +02:00
Daniel Holbert 5870eaf32d Bug 1337655 part 1: Move some prefixed gradient values to pref-controlled sections of property_database.js. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D13370

--HG--
extra : moz-landing-system : lando
2018-11-29 18:27:28 +00:00
Kartikaya Gupta cca0a66cf0 Bug 1510639 - Add reftests for various scenarios involving sticky items inside scrollframes and transforms. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D13367

--HG--
extra : moz-landing-system : lando
2018-11-29 14:57:24 +00:00
Daniel Varga d4b090ea42 Merge mozilla-central to autoland. a=merge on a CLOSED TREE
--HG--
extra : rebase_source : 81b5f62e48ccbe6c941a80b72a4eebe0ed942ccf
2018-11-29 11:59:02 +02:00
Coroiu Cristina da4da94439 Merge mozilla-central to inbound a=merge 2018-11-29 06:39:53 +02:00
Coroiu Cristina e92b0f1d7f Merge inbound to mozilla-central a=merge 2018-11-29 06:27:40 +02:00
Masayuki Nakano 83f155f075 Bug 1498816 - part 1: Make nsFrameSelection::CommonPageMove() emulate click in current selection limiter r=smaug
nsFrameSelection::CommonPageMove() is called only by
nsTextInputSelectionImpl::PageMove() and PresShell::PageMove().  So, this is
the only implementation of (Shift+) PageDown and (Shift+) PageUp.

This scrolls down/up the specific frame.  However, this allows to scroll
outside of selection limiter, for example, even when an editing host is
focused, its parent scrollable element may be scrolled.  This is same behavior
as Blink so that we should keep this behavior.

However, it also emulates to click same position after scroll and this behavior
is different from Blink.  At this time, it does not check selection limiter and
then, nsFrameSelection::HandleClick() may reset selection limiter the scrolled
frame is a parent frame of the limiter.

Therefore, this patch makes it check if the scrolled frame is a parent of the
limiter, and if so, use result of GetFrameToPageSelect() to emulate a click
instead.  The result won't be a parent of the limiter because it is used when
handling Shift + PageDown and Shift + PageUp which are always handled in the
limiter.

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

--HG--
extra : moz-landing-system : lando
2018-11-29 06:16:15 +00:00
Masayuki Nakano 451e39f20d Bug 1498816 - part 0: Add automated tests of PageDown/PageUp key handling in an editing host r=smaug
Even if there is no scrollable element is in focused editing host, its parent
scrollable element should be scrolled.  However, focus shouldn't be moved and
selection ranges should be kept in the editing host.

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

--HG--
extra : moz-landing-system : lando
2018-11-28 11:04:09 +00:00
Bogdan Tara 87661d5c7d Backed out changeset 30accf21bb0a (bug 1510214) perma failing org.mozilla.geckoview.test.AccessibilityTest.testScroll CLOSED TREE 2018-11-29 07:51:59 +02:00
Coroiu Cristina 3ba5c153be Merge mozilla-central to autoland a=merge 2018-11-29 06:38:18 +02:00
Hiroyuki Ikezoe cb90e86a66 Bug 1510214 - Change the default minimum scale to match Chrome's. r=botond
The reftest in this commit fails without changing the default value.  The test
image is shrunk too much.

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

--HG--
extra : moz-landing-system : lando
2018-11-29 02:51:18 +00:00
Gabriele Svelto 19e52bebd4 Bug 1510582 - Remove useless inclusions of Services.h r=erahm
Differential Revision: https://phabricator.services.mozilla.com/D13240

--HG--
extra : moz-landing-system : lando
2018-11-28 17:25:23 +00:00
Kartikaya Gupta 789591abf5 Bug 1503447 - Follow-up to fix reftest annotation. r=kvark CLOSED TREE
Reviewers: kvark

Bug #: 1503447

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

--HG--
extra : rebase_source : bcacc6ee0377729c0e72fbd957891494e1b491be
extra : histedit_source : eccecf153af1a70663b2537edb7ae1b041c60fa4
2018-11-28 22:57:44 +02:00
Emilio Cobos Álvarez 9d8364e9b2 Bug 1498639 - Mark the reftest random-if since it passes sometimes.
CLOSED TREE
2018-11-28 21:25:21 +01:00
Mats Palmgren e376f2d1c6 Bug 1509903 part 2 - Make the remaining nsTextFrame virtual methods 'final' unless they are overridden by nsContinuingTextFrame. r=emilio 2018-11-29 00:17:25 +01:00
Mats Palmgren 7cdfa1649e Bug 1509903 part 1 - Make nsTextFrame::IsFrameSelected() 'final' and inline nsIFrame::IsSelected() to de-virtualize the IsFrameSelected() call in some cases. r=emilio
In particular, in nsCharClipDisplayItem::IsSelected() we know that
the frame must be a nsTextFrame (or nsContinuingTextFrame) which
means nsTextFrame::IsFrameSelected() can be called directly now.
2018-11-29 00:17:25 +01:00
Emilio Cobos Álvarez 966d9cdd49 Bug 1498639 - Add a reftest (failing in WR). r=kats
Differential Revision: https://phabricator.services.mozilla.com/D12217

--HG--
extra : moz-landing-system : lando
2018-11-28 19:07:35 +00:00
Emilio Cobos Álvarez 448cf93a79 Bug 1498639 - Force the creation of APZ scroll data for the frames with perspective property, not just their children. r=kats
This fixes the assertion, though not the test-case, but now I can debug the
test-case and also land it as failing for now.

What was happening is that we had two ASRs (for the canvas and for the <body>),
and we were creating scroll data for the CompositorHitTestInfo of the <body>
(which obviously didn't have any ancestor transform) and for the
nsDisplayTransform in the backface for which HasPerspective returns true for,
but which already had an ancestor transform for the frame for which
ChildrenHavePerspective returns true.

It may be less risky to force it for both, but this doesn't make anything fail.

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

--HG--
extra : moz-landing-system : lando
2018-11-28 15:56:58 +00:00
Dzmitry Malyshau 54ba2010c1 Bug 1503447 - Always use zero origin for WR reference frames and stacking contexts r=kats
Previously, WebRender was getting a rectangle for reference frames
and stacking contexts, and it had to carefully treat the origin of this rectange:
  - by offseting all the items in a stacking context
  - by negatively compensating the sticky frame scroll port according to the
parent reference frame origin

With this change, we stop providing any non-zero origins. Instead we accomplish
the same behavior using existing API primitives, such as reference frames:
  1. when a stacking context has an origin, we push another reference frame for it
  2. when computing the sticky frame scroll port, we take this origin into account

This slightly simplifies Gecko-WR API, but more importantly it would allow WR to
get rid of this logic (of handling origins), which in turn would allow to switch
the reference frames from push()/pop() model to just define(), like we do for
scroll/sticky frames already.

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

--HG--
extra : moz-landing-system : lando
2018-11-28 15:32:41 +00:00
Narcis Beleuzu 32a0676730 Merge autoland to mozilla-central. a=merge 2018-11-28 11:48:31 +02:00
Cosmin Sabou 20c5475d6d Merge mozilla-central to autoland. 2018-11-28 06:11:15 +02:00
Cosmin Sabou e1e8f2ea69 Merge mozilla-inbound to mozilla-central. a=merge 2018-11-28 06:08:19 +02:00