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

67604 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez c9cb04e111 Bug 1527972 - Use Rust types for some misc properties. r=jwatt
-moz-tab-size, border-image-outset and border-image-slice.

This is not a particularly interesting patch, just removes some code. We can
remove way more code when a few related properties are also ported.

Differential Revision: https://phabricator.services.mozilla.com/D19825
2019-02-19 15:22:40 +01:00
Emilio Cobos Álvarez 85e9363f96 Bug 1528451 - Move code that starts image loads to DidSetComputedStyle. r=heycam
This is more consistent with all the other image request code, and handles
pseudo-elements properly without having to add more out-of-band calls to
UpdateStyleOfOwnedChildFrame and such.

Differential Revision: https://phabricator.services.mozilla.com/D20107
2019-02-19 15:00:58 +01:00
Emilio Cobos Álvarez d2cbf071d5 Bug 1528712 - Remove nsFont::featureValueLookup. r=jfkthame
It's a global object, it doesn't have to be stored in nsFont. Pass it from the
caller like the user font set and co.

Depends on D20141

Differential Revision: https://phabricator.services.mozilla.com/D20142
2019-02-19 14:54:04 +01:00
Emilio Cobos Álvarez 8ccb77e27d Bug 1528712 - Remove a couple trivial dependencies on nsPresContext. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D20141
2019-02-19 14:54:01 +01:00
Emilio Cobos Álvarez dad3a20b22 Bug 1525955 - Include anon boxes in CSSPseudoElementType, to remove ComputedStyle::mPseudoTag. r=heycam
This is more consistent with what the Rust bits of the style system do, and
removes a pointer from ComputedStyle which is always nice.

This also aligns the Rust bits with the C++ bits re. not treating xul pseudos as
anonymous boxes. See the comment in nsTreeStyleCache.cpp regarding those.

Can't wait for XUL trees to die.

Depends on D19001

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

--HG--
extra : moz-landing-system : lando
2019-02-19 13:44:33 +00:00
Ciure Andrei 965d533ca4 Backed out 2 changesets (bug 1528712) for Linux spcshell and reftest failures (test_ext_browserSettings.js, 1022481-1.html) CLOSED TREE
Backed out changeset 2d5c4e71e258 (bug 1528712)
Backed out changeset d981515b874b (bug 1528712)
2019-02-19 14:25:57 +02:00
Emilio Cobos Álvarez f97a9f50a2 Bug 1528712 - Remove nsFont::featureValueLookup. r=jfkthame
It's a global object, it doesn't have to be stored in nsFont. Pass it from the
caller like the user font set and co.

Depends on D20141

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

--HG--
extra : moz-landing-system : lando
2019-02-18 14:03:47 +00:00
Emilio Cobos Álvarez 522e6c9366 Bug 1528712 - Remove a couple trivial dependencies on nsPresContext. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D20141

--HG--
extra : moz-landing-system : lando
2019-02-19 11:17:28 +00:00
Ciure Andrei bdd1cad961 Backed out changeset d33544f0d8e6 (bug 1528451) for Assertion failure: IsResolved ...nsStyleStruct.h failures CLOSED TREE
--HG--
extra : rebase_source : 7cb6575b90f503100bbe1b5d07a9f072b8f350d4
2019-02-19 12:44:44 +02:00
Emilio Cobos Álvarez 39d3da7fd5 Bug 1528644 - Internal value changes shouldn't change validity state. r=masayuki
Even less so on reframe, where it's just unsound to do so. I had to give a value
to eSetValue_Internal, since otherwise I cannot check for its presence. I can
further special-case the reframe case if you prefer.

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

--HG--
extra : moz-landing-system : lando
2019-02-19 09:25:55 +00:00
Emilio Cobos Álvarez 6560e5525b Bug 1528451 - Move code that starts image loads to DidSetComputedStyle. r=heycam
This is more consistent with all the other image request code, and handles
pseudo-elements properly without having to add more out-of-band calls to
UpdateStyleOfOwnedChildFrame and such.

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

