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

67294 Коммитов

Автор SHA1 Сообщение Дата
Botond Ballo e99815f1f0 Bug 1509575 - Extend the internal visual scroll API to allow specifying "restore" vs. regular priority. r=kats
The distinction is not exposed at the JS level which currently always uses
"restore", but it could be if necessary.

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

--HG--
extra : moz-landing-system : lando
2019-01-15 01:30:43 +00:00
Brad Werth 01cd7d5f12 Bug 1504659 Part 5: Update Android reftest expectations. r=botond
The tests for Bug 1133905 all compare the visibility of scrollbars with
differently-sized css viewports. This patch has some affect on the
viewport sizing that I don't understand, and it causes some of the tests
to start passing and some to start failing.

The test for Bug 1242172 has elements sized to height 100% and checking
for the presence or absence of scrollbars. In this case the patch appears
to increase the css viewport height and decrease the width -- again for
reasons I don't understand -- and this affects the scrollbar sizes.

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

--HG--
extra : moz-landing-system : lando
2019-01-14 20:09:06 +00:00
Brad Werth d2660a3462 Bug 1504659 Part 1: Make RefreshVisualViewportSize allow non-APZ zooming, and call it during RefreshViewportSize. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D13173

--HG--
extra : moz-landing-system : lando
2019-01-14 20:07:22 +00:00
Brindusan Cristian ba661244da Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-01-14 23:53:38 +02:00
Brindusan Cristian 2e2984f826 Merge inbound to mozilla-central. a=merge 2019-01-14 23:51:26 +02:00
Mats Palmgren 9a48b50d31 Bug 1519847 - [css-logical] Implement the padding-block/inline shorthands. r=emilio 2019-01-14 19:22:03 +01:00
Ting-Yu Lin 3bd2052ec3 Bug 1486521 - Make Selection::Stringify() stop flushing frames if AccessibleCaretManager doesn't allow so. r=emilio
The added crashtest still crashes on Android verify runs (TV) for
unknown reasons, so skip it.

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

--HG--
extra : moz-landing-system : lando
2019-01-14 04:58:59 +00:00
Emilio Cobos Álvarez ad094d75c5 Bug 1519934 - Remove useless nsDisplayTransform::mNoExtendContext. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D16487

--HG--
extra : moz-landing-system : lando
2019-01-14 20:39:13 +00:00
Emilio Cobos Álvarez 68022ead2d Bug 1519501 - Generalize a bit GenerateServoStyleConsts and rename to RunCbindgen. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D16399
2019-01-14 13:44:38 +01:00
Brindusan Cristian 338aeb2777 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-01-15 06:41:22 +02:00
Margareta Eliza Balazs 9dda825205 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-01-18 12:31:59 +02:00
Bas Schouten 14ddde5ae1 Bug 1520877 - Part 4: Make nsDisplayBackgroundColor use FillRoundedRect and mark some tests fuzzier. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D16895

--HG--
extra : rebase_source : 344e67739a4f79e74f2e6afc7eed4234e8484475
2019-01-17 20:41:00 +01:00
Ehsan Akhgari e5e885ae31 Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
# ignore-this-changeset

--HG--
extra : amend_source : 7221c8d15a765df71171099468e7c7faa648f37c
extra : histedit_source : a0cce6015636202bff09e35a13f72e03257a7695
2019-01-18 10:16:18 +01:00
Ehsan Akhgari 06c3d29113 Bug 1521000 - Part 1: Reformat the tree to ensure everything is formatted correctly with clang-format r=sylvestre
Summary: # ignore-this-changeset

Reviewers: sylvestre

Reviewed By: sylvestre

Subscribers: reviewbot, emilio, jandem, bbouvier, karlt, jya

Bug #: 1521000

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

--HG--
extra : histedit_source : 4add583bfa729ccc1aef934629ed45ff095189b0
2019-01-18 10:12:56 +01:00
Andrew Osmond 6d9401a9e6 Bug 1453747 - Use rounded dest rect in simplified image decode size calculations for WebRender. r=mstange
We are using the unrounded dest rect to calculate the image decode size
in ComputeImageContainerDrawingParameters, while passing the rounded
dest rect to WebRender. This mismatch causes images to be decoded to one
size and display at another, cause some visual distortions. Using the
correct rect seems to allow us to remove the extra snapping logic added
to work around this.

At this time, how we snap is different between WebRender and
non-WebRender in general. This patch will likely morph again once we
bring the two models closer together.

Differential Revision: https://phabricator.services.mozilla.com/D15739
2019-01-15 16:36:42 -05:00
Daniel Holbert 160765a37c Bug 1520798 followup: add HTML crashtest for this bug (on top of earlier XUL crashtest). no review, testonly
--HG--
extra : rebase_source : bd4f6118b856e095217643c73fda451885597cab
2019-01-17 15:42:01 -08:00
Csoregi Natalia 050a4e7524 Merge mozilla-central to mozilla-inbound. CLOSED TREE 2019-01-17 23:59:29 +02:00
Mats Palmgren 9c04886e64 Bug 1520684 part 2 - [css-logical] Implement the flow-relative border-radius properties. r=emilio 2019-01-17 21:49:07 +01:00
Emilio Cobos Álvarez d3c8dea1ae Bug 1520229 - [css-logical] Implement the inset shorthand. r=mats
Reviewers: mats

Reviewed By: mats

Bug #: 1520229

Differential Revision: https://phabricator.services.mozilla.com/D16704
2019-01-20 18:32:11 +01:00
Daniel Varga 3870494408 Merge mozilla-inbound to mozilla-central. a=merge 2019-01-13 12:05:22 +02:00
Hiroyuki Ikezoe 1a788c1224 Bug 1519607 - Use GetScrollPortRect() size for the root scroll frame in nsLayoutUtils::GetRootMetadata. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D16384

--HG--
extra : moz-landing-system : lando
2019-01-13 01:27:15 +00:00
Ryan VanderMeulen 43004ee1dc No bug - Clean up dom/base/crashtests/crashtests.list a bit. r=me
Also re-enables some tests which no longer timeout intermittently.

--HG--
extra : rebase_source : c99178e1028e7d9ab2e7fd8da30220b37d311a95
2019-01-12 11:54:11 -05:00
Narcis Beleuzu 7d7aca6a93 Merge inbound to mozilla-central. a=merge 2019-01-12 11:40:44 +02:00
Cameron McCormack 7fc8e05804 Bug 1519296 - Part 4: Remove ServoStyleSet::PrependStyleSheet r=emilio
Depends on D16283

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

--HG--
extra : moz-landing-system : lando
2019-01-12 06:45:45 +00:00
Cameron McCormack cba84d5116 Bug 1519296 - Part 3: Make PresShell::AddOverrideStyleSheet append its sheet rather than prepend r=emilio
We only ever add a single sheet (EditorOverride.css) there anyway.

Depends on D16282

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

--HG--
extra : moz-landing-system : lando
2019-01-12 06:45:52 +00:00
Cameron McCormack 4e88281a6e Bug 1519296 - Part 2: Make PresShell::AddUserSheet just find the right place to insert r=emilio
Depends on D16281

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

--HG--
extra : moz-landing-system : lando
2019-01-12 06:46:00 +00:00
Cameron McCormack 7cd9d6695b Bug 1519296 - Part 1: Use a sensible order when filling the style set with User and Agent sheets r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D16281

--HG--
extra : moz-landing-system : lando
2019-01-12 00:50:01 +00:00
Boris Chiou bdec90c4ee Bug 1348519 - Part 2: Implement Animate for track lists on grid-template-{columns|rows}. r=emilio
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1348519#c6 and
https://github.com/w3c/csswg-drafts/issues/3201:

Currently grid-template-rows/columns interpolate “per computed value”, which
means that if the number of tracks differs, or any track changes to/from a
particular keyword value to any other value, or if a line name is added/removed
at any position, the entire track listing is interpolated as “discrete”.
But we "agree" with two more granular options:

1. Check interpolation type per track, rather than for the entire list, before
   falling back to discrete. I.e. a length-percentage track can animate between
   two values while an adjacent auto track flips discretely to min-content.
2. Allow discrete interpolation of line name changes independently of track
   sizes.

Besides, for the repeat() function, it's complicated to support interpolation
between different repeat types (i.e. auto-fill, auto-fit) and different repeat
counts, so we always fall-back to discrete if the first parameter of repeat()
is different.