--HG--
extra : moz-landing-system : lando
2019-02-19 00:40:10 +00:00
Masayuki Nakano 551de121c1 Bug 998941 - part 1-7: Make HTMLEditor set InputEvent.data to serialized color value when InputEvent.inputType is "formatBackColor" or "formatForeColor" r=smaug,m_kato,emilio
Although neither Chrome nor Safari does not set InputEvent.data when the event
is caused by `document.execCommand()` with `backColor`, `foreColor` nor
`hiliteColor`, Safari supports styling color with touchbar and in that case,
Safari sets it (*1).

Additionally, currently Safari uses `rgb()` to represents a color value and
using same rule to serializing color value for CSS OM matches Safari's behavior
and can represent any valid color values.

This patch makes given color value parsed and then serialized with same code
in style system.  If the value is `currentcolor`, `inherit`, `initial` or `reset`, sets
the value as-is for now.  Additionally, when given value is invalid, sets the value
as-is for forward compatibility.

Note that automated tests will be added into input-events-exec-command.html
by the last patch.

1. https://github.com/w3c/input-events/issues/94#issuecomment-461061517

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

--HG--
extra : moz-landing-system : lando
2019-02-19 06:31:28 +00:00
Brindusan Cristian 0709795ffe Merge inbound to mozilla-central. a=merge 2019-02-19 06:38:36 +02:00
Brindusan Cristian 13fc964eb3 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-02-18 23:48:55 +02:00
Miko Mynttinen 8c696c6f16 Bug 1526957 - Part 3: Optimize AutoBuildingDisplayList IsTransformed() check r=mattwoodrow
Depends on D19858

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

--HG--
extra : moz-landing-system : lando
2019-02-18 15:33:52 +00:00
Miko Mynttinen f56f7c63a3 Bug 1526957 - Part 2: Exit IsAnimatedGeometryRoot() early when frame is actively scrolled or transformed r=mattwoodrow
Depends on D19857

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

--HG--
extra : moz-landing-system : lando
2019-02-18 15:32:41 +00:00
Miko Mynttinen f42dc06545 Bug 1526957 - Part 1: Remove unused mIsAtRootOfPseudoStackingContext from nsDisplayListBuilder and AutoBuildingDisplayList r=mattwoodrow
unused

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

--HG--
extra : moz-landing-system : lando
2019-02-18 15:32:10 +00:00
Alex Henrie 7afb5aaf34 Bug 1521425 - Round up when inflating mRect of SVG text. r=longsonr 2019-02-17 22:27:56 -07:00
Narcis Beleuzu d631a55079 Backed out 2 changesets (bug 1526567, bug 1525775) for dt failures on browser_webconsole_sidebar_scroll.js . CLOSED TREE
Backed out changeset e919946fd913 (bug 1526567)
Backed out changeset 133509097b7c (bug 1525775)
2019-02-18 21:23:40 +02:00
Mats Palmgren 3330fe7b0c Bug 1526567 - [css-grid] Make the block-axis percentage basis be indefinite for measuring reflows. r=dholbert 2019-02-18 18:17:10 +01:00
Hiroyuki Ikezoe 64a777f7b5 Bug 1528834 - Implement scroll-snap-align parser and serializer. r=emilio
https://drafts.csswg.org/css-scroll-snap-1/#scroll-snap-align

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

--HG--
extra : moz-landing-system : lando
2019-02-18 23:10:08 +00:00
Masayuki Nakano ab3745273c Bug 1466208 - part 22: Create PresShell::EventHandler::EventTargetData::ComputeElementFromFrame() r=smaug
This patch moves the block to compute event target of the event using
coordinates into the new method of PresShell::EventHandler::EventTargetData.

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

--HG--
extra : moz-landing-system : lando
2019-02-18 04:33:06 +00:00
Hiroyuki Ikezoe 0a5721ad9c Bug 1528640 - Implement scroll-padding parser and serializer. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D20103

--HG--
extra : moz-landing-system : lando
2019-02-18 02:46:09 +00:00
Hiroyuki Ikezoe 842f78da12 Bug 1528639 - Implement scroll-margin parser and serializer. r=emilio
The reason why we use  RelaxedAtomBoolis that
ScrollSnapUtils::GetSnapPointForDestination() is called both from the main and
the compositor threads, and the function will have a branch depending on the
pref value.

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

--HG--
extra : moz-landing-system : lando
2019-02-18 02:25:54 +00:00
Emilio Cobos Álvarez 4fc1b18570 Bug 1528613 - Downgrade two assertions from release assert for now. r=heycam
These assertions can happen in certain circumstances (see the referenced bug).

These assertions are not security sensitive, but they affect correctness.

They're old (from before my change), so I prefer dealing with them in a public
bug and stop crashing release for now.

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

--HG--
extra : moz-landing-system : lando
2019-02-18 00:30:17 +00:00
Dorel Luca 33e05d0370 Merge mozilla-central to mozilla-inbound 2019-02-17 12:50:55 +02:00
Csoregi Natalia 952908fda0 Merge mozilla-central to mozilla-inbound. CLOSED TREE 2019-02-17 00:14:07 +02:00
Botond Ballo a9dd3a321b Bug 1527516 - Increase the content size in position-fixed-out-of-view.html to avoid bug 1527187. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D19606

--HG--
extra : moz-landing-system : lando
2019-02-16 22:11:24 +00:00
Botond Ballo e9f4927939 Bug 1527516 - Recompute mIsScrollableLayerInRootContainer correctly if containerless scrolling is disabled during the scroll frame's lifetime. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D19603

--HG--
extra : moz-landing-system : lando
2019-02-16 22:10:46 +00:00
Sylvestre Ledru e0c61dafa5 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
Summary: # ignore-this-changeset

Reviewers: Ehsan

Reviewed By: Ehsan

Subscribers: emilio, jandem, bbouvier, jya

Bug #: 1519636

Differential Revision: https://phabricator.services.mozilla.com/D20062
2019-02-16 20:20:37 +01:00
Botond Ballo ee40541496 Bug 1525948 - Add a reftest. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D19997

--HG--
extra : moz-landing-system : lando
2019-02-16 10:05:48 +00:00
Coroiu Cristina e6520f0a4d Merge inbound to mozilla-central a=merge 2019-02-16 11:36:46 +02:00
Botond Ballo 0fd96551b0 Bug 1525948 - Ensure the layout viewport retains the aspect ratio of the visual viewport. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D19996

--HG--
extra : moz-landing-system : lando
2019-02-16 01:37:47 +00:00
Markus Stange d8f5613d1e Bug 1500692 - Add LAYOUT subcategories. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D11341

--HG--
extra : moz-landing-system : lando
2019-02-16 17:38:35 +00:00
Markus Stange ad3f9a53de Bug 1500692 - Add GRAPHICS subcategories. r=njn,mattwoodrow
r?njn only because this is the first example that adds any actual subcategories.

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

--HG--
extra : moz-landing-system : lando
2019-02-16 17:38:23 +00:00
Markus Stange 0b151b8c2b Bug 1500692 - Centralize profiling category definition and add infrastructure for subcategories. r=njn
The actual subcategories will be added in later patches, so that there are no
unused categories.

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

--HG--
extra : moz-landing-system : lando
2019-02-16 17:37:43 +00:00
Botond Ballo 9bf4a8afaf Bug 1526486 - Don't muck with the RCD-RSF composition bounds clip rect during event delivery. r=mstange
In bug 1521644, we changed the clip rect computation so we don't divide by
the resolution when using containerless scrolling. The rationale for that
change was that this clip becomes a clip rect on the async zoom container
layer, which is applied after the resolution in the compositor.

However, when building a display list for event delivery, this rationale
does not apply as there are no layers and no compositor involved.

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