Depends on D16339

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

--HG--
extra : moz-landing-system : lando
2019-01-12 02:22:39 +00:00
Boris Zbarsky 188ff78bd7 Bug 1519193 part 4. Convert AssertNoFramesInSubtree to using ShadowIncludingTreeIterator. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D16245

--HG--
extra : moz-landing-system : lando
2019-01-12 03:20:05 +00:00
Jeff Muizelaar 22baed2b58 Bug 1519444. Don't enforce a minimum size for blobs. r=mstange
WebRender can handle small image without much overhead. Allowing
small images will give us more predictable behaviour because
we don't end up merging things unneccessarily.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 19:43:32 +00:00
Noemi Erli f53cd6172e Backed out 5 changesets (bug 1519193) for build bustages in Document.cpp CLOSED TREE
Backed out changeset e118466df64d (bug 1519193)
Backed out changeset 12d89a7fe296 (bug 1519193)
Backed out changeset 08b0f2b9a96a (bug 1519193)
Backed out changeset 1caa462e7f08 (bug 1519193)
Backed out changeset aae6e06aa88b (bug 1519193)
2019-01-12 00:29:37 +02:00
Boris Zbarsky c88360208d Bug 1519193 part 4. Convert AssertNoFramesInSubtree to using ShadowIncludingTreeIterator. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D16245

--HG--
extra : moz-landing-system : lando
2019-01-10 22:24:24 +00:00
Jan Henning 79fe5e1e56 Bug 1498812 - Part 11: Use Visual Viewport for storing scroll position in the PresState. r=botond,tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D15691

--HG--
extra : moz-landing-system : lando
2019-01-11 19:50:24 +00:00
Jan Henning 0ce3612dce Bug 1498812 - Part 10: Return whether SetVisualViewportOffset was a no-op. r=botond
So that the caller doesn't have to retrieve and compare the previous viewport
offset himself.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 19:50:17 +00:00
Razvan Maries 642dd2cc11 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2019-01-11 17:33:16 +02:00
Christoph Kerschbaumer 6756032512 Bug 1513241: Update frontend consumers of loadURI and pass loadURIOptions dictionary. r=gijs 2019-01-11 12:44:20 +01:00
Razvan Maries 22218f3515 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2019-01-11 11:36:24 +02:00
Andreea Pavel 2a44f0abe0 Backed out 2 changesets (bug 1509575) for failing wpt at css/cssom-view/scroll-behavior-main-frame-root.html on a CLOSED TREE
Backed out changeset 245d6855cd3b (bug 1509575)
Backed out changeset 7dcfa876f76c (bug 1509575)
2019-01-11 09:08:19 +02:00
Daniel Varga 1b2c69a5c1 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2019-01-11 06:23:02 +02:00
Botond Ballo 1346c277b1 Bug 1509575 - Restore the visual viewport offset from the main thread during a first paint. r=kats
During a "first paint" transaction, compositor-side state such as APZ's copy
of the visual viewport offset is overwritten. However, the scroll frame may
persist on the main thread, and in such a case we want to restore the visual
viewport offset stored in the scroll frame. This comes into play during e.g.
navigation back to a page.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 04:21:29 +00:00
Masayuki Nakano f421d7b889 Bug 181137 - part 8: Make ContentIteratorBase and its subclasses non-refcountable r=smaug
This patch makes ContentIteratorBase, PostContentIterator, PreContentIterator
and ContentSubtreeIterator classes non-refcountable because most users can
create their instances in stack and such users may be in a hot path.  So,
we can save a lot of cost of instantiation.

Unfortunately, only ScriptableContentIterator creates one of the concrete
classes and needs to destroy it properly.  Therefore, its
EnsureContentIterator(), destructor, traverse and unlink code becomes messy.
However, ScriptableContentIterator was designed for automated tests and we
need to maintain it not so many times.  Therefore, improvement of other
users must be worthwhiler than this demerit.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 01:52:26 +00:00
Masayuki Nakano f8844f0d9b Bug 181137 - part 7: Get rid of nsIContentIterator interface r=smaug
Now, nobody requires nsIContentIterator interface.  So, we can get rid of it.

Unfortunately, there is no macro to keep the inherited class,
ContentSubtreeIterator, in the cycle collection to make it keep managing
ContentSubtreeIterator::mRange without nsISupports interface.  Therefore, this
patch moves it into ContentIteratorBase temporarily.  Anyway, the following
patch makes those classes not refcountable.  At that time, this issue will be
fixed.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 01:51:42 +00:00
Masayuki Nakano 3b6d4adf2d Bug 181137 - part 3: Make all users of ContentSutreeIterator treat it directly rather than via nsIContentIterator r=smaug
Now, all users of ContentSubtreeIterator can access it directly.  This patch
makes them use the concrete class directly.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 01:49:00 +00:00
Ryan Hunt 7972421862 Bug 1518633 part 15 - Remove unneeded mouse click test_bug633762. r=mattwoodrow
This mouse click seems superfluous, as window.focus() is called immediately after.

In addition, this click is somehow causing a page up scroll, as it's clicking
a slider frame. This causes the test to fail with scroll anchoring enabled,
for some reason. Removing this click seems to be the easiest solution, as it
doesn't seem intentional.

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

--HG--
extra : rebase_source : 6e41d587e54d083b0930173d12db1fc180ae70fa
extra : histedit_source : a604e48df440974b7554b6ee8be01641abd92a64
2019-01-10 18:20:39 -06:00
Cameron McCormack 0de25813f2 Bug 1519011 - Make counterstyles.css sharable r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D16240

--HG--
extra : moz-landing-system : lando
2019-01-10 22:27:09 +00:00
Cameron McCormack 788d8b2454 Bug 1519006 - Stop null checking infallible style sheet accessors in nsDocumentViewer::CreateStyleSet r=xidorn
Differential Revision: https://phabricator.services.mozilla.com/D16151

--HG--
extra : moz-landing-system : lando
2019-01-11 03:12:28 +00:00
Cameron McCormack 8106cebcf9 Bug 1519001 - Rename some style sheet accessors on nsLayoutStylesheetCache to indicate they can return null r=xidorn
Differential Revision: https://phabricator.services.mozilla.com/D16150

--HG--
extra : moz-landing-system : lando
2019-01-11 03:12:05 +00:00
Botond Ballo 2d2fffe3ea Bug 1507279 - Add a mechanism for the main thread to set a visual viewport offset. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D16141

--HG--
extra : moz-landing-system : lando
2019-01-10 20:59:13 +00:00
Xidorn Quan 12de3945a4 Bug 1514498 - Hide rather than collapse scrollbar thumb when scrollbar is disabled. r=NeilDeakin
Collapsing thumb causes frame of scrollbar to cache an incorrect pref
size, which makes it not able to appear in certain cases.

This patch changes it to use "visibility: hidden" instead so that the
thumb is hidden but still contributes to the width of scrollbar.

An alternative would be also change the code in nsScrollbarFrame to set
something other than collapsed attribute instead, but I'm not sure
whether doing that is any better than just adding a rule. We need the
rule anyway regardless of what we set on the element.

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

--HG--
extra : moz-landing-system : lando
2019-01-10 14:15:30 +00:00
Noemi Erli 7d19be646b Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-01-12 00:00:06 +02:00
Emilio Cobos Álvarez ed4a7f2a2a Bug 1514384 - Properly make CSS clip property clip filters as well. r=mstange
This fixes a bug that my previous patch uncovers, and that's tested by
css/css-masking/clip/clip-filter-order.html.

We weren't setting up the clips in a way that the clip property clipped filters
and such. This test works in Gecko because Gecko won't draw outside of the
effect bounds, that account for clip().

Differential Revision: https://phabricator.services.mozilla.com/D16232
2019-01-11 22:19:20 +01:00
Emilio Cobos Álvarez b7102def68 Bug 1514384 - Pass the current clip chain id instead of clipping to the filter bounds. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D16206
2019-01-11 22:19:19 +01:00
Ryan Hunt 24d7fd6299 Bug 1519468 - Consistently check if a frame has content in ScrollAnchorContainer. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D16336

--HG--
extra : rebase_source : d56e93e4f8c021240cda9cb3b688b681a6a522af
extra : amend_source : 5a81506addb4ed177f990a25242bace7be9338a9
extra : source : 09a0a3c7356e9b161a7233179a087e3b137dc600
2019-01-11 12:21:09 -06:00
Jeff Muizelaar 17b5ec3dd2 Bug 1509182. Switch from using WrFilterOp to using FilterOp directly. r=nical
This avoids code duplication and simplifies push_stacking_context

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

--HG--
extra : moz-landing-system : lando
2019-01-10 19:41:08 +00:00
Cosmin Sabou 88993e172c Backed out changeset 10dedfde1015 (bug 1509182) for causing build bustages.
--HG--
extra : rebase_source : 4389819cbb88af16724480f571b0abcd027015ba
2019-01-10 20:52:49 +02:00
Jeff Muizelaar ef9bb810f0 Bug 1509182. Switch from using WrFilterOp to using FilterOp directly. r=nical
This avoids code duplication and simplifies push_stacking_context

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

--HG--
extra : moz-landing-system : lando
2019-01-10 18:40:56 +00:00
Csoregi Natalia ae6fde5883 Backed out changeset 8e078c86db82 (bug 1509182) for bustage on WebRenderTypes.h:789. CLOSED TREE 2019-01-10 18:15:42 +02:00
Jeff Muizelaar a0468b94c6 Bug 1509182. Switch from using WrFilterOp to using FilterOp directly. r=nical
This avoids code duplication and simplifies push_stacking_context

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

--HG--
extra : moz-landing-system : lando
2019-01-10 14:20:21 +00:00
Nicolas Silva 7df7be6d7a Bug 1510076 - Reenable large-border-radius-dashed crashtests. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D16189

--HG--
extra : moz-landing-system : lando
2019-01-10 14:28:19 +00:00
Csoregi Natalia 13506c036a Backed out 8 changesets (bug 181137) for bustage on FragmentOrElement.cpp:1751. CLOSED TREE
Backed out changeset 99a977d519a0 (bug 181137)
Backed out changeset 65a4b245e851 (bug 181137)
Backed out changeset 5385d5fd9b8b (bug 181137)
Backed out changeset 83bec02c21d9 (bug 181137)
Backed out changeset b7ab59bf545e (bug 181137)
Backed out changeset b6fc7a332db7 (bug 181137)
Backed out changeset 654fdbad67db (bug 181137)
Backed out changeset 90a1ff49b6b1 (bug 181137)

--HG--
rename : dom/base/ContentIterator.h => dom/base/nsContentIterator.cpp
rename : editor/spellchecker/FilteredContentIterator.cpp => editor/spellchecker/nsFilteredContentIterator.cpp
rename : editor/spellchecker/FilteredContentIterator.h => editor/spellchecker/nsFilteredContentIterator.h
2019-01-10 11:42:27 +02:00
Masayuki Nakano 796ceb094f Bug 181137 - part 8: Make ContentIteratorBase and its subclasses non-refcountable r=smaug
This patch makes ContentIteratorBase, PostContentIterator, PreContentIterator
and ContentSubtreeIterator classes non-refcountable because most users can
create their instances in stack and such users may be in a hot path.  So,
we can save a lot of cost of instantiation.

Unfortunately, only ScriptableContentIterator creates one of the concrete
classes and needs to destroy it properly.  Therefore, its
EnsureContentIterator(), destructor, traverse and unlink code becomes messy.
However, ScriptableContentIterator was designed for automated tests and we
need to maintain it not so many times.  Therefore, improvement of other
users must be worthwhiler than this demerit.

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

--HG--
extra : moz-landing-system : lando
2019-01-10 08:50:41 +00:00
Masayuki Nakano 91a9670801 Bug 181137 - part 7: Get rid of nsIContentIterator interface r=smaug
Now, nobody requires nsIContentIterator interface.  So, we can get rid of it.

Unfortunately, there is no macro to keep the inherited class,
ContentSubtreeIterator, in the cycle collection to make it keep managing
ContentSubtreeIterator::mRange without nsISupports interface.  Therefore, this
patch moves it into ContentIteratorBase temporarily.  Anyway, the following
patch makes those classes not refcountable.  At that time, this issue will be
fixed.

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

--HG--
extra : moz-landing-system : lando
2019-01-10 08:47:54 +00:00
Masayuki Nakano e4fd546fbd Bug 181137 - part 3: Make all users of ContentSutreeIterator treat it directly rather than via nsIContentIterator r=smaug
Now, all users of ContentSubtreeIterator can access it directly.  This patch
makes them use the concrete class directly.

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

--HG--
extra : moz-landing-system : lando
2019-01-10 08:45:07 +00:00
Masayuki Nakano 95635bbb30 Bug 1499430 - Make PresShell::PageMove() use result of nsFrameSelection::GetFrameToPageSelect() when PresShell::GetScrollableFrameToScroll() returns nullptr r=smaug
If there is no scrollable frame, PresShell::GetScrollableFrameToScroll() returns
nullptr.  However, even when we don't expand selection, we need to move caret
in current selection root.  Therefore, it should call
nsFrameSelection::CommonPageMove() with the result of
nsFrameSelection::GetFrameToPageSelect() to move caret.

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

--HG--
rename : layout/base/tests/test_expanding_selection_per_page.html => layout/base/tests/test_moving_and_expanding_selection_per_page.html
extra : moz-landing-system : lando
2019-01-10 05:02:56 +00:00
Brad Werth 4af0e76c46 Bug 1518965: Remove nsPresContext::mLastResizeEventVisibleArea and accessor functions that are never used. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D16126

--HG--
extra : moz-landing-system : lando
2019-01-10 01:56:41 +00:00
Matt Woodrow b2e6afc9ac Bug 1516702 - Skip building nsDisplaySVGGeometry display items when they have opacity:0. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D15891

--HG--
extra : moz-landing-system : lando
2019-01-09 23:06:28 +00:00
Botond Ballo 7c6946581e Bug 1518953 - Remove non-ASCII characters from comments in nsLayoutUtils.cpp. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D16113

--HG--
extra : moz-landing-system : lando
2019-01-09 23:21:44 +00:00
Brindusan Cristian d8250d1175 Backed out changeset b66f64e5709d (bug 1516702) for mochitest failures on test_pointer-events-1a.xhtml. 2019-01-10 00:31:36 +02:00
shindli eae80bd903 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-01-09 23:45:39 +02:00
Matt Woodrow 784e839e49 Bug 1516702 - Skip building nsDisplaySVGGeometry display items when they have opacity:0. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D15891

--HG--
extra : moz-landing-system : lando
2019-01-09 19:51:20 +00:00
Botond Ballo 8e0fca04b3 Bug 1518584 - Rename {FrameMetrics,RepaintRequest}::mViewport to mLayoutViewport. r=kats
Depends on D15972

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

--HG--
extra : moz-landing-system : lando
2019-01-09 15:34:34 +00:00
Botond Ballo 4c98f47607 Bug 1518584 - Remove {FrameMetrics,RepaintRequest}::mUseDisplayPortMargins. r=kats
It was always true.

Depends on D15971

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