--HG--
extra : moz-landing-system : lando
2019-02-16 00:51:54 +00:00
Botond Ballo 3d1382e6b4 Bug 1526486 - Build an async zoom container for event delivery as well. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D19219

--HG--
extra : moz-landing-system : lando
2019-02-16 00:51:40 +00:00
Emilio Cobos Álvarez 3b79016890 Bug 1526609 - When interrupting the reflow of abspos kids, still account for the old overflow areas. r=bzbarsky
Otherwise, if we're scrolled, the scroll frame will think that our scroll range
was reduced, which will in turn clamp the scroll position, which is not good.

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

--HG--
extra : moz-landing-system : lando
2019-02-15 21:08:43 +00:00
Kyle Machulis 2bb286e58e Bug 1524683 - Move all nsIFrameLoaderOwner references to nsFrameLoaderOwner; r=nika
Depends on D19728

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

--HG--
extra : moz-landing-system : lando
2019-02-15 22:20:53 +00:00
Edgar Chen 408cdd3a53 Bug 1323400 - Part 2: Filter out duplicated touchmove for pointer event; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D19804

--HG--
extra : moz-landing-system : lando
2019-02-15 22:04:13 +00:00
Edgar Chen 0518b15392 Bug 1323400 - Part 1: Mark Touch::Equals as a const method; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D18232

--HG--
extra : moz-landing-system : lando
2019-02-15 16:28:35 +00:00
Daniel Holbert 6ad6b0c64d Bug 1508420: Add mochitest for conditions that disqualify a frame from becoming a dynamic reflow root. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D14669

--HG--
extra : moz-landing-system : lando
2019-02-15 22:00:23 +00:00
Emilio Cobos Álvarez 7365804cf7 Bug 1525509 - Add release asserts. r=dholbert
Just for my sanity. I think the other scroll observer is sane after a quick
look, but this will ensure we don't ship security issues.

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

--HG--
extra : moz-landing-system : lando
2019-02-15 06:29:55 +00:00
Emilio Cobos Álvarez 16314d820b Bug 1528199 - Make nsTreeColFrame::InvalidateColumns not flush. r=dholbert
That's not sound.

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

--HG--
extra : moz-landing-system : lando
2019-02-15 19:05:09 +00:00
Boris Zbarsky 1d1e39ab16 Remove no longer relevant comment. No bug. r=emilio
The primary frame hashtable is long gone; we have a pointer on the node now.

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

--HG--
extra : moz-landing-system : lando
2019-02-15 19:01:11 +00:00
Cosmin Sabou 8cb8ef3973 Merge mozilla-central to autoland. 2019-02-15 20:50:34 +02:00
Cosmin Sabou a4b19fcd61 Merge mozilla-inbound to mozilla-central. a=merge
--HG--
rename : browser/components/nsBrowserContentHandler.js => browser/components/BrowserContentHandler.jsm
2019-02-15 20:39:45 +02:00
Andrew Osmond bc9d7000be Bug 1527085 - Ensure we invalidate when the image request changes. r=jrmuizel
When the underlying image request (imgIRequest) changes for an image, we
need to ensure that we invalidate the cached WebRenderImageData such that
the image container stored therein is updated to be for the correct
image. This gets a little tricky because some display items store both
the current and previous images, and choose to display the latter if the
former is not yet ready. We also don't know what image the image
container belongs to. As such, we now compare the producer ID of the
current frame in the image container, to the expected producer ID of the
current image request. If they don't match, we must regenerate the
display list.

Differential Revision: https://phabricator.services.mozilla.com/D19699
2019-02-15 09:24:21 -05:00
Joel Maher 86f46cb625 Bug 1528254 - enable test_fontVariationsAPI.xul for windows10 now that we run on v1803. r=jfkthame
enable test_fontVariationsAPI.xul for windows10 now that we run on v1803

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

--HG--
extra : moz-landing-system : lando
2019-02-15 15:24:48 +00:00