--HG--
extra : moz-landing-system : lando
2019-01-09 15:33:10 +00:00
Margareta Eliza Balazs 5053031ba7 Merge inbound to mozilla-central. a=merge 2019-01-09 11:26:11 +02:00
Razvan Maries 665c57df8d Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2019-01-09 05:55:28 +02:00
Razvan Maries bc86cecc3c Merge mozilla-inbound to mozilla-central a=merge 2019-01-09 05:49:28 +02:00
Dzmitry Malyshau cddd33e700 Bug 1518605 - New WebRender ClipId/SpatialId API. r=kats
Port to separate SpatialId from ClipId in Webrender API (WR PR #3251).
Patch was originally written and reviewed on bug 1503447.

Depends on D16005

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

--HG--
extra : moz-landing-system : lando
2019-01-09 03:27:07 +00:00
Makoto Kato 353b3ac952 Bug 1450055 - Part 3. Update mochitests since focus event listener is system group. r=masayuki
The focus event listener in editor is system group, so synthesizeKey and/or synthesizeMouse doesn't work on focus event since editor doesn't initialize selection yet. So use setTimeout to work synthesizeKey and etc well.

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

--HG--
extra : rebase_source : bbedd32278c94f009c7ab0e9d685979887b2f031
2019-01-08 16:50:14 +09:00
Makoto Kato 47d2fbacbe Bug 1450055 - Part 2. Add mochitest whether rendering caret or not. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D15924

--HG--
extra : rebase_source : 45c459e4ecbf9b006dc60987b753acd7d2ca72e8
2019-01-08 14:52:12 +09:00
Razvan Maries 8f65aae19c Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2019-01-09 05:57:46 +02:00
longsonr 6e5e275ae5 Bug 1518646 - Export things from dom/smil in the mozilla namespace properly r=birtles 2019-01-09 00:34:14 +00:00
Andrea Marchesini a14dfd8e8d Bug 1417463 - Default accept header should follow the fetch spec, r=mayhemer 2019-01-08 23:36:16 +01:00
Nathan Froyd 7618f58711 Bug 1517653 - give the power manager service its own xpcom module; r=mccr8
The layout module is a little weird.  It's described as being loadable
in the GPU process, but very few of the contracts and CIDs it contains
are also marked as such.  In fact, the sole reason the layout module is
marked as being loadable in the GPU process is so that the power manager
service can be registered; everything else is inconsequential.  This
setup also means that the initializer for the layout module has to
specifically check whether it's running in the GPU process (or several
other processes...), so we don't try to spin up a bunch of stuff we
don't need, like xpconnect and similar.

This setup is silly: we should have a module solely for the power
manager's use and that module can be loaded in the GPU process.  Then
the layout module can go back to being an ordinary module, and we don't
have to play games in its initialization method.
2019-01-08 15:56:58 -05:00
Timothy Nikkel 865c9362f2 Bug 1515113. Fix compile. CLOSED TREE 2019-01-08 14:42:17 -06:00
Timothy Nikkel ffd12d481b Bug 1515113. r=kats 2019-01-08 14:26:08 -06:00
Andreea Pavel f5a1a0f098 Backed out 5 changesets (bug 256180) for failing win xpcshell at xpcshell.ini:toolkit/mozapps/extensions/test/xpcshell/test_temporary.js on a CLOSED TREE
Backed out changeset e85e41f84971 (bug 256180)
Backed out changeset 125ebcfac58d (bug 256180)
Backed out changeset bc2e0a89d88e (bug 256180)
Backed out changeset b696df615c8b (bug 256180)
Backed out changeset 2d69841d2eb7 (bug 256180)
2019-01-08 20:35:31 +02:00
Henri Sivonen 3e767f4f71 Bug 256180 Dalvik part - Disable some deep-tree tests on Android, because running the tests on Dalvik is not feasible. r=snorp. 2019-01-08 18:08:37 +02:00
Henri Sivonen 7fdbc91b91 Bug 256180 parser part - Insert elements as siblings instead of children at the Blink-defined magic depth for compatibility. r=smaug.
MozReview-Commit-ID: K8fgv3rgklt
2019-01-08 18:08:37 +02:00
Henri Sivonen 39d84173d2 Bug 256180 layout part - Increase MAX_REFLOW_DEPTH to reduce the probability of content going silently missing. r=bzbarsky.
MozReview-Commit-ID: 7Ui0tVlLEQM
2019-01-08 18:08:37 +02:00
Paolo Amadini 2a67f25fbd Bug 1454360 - Use "arrowscrollbox" in the "popup-scrollbars" binding. r=NeilDeakin
This prepares this binding for the unification with the "popup" binding, and removes the last consumer of the scrollByIndex method of XULScrollElement.

Because some code paths in "arrowscrollbox" are optimized using requestAnimationFrame, the related scrolling tests are now asynchronous.

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

--HG--
extra : rebase_source : f5d26df106785f2c0d158b8a23a648a71ab06b2d
2019-01-04 15:07:12 +00:00
Oana Pop Rus aec8de62bb Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-01-08 12:37:02 +02:00
Brian Birtles 361e464182 Bug 1518374 - Drop unused aEffectSet parameter from EffectCompositor::AllowCompositorAnimationsOnFrame; r=hiro
Depends on D15900

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

--HG--
extra : moz-landing-system : lando
2019-01-08 06:42:56 +00:00
Bogdan Tara 77560bd888 Backed out 2 changesets (bug 1504659) for test_innerWidthHeight_script.html failures CLOSED TREE
Backed out changeset 0b7bbe6dda1d (bug 1504659)
Backed out changeset 2ebae5c1463b (bug 1504659)
2019-01-08 04:10:11 +02:00
Brad Werth f93fd700e9 Bug 1504659 Part 1: Make RefreshVisualViewportSize allow non-APZ zooming, and call it during RefreshViewportSize. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D13173

--HG--
extra : moz-landing-system : lando
2019-01-07 22:56:58 +00:00
Cameron McCormack b05708ce89 Bug 1500362 - Make GkAtoms opaque to avoid lld-link.exe errors r=emilio
Depends on D15078

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

--HG--
extra : moz-landing-system : lando
2019-01-07 09:50:25 +00:00
Cameron McCormack 81b00f453b Bug 1500362 - Use atom handles in favour of atom pointers in style system code r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D15078

--HG--
extra : moz-landing-system : lando
2019-01-07 07:54:46 +00:00
Doug Thayer a848222b53 Bug 1441308 - Split out document pieces of WebRenderLayerManager r=jrmuizel
Per our discussion, this patch splits out the state management bits of
WebRenderLayerManager, allowing for them to be maintained per-document.

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

--HG--
extra : moz-landing-system : lando
2019-01-07 21:33:10 +00:00
Henri Sivonen 40eb2c1d4e Bug 256180 Dalvik part - Disable some deep-tree tests on Android, because running the tests on Dalvik is not feasible. r=snorp. 2019-01-11 09:44:09 +02:00
Henri Sivonen 34559b2b59 Bug 256180 parser part - Insert elements as siblings instead of children at the Blink-defined magic depth for compatibility. r=smaug.
MozReview-Commit-ID: K8fgv3rgklt
2019-01-11 09:44:09 +02:00
Henri Sivonen c3fa996949 Bug 256180 layout part - Increase MAX_REFLOW_DEPTH to reduce the probability of content going silently missing. r=bzbarsky.
MozReview-Commit-ID: 7Ui0tVlLEQM
2019-01-11 09:44:09 +02:00
Emilio Cobos Álvarez 729263c3df Bug 1511563 - Don't make NAC editable by default. r=masayuki
I think this is a more consistent fix for the issue.

Differential Revision: https://phabricator.services.mozilla.com/D16521
2019-01-15 11:52:35 +01:00
Jonathan Watt 83bd72be0b Bug 1517197. Fix SVG masking and clipping regression. r=mattwoodrow
This Make nsSVGIntegrationUtils::AdjustInvalidAreaForSVGEffects return the
original area if there are no filter effects (instead of using some bogus
fallback code).

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

--HG--
extra : rebase_source : 16de5f99068e5c219f4f366af848ae3cc6c83417
extra : amend_source : 62f0d870192421a58bbf6f7f083c6614c936ac3b
2019-01-15 00:20:52 +00:00
Razvan Maries 7192c6023a Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2019-01-09 00:09:23 +02:00
Emilio Cobos Álvarez 2caa18fcc1 Bug 1518339 - Make user-select: auto behave like user-select: text for editing roots. r=mats
This is the closest to the spec behavior, I think, and less likely to
cause interop issues, but if you prefer me to stop the 'inheritance' chain at
contenteditable elements or what not I can also do that.

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

--HG--
extra : moz-landing-system : lando
2019-01-08 20:21:12 +00:00
Neil Deakin d30462861e Bug 1482389, remove methods of XULTreeElement that return unused nsresults. In addition, change GetView to return the nsITreeView instead of using an out-parameter, r=paolo 2018-12-04 11:25:41 -05:00
Neil Deakin cb10352f4b Bug 1482389, replace TreeBoxObject with XULTreeElement inherited from XULElement, r=peterv,paolo
--HG--
rename : dom/webidl/TreeBoxObject.webidl => dom/chrome-webidl/XULTreeElement.webidl
rename : layout/xul/tree/TreeBoxObject.cpp => dom/xul/XULTreeElement.cpp
rename : layout/xul/tree/TreeBoxObject.h => dom/xul/XULTreeElement.h
2018-12-04 11:25:30 -05:00
Neil Deakin 2a969e45de Bug 1482389, remove deprecated getCellAt and getCoordsForCellItem methods from TreeBoxObject, r=peterv 2018-12-04 11:24:16 -05:00
Mats Palmgren 663f6ee46c Bug 1519944 - [css-logical] Implement the margin-block/inline shorthands. r=emilio 2019-01-15 02:27:44 +01:00
longsonr f2d488cf32 Bug 1517715 - Move nsSMILCSSProperty, nsSMILKeySpline and nsSMILParserUtils to the mozilla namespace r=bbirtles
--HG--
rename : dom/smil/nsSMILCSSProperty.cpp => dom/smil/SMILCSSProperty.cpp
rename : dom/smil/nsSMILCSSProperty.h => dom/smil/SMILCSSProperty.h
rename : dom/smil/nsSMILKeySpline.cpp => dom/smil/SMILKeySpline.cpp
rename : dom/smil/nsSMILKeySpline.h => dom/smil/SMILKeySpline.h
rename : dom/smil/nsSMILParserUtils.cpp => dom/smil/SMILParserUtils.cpp
rename : dom/smil/nsSMILParserUtils.h => dom/smil/SMILParserUtils.h
2019-01-08 07:55:14 +00:00
Ryan Hunt deae3f5bc6 Bug 1305957 part 13 - Highlight scroll anchor when 'layout.scroll-anchoring.highlight' is enabled. r=mattwoodrow
This commit adds a debug pref that will highlight the frames that are marked as
anchor nodes. This is helpful to debug anchor selection.

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

--HG--
extra : rebase_source : 4b782de348454ad5660366814d4fe290ff2be152
extra : source : d8eef8f3e396d3a6f82607f53fc280316f184e86
2018-11-27 15:40:57 -06:00
Ryan Hunt e0bf0b2697 Bug 1305957 part 9 - Suppress scroll offset adjustment when node moves into flow or out of flow inside of a scrollable frame. r=emilio
This commit implements the second half of the heuristics to detect style changes
that could lead to feedback loops with scroll anchoring. [1]

A new change hint is added for when a style is changed from positioned to not
positioned. When this hint is applied, scroll anchor suppression is triggered in
the scroll anchor container where the frame used to be, and the new scroll
anchor container where the frame is added after reconstruction.

[1] https://drafts.csswg.org/css-scroll-anchoring/#suppression-triggers

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

--HG--
extra : rebase_source : 085c7d6b62c3f52122d9ae57eded71a1de2527a1
extra : source : e76b842c7b7fbdf434de7f099e399a8a53753493
2018-11-27 15:39:53 -06:00
Ryan Hunt 43b7ef66cb Bug 1305957 part 8 - Suppress scroll offset adjustment when some layout affecting properties are changed on scroll anchor or its ancestors. r=hiro
This commit implements the first half of the heuristics to detect style changes
that could lead to feedback loops with scroll anchoring. [1]

When these style changes are made, a suppression flag is added to the anchor
container to ignore any adjustments that would be made at the next layout flush
and to invalidate the anchor at that time.

[1] https://drafts.csswg.org/css-scroll-anchoring/#suppression-triggers

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

--HG--
extra : rebase_source : db0bf373e51325b7ef537c4c245ede4b4219d0d7
extra : source : d9445a5f3458b560fbdb7aee5faabb5a7a9327f3
2018-11-27 15:38:43 -06:00
Ryan Hunt 43e96a0c82 Bug 1305957 part 7 - Adjust scroll offset to match change in relative position of scroll anchor after reflow. r=hiro,dbaron
This commit implements anchor offset adjustment. When the position of a frame
that is an anchor is changed during reflow, we notify the anchor container. The
anchor container will then post a reflow callback.

Then when reflow is completed, the anchor container will perform a scroll to
keep the anchor node in the same relative position.

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

--HG--
extra : rebase_source : 9d40a5d5b73777d0da3799f162eeb85bb8e6d8f0
extra : source : d9052f7b34d9857863b66d64797f8b0b82504bec
2018-12-21 10:26:10 -06:00
Ryan Hunt c7b7401684 Bug 1305957 part 6 - Select scroll anchors when flushing notifications in PresShell. r=hiro
This commit adds a mechanism for scroll anchor containers to request an anchor
node selection at a future time. Currently this is before styling so that anchor
adjustment suppression will have current anchor nodes.

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

--HG--
extra : rebase_source : 7af2dcc7953e446eb993625fa7ff32aa5a141eab
extra : source : e7124fecb7215769a5404c5f2268bbe715162393
2018-11-27 15:32:47 -06:00
Ryan Hunt 47ee617d1e Bug 1305957 part 5 - Add implementation of scroll anchor selection and invalidation. r=hiro,dbaron,dholbert
This commit implements candidate selection for a scroll frame using a frame tree
traversal. It roughly tries to follow the algorithm given in the scroll
anchoring draft specification, adapted to operate on the frame tree [1].

Some details, such as not selecting an anchor if the user hasn't scrolled are
not currently in the specification but will be to match Blink's implementation.

Once a scroll anchor has been selected, we maintain a bit on it and its ancestor
frame's states. This is used in a later commit to detect changes to position
during a reflow so the scroll frame can perform an adjustment.

A scroll anchor will be invalidated when the user scrolls the frame or the
scroll anchor is destroyed. Later commits will add logic to drive selection and
invalidation appropriately.

[1] https://drafts.csswg.org/css-scroll-anchoring/#anchor-node-selection

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

--HG--
extra : rebase_source : e05ba48662aafef5957322def33ddc5d93f3ca5a
extra : source : bdb766faa8679386bf4e9740781262ea4bb36544
2018-11-27 15:45:16 -06:00
Ryan Hunt 91f41f3a0a Bug 1305957 part 4 - Add basic ScrollAnchorContainer implementation. r=hiro
This commit adds a barebones class called 'ScrollAnchorContainer' that will
contain most of the logic for scroll anchoring. It is owned as a member of
ScrollFrameHelper, and has the same lifetime.

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

--HG--
extra : rebase_source : 41f6f7691af60401f18f98a89f1878cfad2e74d3
extra : source : 3033401ef320414ef5f489c53526d015c38a89d7
2018-11-27 15:18:03 -06:00
Ryan Hunt 3627f69c8f Bug 1305957 part 3 - Add IsStickyPositioned() method to nsStyleDisplay. r=emilio
This commit is used in a later commit to exclude frames that are sticky positioned
from being scroll anchors.

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

--HG--
extra : rebase_source : efa0b81269dbf55d14d5702e4e4d4970cce2e5cb
extra : source : 6b96050386f6e9bae6b61747145e204d12cd7cf3
2018-11-21 22:35:23 -06:00
Ryan Hunt 9f09201ef2 Bug 1305957 part 2 - Add 'overflow-anchor' CSS property. r=emilio
https://drafts.csswg.org/css-scroll-anchoring/#exclusion-api

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

--HG--
extra : rebase_source : 14d4a6282274b125a6153a05daff5d93e34a29b7
extra : source : c66c00f7329619d53bc14ec615a0d92f06b6a892
2018-11-21 22:33:15 -06:00
Emilio Cobos Álvarez 2fdc41fadf Bug 1518954 - Three-value position syntax uses calc() as its computed value representation. r=heycam
This restores the previous behavior of using calc().

Note that background-position / object-position, which test this, weren't
hitting the assertion because they use another codepath.

I didn't add more extensive tests for this because it's well tested for those
two properties, and because this is legacy anyway, see the comment in the test.

I did add the assertion to the codepath those two properties hit.

Differential Revision: https://phabricator.services.mozilla.com/D16176
2019-01-11 01:19:13 +01:00
Brindusan Cristian 4d62b74678 Merge inbound to mozilla-central. a=merge 2019-01-07 18:43:04 +02:00
Olli Pettay 2dc267cbf3 bug 1516426, null check touch target before trying to access it's frame, r=masayuki 2019-01-07 15:05:11 +02:00
Emilio Cobos Álvarez b78489b8af Bug 1518098 - Rename LengthOrPercentage to LengthPercentage. r=jwatt#style
It does not represent `<length> | <percentage>`, but `<length-percentage>`, so
`LengthOrPercentage` is not the right name.

This patch is totally autogenerated using:

rg 'LengthOrPercentage' servo | cut -d : -f 1 | sort | uniq > files
for file in $(cat files); do sed -i "s#LengthOrPercentage#LengthPercentage#g" $file; done

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

--HG--
extra : moz-landing-system : lando
2019-01-07 12:42:42 +00:00
longsonr 6c649bdee4 Bug 1518000 - Move nsSVGString and nsSVGViewBox to the mozilla namespace r=jwatt
--HG--
rename : dom/svg/nsSVGString.cpp => dom/svg/SVGString.cpp
rename : dom/svg/nsSVGString.h => dom/svg/SVGString.h
rename : dom/svg/nsSVGViewBox.cpp => dom/svg/SVGViewBox.cpp
rename : dom/svg/nsSVGViewBox.h => dom/svg/SVGViewBox.h
2019-01-06 17:52:55 +00:00
Masayuki Nakano 7138d062d2 Bug 1325850 - part 1: Create ScriptableContentIterator to make each concrete class of nsIContentIterator scriptable r=smaug
The concrete classes of nsIContentIterator are enough complicated, but they
are not tested simply.  Therefore, it's dangerous to touch them even if we
meed bugs of them.  Additionally, it's used in some hot paths, therefore,
I'd like to keep them simple as far as possible.

Therefore, this patch creates a mediator class between script and each
nsIContentIterator instance.  So, this change shouldn't affect any of
actual behavior nor performance.

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

--HG--
extra : moz-landing-system : lando
2019-01-03 22:19:04 +00:00
longsonr 5530126c12 Bug 1517938 - Move nsSVGIntegerPair and nsSVGNumberPair to the mozilla namespace r=jwatt
--HG--
rename : dom/svg/nsSVGIntegerPair.cpp => dom/svg/SVGIntegerPair.cpp
rename : dom/svg/nsSVGIntegerPair.h => dom/svg/SVGIntegerPair.h
rename : dom/svg/nsSVGNumberPair.cpp => dom/svg/SVGNumberPair.cpp
rename : dom/svg/nsSVGNumberPair.h => dom/svg/SVGNumberPair.h
2019-01-06 08:22:55 +00:00
Brian Hackett c73140a5cf Bug 1177346 Part 1 - Add setSuppressedEventListener interface, r=smaug.
--HG--
extra : rebase_source : a01b747e49f06fe6ef7724e38648ea28601b2793
2019-01-03 06:39:12 -10:00
Emilio Cobos Álvarez cc3bfeef51 Bug 1484915 - Throw instead of keep going if cbindgen fails. r=boris
I think this should do. This still prints out stderr when it fails pointing to
the solution, and doesn't fail the build.

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

--HG--
extra : moz-landing-system : lando
2019-01-05 15:42:47 +00:00
Gurzau Raul 959d44414e Merge inbound to mozilla-central. a=merge 2019-01-05 14:37:09 +02:00
Andrea Marchesini 4712d40e55 Bug 1514697 - Lazy loading for URL-Classifier features, r=dimi 2019-01-05 09:11:06 +01:00
Timothy Guan-tin Chien 28b5c3416c Bug 1514040 - Dispatch events to hidden datetimebox UA Widget r=smaug
The XBL binding implementation relied on nsDateTimeControlFrame to call into
its nsIDateTimeInputArea implementation. This is correct because the XBL binding
is only constructed when the element has a frame. If the value is set while the
element is hidden, the XBL binding will pick up the correct value during construction.

That is not the case for UA Widget. As it is constructed when the DOM is attached,
relying on nsDateTimeControlFrame to send an event when attributes change means
the event won't be sent to the already constructed UA Widget.

This patch fixes that by moving the event dispatching calls originating from
HTMLInputElement out of nsDateTimeControlFrame, so they will behave correctly in
the absence of the frame.

I've also moved the gut of nsDateTimeControlFrame::HasBadInput() to
DateTimeInputTypeBase::HasBadInput(). Content script should be allowed to validate
the input without the frame.

Sadly this means the XBL implementation and the UA Widget implementation
have further diverged. The complexity should go away when we could finally
remove the XBL implementation.

nsDateTimeControlFrame still dispatches a few events to UA Widget, in
AttributeChanged() and SyncDisabledState(), as they are originated from the layout.

The name of the events in AttributeChanged() are incorrect though -- I am correcting
that in this patch too.

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

--HG--
extra : moz-landing-system : lando
2019-01-04 21:53:51 +00:00
Timothy Guan-tin Chien bd38b39f8a Bug 1512048 - Convert tabmodalprompt binding to JSM module r=Gijs
This converts the tabmodalprompt binding to a class, to be constructed along side with the element
by TabModalPromptBox.

TabModalPromptBox will keep the instances in a map and pass it to the callers, instead of the element.
The tests and callers can access the class instance by passing the element reference to the map.

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

--HG--
rename : toolkit/components/prompts/content/tabprompts.xml => toolkit/components/prompts/content/tabprompts.jsm
extra : moz-landing-system : lando
2019-01-04 19:29:34 +00:00
Ting-Yu Lin da7650abaa Bug 1517297 - Fix nsIFrame::IsColumnSpanInMulticolSubtree(). r=emilio
After Bug 1507244 Part 2 landed, only block or inline frames can have
NS_FRAME_HAS_MULTI_COLUMN_ANCESTOR bit set. We need to fix
IsColumnSpanInMulticolSubtree() for other types of frames.

In multi-column formatting context, every frame having a
"column-span:all" style will be wrapped by a -moz-column-span-wrapper
frame. We can use this to check whether a non-inline and non-block frame
is in a multi-column subtree or not.

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

--HG--
extra : moz-landing-system : lando
2019-01-04 19:16:28 +00:00
Miko Mynttinen 91278a0c3b Bug 1512244 - Part 8: Use common path in more cases r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D13837

--HG--
extra : moz-landing-system : lando
2019-01-04 18:33:15 +00:00
Miko Mynttinen 234fe21fd4 Bug 1512244 - Part 7: Check the force SC flag first before calling IsStackingContext() r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D13836

--HG--
extra : moz-landing-system : lando
2019-01-04 18:32:46 +00:00
Miko Mynttinen 8f92194a8e Bug 1512244 - Part 6: Handle blend mode in BuildDisplayListForStackingContext() r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D13835

--HG--
extra : moz-landing-system : lando
2019-01-04 18:32:16 +00:00
Miko Mynttinen 0bb814cd60 Bug 1512244 - Part 5: Refactor OOF frame handling r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D13834

--HG--
extra : moz-landing-system : lando
2019-01-04 18:31:51 +00:00
Miko Mynttinen 9b75fc291f Bug 1512244 - Part 4: Avoid call to GetContent() r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D13833

--HG--
extra : moz-landing-system : lando
2019-01-04 18:31:21 +00:00
Miko Mynttinen fde2ba309c Bug 1512244 - Part 3: Split BuildDisplayListForChild fast-path and early exit to separate functions r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D13832

--HG--
extra : moz-landing-system : lando
2019-01-04 18:30:51 +00:00
Miko Mynttinen 1b049b748d Bug 1512244 - Part 2: Avoid style struct lookups in HasOpacity() and Extend3DContext() r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D13831

--HG--
extra : moz-landing-system : lando
2019-01-04 18:30:32 +00:00
Miko Mynttinen b77e6dc486 Bug 1512244 - Part 1: Cleanup DescendIntoChild r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D13830

--HG--
extra : moz-landing-system : lando
2019-01-04 18:30:27 +00:00
Hiroyuki Ikezoe 88483b9261 Bug 1517682 - Drop layout.css.background-blend-mode.enabled pref. r=heycam
It was enabled by default in bug 970600.

Depends on D15707

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

--HG--
extra : moz-landing-system : lando
2019-01-04 07:21:32 +00:00
Hiroyuki Ikezoe 1415d28adf Bug 1517682 - Drop layout.css.scroll-behavior.property-enabled pref. r=heycam
It was enabled by default in bug 1041833 (for desktops) and
bug 1087562 (for Fennect).

Depends on D15706

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

--HG--
extra : moz-landing-system : lando
2019-01-04 07:21:53 +00:00
Hiroyuki Ikezoe 602a0bb6c3 Bug 1517682 - Drop layout.css.mix-blend-mode.enabled pref. r=heycam
It was enabled by default in bug 952643.

Depends on D15705

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

--HG--
extra : moz-landing-system : lando
2019-01-04 07:22:13 +00:00
Hiroyuki Ikezoe bed5a404f1 Bug 1517682 - Drop layout.css.isolation.enabled pref. r=heycam
It was enabled by default in bug 1091885.

Depends on D15704

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

--HG--
extra : moz-landing-system : lando
2019-01-04 07:22:27 +00:00
Hiroyuki Ikezoe 9bdfa0cf64 Bug 1517682 - Drop layout.css.image-orientation.enabled pref. r=heycam
It was enabled by default in bug 825771.

Depends on D15703

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

--HG--
extra : moz-landing-system : lando
2019-01-04 07:22:52 +00:00
Hiroyuki Ikezoe f2d516f849 Bug 1517682 - Drop layout.css.box-decoration-break.enabled pref. r=heycam
It was enabled by default in bug 1006326.

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

--HG--
extra : moz-landing-system : lando
2019-01-04 07:23:07 +00:00
Emilio Cobos Álvarez 97bdc97293 Bug 1517521 - Handle calc() on border-image-width correctly. r=dholbert
Right now it asserts, no bueno.

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

--HG--
extra : moz-landing-system : lando
2019-01-04 00:41:09 +00:00
Ciure Andrei 7a748ae68f Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-01-04 01:03:06 +02:00
Ciure Andrei a8af06aea2 Merge inbound to mozilla-central. a=merge 2019-01-04 00:04:46 +02:00
Jan Henning 519ddfc7a4 Bug 1517103 - Keep the refresh driver ticking when there are pending visual viewport events. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D15559

--HG--
extra : moz-landing-system : lando
2019-01-03 13:16:20 +00:00
Ting-Yu Lin e4d6600543 Bug 1445794 Part 2 - Disallow flushing layout in reflow and scroll related callbacks. r=emilio
By disallowing flushing layout in AccessibleCaret's callbacks, we don't
need to worry about dead PresShell affect other callbacks in the system.

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

--HG--
extra : moz-landing-system : lando
2019-01-03 10:52:51 +00:00
Ting-Yu Lin a4c41e72ef Bug 1445794 Part 1 - Preemptively fix that carets are not updated if non-default hints are used. r=emilio
Without this change, for example,
UpdateCarets(UpdateCaretsHint::DispatchNoEvent) won't update carets. We don't
have a wrong use case yet, but it's good to fix that beforehand.

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

--HG--
extra : moz-landing-system : lando
2019-01-03 05:25:19 +00:00
Matt Woodrow 54f9f12d39 Bug 1517355 - Add CONTENT_FRAME_TIME variant that records from the vsync time. data-review=rrayborn, r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D15603

--HG--
extra : moz-landing-system : lando
2019-01-03 19:43:04 +00:00
Bogdan Tara dcb4011f3a Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-01-03 06:26:47 +02:00
Ting-Yu Lin 70b1934e2e Bug 1517069 - Make GetMultiColumnContainingBlockFor() return nsContainerFrame*. r=dholbert
GetParent() already returns nsContainerFrame*, and it's easier to use
with API like FinishBuildingColumns() demanding a nsContainerFrame*.

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

--HG--
extra : moz-landing-system : lando
2019-01-02 22:27:43 +00:00
longsonr eb0a735bca Bug 1517185 - Move nsSVGEnum to the mozilla namespace and rename it as SVGEnum r=jwatt
--HG--
rename : dom/svg/nsSVGEnum.cpp => dom/svg/SVGEnum.cpp
rename : dom/svg/nsSVGEnum.h => dom/svg/SVGEnum.h
extra : amend_source : faf1423f0eecafceae6ede115759d06fa061faf2
2019-01-02 18:24:11 +00:00
Daniel Holbert 44acfc60f7 Backed out changeset c796403f5a29 since it landed with wrong bug number
--HG--
rename : dom/svg/SVGEnum.cpp => dom/svg/nsSVGEnum.cpp
rename : dom/svg/SVGEnum.h => dom/svg/nsSVGEnum.h
2019-01-02 10:44:12 -08:00
longsonr 69a6be5b17 Bug 1517108 - Move nsSVGEnum to the mozilla namespace and rename it as SVGEnum r=jwatt
--HG--
rename : dom/svg/nsSVGEnum.cpp => dom/svg/SVGEnum.cpp
rename : dom/svg/nsSVGEnum.h => dom/svg/SVGEnum.h
2019-01-02 18:24:11 +00:00
Jason Kratzer 58d934b6fe Bug 1517033 - Add a crashtest. r=emilio 2019-01-02 17:18:44 +01:00
longsonr ade1b15610 Bug 1517108 - Move nsSMILTimeContainer, nsSMILMilestone and nsSMILTargetIdentifier to the mozilla namespace r=bbirtles
--HG--
rename : dom/smil/nsSMILMilestone.h => dom/smil/SMILMilestone.h
rename : dom/smil/nsSMILTargetIdentifier.h => dom/smil/SMILTargetIdentifier.h
rename : dom/smil/nsSMILTimeContainer.cpp => dom/smil/SMILTimeContainer.cpp
rename : dom/smil/nsSMILTimeContainer.h => dom/smil/SMILTimeContainer.h
2019-01-02 07:21:13 +00:00
Daniel Varga f6510e6ac9 Merge mozilla-inbound to mozilla-central. a=merge 2018-12-31 23:24:52 +02:00
Emilio Cobos Álvarez 63814207cb Bug 1516853 - Merge nsIDocument and nsDocument. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D15498

--HG--
extra : moz-landing-system : lando
2018-12-31 14:10:19 +00:00
longsonr d03099b507 Bug 1516921 - export things in the mozilla namespace properly r=jwatt 2018-12-31 11:56:52 +00:00
shindli f5d8300d24 Backed out 2 changesets (bug 1064172) for reftest failures in /tests/layout/reftests/css-ruby/intrinsic-isize-1.html
Backed out changeset a39aab288a00 (bug 1064172)
Backed out changeset 51576a3495f5 (bug 1064172)
2018-12-30 22:22:12 +02:00
Paolo Amadini 55e0dac60d Bug 1472557 - Remove the "scrollbox" anonymous element from "richlistbox". r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D15388

--HG--
extra : source : b46be9dd9fe019870b2e33b26db8204db79aad23
2018-12-30 13:48:45 +00:00
Jonathan Kew 7ea0466fdc Bug 1064172 - Prevent shaping across element boundaries when margin/border/padding is present, vertical-align is not 'baseline', or there is a bidi isolation boundary. r=jwatt 2018-12-05 00:27:47 -05:00
Jonathan Kew 5c7ab07479 Bug 1064172 - Prevent shaping across element boundaries when margin/border/padding is present, vertical-align is not 'baseline', or there is a bidi isolation boundary. r=jwatt 2018-12-05 00:27:47 -05:00
Cosmin Sabou fc229ed2c7 Merge mozilla-inbound to mozilla-central. a=merge 2018-12-30 11:31:03 +02:00
Hiroyuki Ikezoe 79798c6cd2 Bug 1516368 - De-virtualize nsIPresShell::IsResolutionUpdated and SetResolutionUpdated. r=botond
Depends on D15342

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

--HG--
extra : moz-landing-system : lando
2018-12-30 02:17:30 +00:00
Hiroyuki Ikezoe 38fe945936 Bug 1516368 - Align boolean members in nsIPresShell. r=botond
Depends on D15341

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

--HG--
extra : moz-landing-system : lando
2018-12-30 02:17:12 +00:00
Hiroyuki Ikezoe c8743de655 Bug 1516368 - Unite ChangeOrigin::eRestore and eOther as ChangeOrigin::eMainThread. r=botond
Depends on D15340

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

--HG--
extra : moz-landing-system : lando
2018-12-30 02:45:47 +00:00
Hiroyuki Ikezoe 529616ef3a Bug 1516368 - Change SetResolutionAndScaleTo to take an enum instead of an nsAtoms*. r=botond
There is no reason to use nsAtoms*, it's error prone, i.e. the function
can take arbitrary nsAtoms*.

Depends on D15339

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

--HG--
extra : moz-landing-system : lando
2018-12-30 02:16:42 +00:00
Hiroyuki Ikezoe 1cee88971a Bug 1516368 - Drop nsIDOMWindowUtils.isResolutionSet. r=botond
It's been unused since bug 1337325.

Depends on D15338

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

--HG--
extra : moz-landing-system : lando
2018-12-30 02:16:30 +00:00
Hiroyuki Ikezoe d95e67add7 Bug 1516368 - Align boolean member variables in ScrollFrameHelper. r=botond
Depends on D15336

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

--HG--
extra : moz-landing-system : lando
2018-12-30 02:16:12 +00:00
Hiroyuki Ikezoe e9f276f902 Bug 1516368 - Use mOuter->PresShell() directly. r=botond
Depends on D15335

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

--HG--
extra : moz-landing-system : lando
2018-12-30 02:16:00 +00:00
Hiroyuki Ikezoe aa9e0b7720 Bug 1516368 - Rename aViewportSize to aViewportOrContentSize. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D15335

--HG--
extra : moz-landing-system : lando
2018-12-30 02:15:42 +00:00
Emilio Cobos Álvarez e2c716a29d Bug 1516366 - Move mExpandoAndGeneration from nsDocument to nsIDocument. r=smaug
Now that bindgen can represent it properly (bug 1516365) we can do this.

Differential Revision: https://phabricator.services.mozilla.com/D15357
2018-12-29 20:41:33 +01:00
Emilio Cobos Álvarez f131713362 Bug 1516366 - Move base classes from nsDocument to nsIDocument. r=smaug
This is a big step in order to merge both.

Also allows to remove some very silly casts, though it causes us to add some
ToSupports around to deal with ambiguity of casts from nsIDocument to
nsISupports, and add a dummy nsISupports implementation that will go away later
in the series.

Differential Revision: https://phabricator.services.mozilla.com/D15352
2018-12-29 20:41:28 +01:00
Emilio Cobos Álvarez ecc88f298e Bug 1516366 - Remove uses of nsCOMArray<nsIDocument>. r=bzbarsky,smaug
Just use nsTArray. They're used to keep an array of strong references to
documents, and never use nsISupports-specific methods.

Plus they're are allocated on the stack so it should be safe to access them via
ranged for, so do that.

This is needed because nsCOMArray<T> depends on the cast from T to nsISupports
not to be ambiguous. I could fix that if needed, but it seems easier to just not
use it in these two cases.

Differential Revision: https://phabricator.services.mozilla.com/D15351
2018-12-29 20:41:20 +01:00
Coroiu Cristina 2edc28a37f Backed out 2 changesets (bug 1064172) for Wr failures at /css/css-text/boundary-shaping/boundary-shaping-010.html
Backed out changeset 8126c43fb9e7 (bug 1064172)
Backed out changeset 107a4383fa0c (bug 1064172)
2018-12-29 16:43:23 +02:00
Bogdan Tara fff0a1f4f9 Merge inbound to mozilla-central. a=merge 2018-12-28 23:50:12 +02:00
Sylvestre Ledru cccdda3c2a Bug 1516555 - Reformat everything to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2018-12-28 15:48:06 +00:00
Margareta Eliza Balazs 7a922172a9 Merge inbound to mozilla-central. a=merge 2018-12-28 11:29:35 +02:00
Ting-Yu Lin af42705511 Bug 1508762 Part 2 - Fix a restyle bug if there's column-span:all under ib-split setting. r=dholbert
This is to prevent Part 1 from breaking
testing/web-platform/tests/css/css-multicol/multicol-span-all-restyle-002.html

After introducing Part 1, we now use CreateContinuingFrame() to create
non-column-span wrapper frames, which use nsFrame::Init() rather than
InitAndRestoreFrame() to initialize them. Because the bits in
aState.mAdditionalStateBits are added to frames only when
nsCSSFrameConstructor::InitAndRestoreFrame() is called. We need a new
way to add the NS_FRAME_PART_OF_IBSPLIT to non-column-span wrapper
frames.

Note that we used to add NS_FRAME_PART_OF_IBSPLIT to both column-span
wrapper and non-column-span wrapper. After this patch, column-span
wrapper won't have NS_FRAME_PART_OF_IBSPLIT. That's fine because
column-span wrappers are not linked with other frames and they
shouldn't get this bit set.

Depends on D15134

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

--HG--
extra : moz-landing-system : lando
2018-12-28 02:25:40 +00:00
Ting-Yu Lin 1a1d5fc4e8 Bug 1508762 Part 1 - Support column-span:all for a multi-column <details> element. r=dholbert
In CreateColumnSpanSiblings(), aInitialBlock can be a DetailsFrame.
Therefore, when creating a non-column-span wrapper, we cannot assume
it's always a block frame. We need to use CreateContinuingFrame to
ensure the correct type of continuation is created.

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

--HG--
extra : moz-landing-system : lando
2018-12-28 02:15:58 +00:00
quasicomputational baf06c6032 Bug 1422235 - Implement the 'overflow-inline' media query. r=emilio 2018-12-28 02:16:59 +01:00
quasicomputational 20fa93316d Bug 1422235 - Implement the 'overflow-block' media query. r=emilio 2018-12-28 02:16:53 +01:00
longsonr 8b6407d4b3 Bug 1516521 - rename nsSMILCSSValueType as SMILCSSValueType and move it to the mozilla namespace r=dholbert
--HG--
rename : dom/smil/nsSMILCSSValueType.cpp => dom/smil/SMILCSSValueType.cpp
rename : dom/smil/nsSMILCSSValueType.h => dom/smil/SMILCSSValueType.h
2018-12-27 17:02:38 +00:00
longsonr cd491fca01 Bug 1516076 - Part 3 rename nsSVGAnimatedTransformList to SVGAnimatedTransformList and move it to the mozilla namespace r=dholbert
--HG--
rename : dom/svg/nsSVGAnimatedTransformList.cpp => dom/svg/SVGAnimatedTransformList.cpp
rename : dom/svg/nsSVGAnimatedTransformList.h => dom/svg/SVGAnimatedTransformList.h
2018-12-26 23:46:38 +00:00
Cameron McCormack d98341235b Bug 1516212 - Rename macro to avoid conflicts from Chromium IPC code r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D15280

--HG--
extra : moz-landing-system : lando
2018-12-24 01:34:49 +00:00
Cameron McCormack c9b528e045 Bug 1516211 - Use UserAgentStyleSheetList.h to declare StyleSheet members on nsLayoutStylesheetCache r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D15281

--HG--
extra : moz-landing-system : lando
2018-12-24 01:34:37 +00:00
sharath ba62a9414a Bug 1516221 - changes to implement enum class for #define NS_STYLE_COLOR_ADJUST. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D15284

--HG--
extra : moz-landing-system : lando
2018-12-24 15:28:11 +00:00
arthur.iakab 9ec754d7c3 Merge mozilla-central to inbound 2018-12-22 23:57:12 +02:00
arthur.iakab 49e5be726a Merge inbound to mozilla-central a=merge 2018-12-22 23:54:25 +02:00
longsonr 779726cbdc Bug 1516076 - Part 1 correct one of the include file for SVGGeometryFrame.cpp r=dholbert 2018-12-22 20:06:21 +00:00
Andreea Pavel 9adc37e4a2 Bug 1465260 - disable box-sizing-replaced-002.xht on Android opt for frequent failures r=jmaher 2018-12-21 14:28:00 +02:00
Andreea Pavel a4a6ecec31 Backed out changeset 37feb66e0984 (bug 1465260) for failing reftests on a CLOSED TREE 2018-12-22 12:53:44 +02:00
Ciure Andrei de0be877fa Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-12-22 11:53:32 +02:00
Coroiu Cristina e4511f53d0 Merge mozilla-central to autoland a=merge 2018-12-22 06:20:28 +02:00
Daniel Holbert 9543fab953 Bug 695385 followup: use pixel-valued sizes (not %) for rects in new mochitest. (no review; just tweaking a new test for robustness)
This hopefully will address the test-verify failures that were reported in bug 1516006.

--HG--
extra : rebase_source : d01139f16469c631eb047d21e998dfaf0d58c3a5
extra : amend_source : 8543fd2e10bf485cabaf45dfac156e6b9094ea41
2018-12-21 15:51:44 -08:00
Kartikaya Gupta 09dccca832 Bug 1496194 - Ensure the inner sticky rect stays inside the outer sticky rect. r=botond
Depends on D15136

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

--HG--
extra : moz-landing-system : lando
2018-12-21 22:37:28 +00:00