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

15744 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez 785ebbeab9 Bug 1594275 - Parse the exportparts attribute. r=bzbarsky
But don't hook it into style yet, that'll be a follow-up patch.

I had this patch in my local queue for a bit and there was no point in not
landing it I guess.

The value of this attribute could be stored only in the shadow root (as this
only applies to shadow hosts), but that would make invalidation harder, I think,
so do the obvious thing for now.

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

--HG--
extra : moz-landing-system : lando
2019-11-06 18:03:51 +00:00
Oana Pop Rus d107d8f08d Backed out 2 changesets (bug 1593865) for multiple failures on asan_malloc_linux.cc on a CLOSED TREE
Backed out changeset 40de560a7cad (bug 1593865)
Backed out changeset 6fd25e6c3d1a (bug 1593865)
2019-11-06 19:41:34 +02:00
Emilio Cobos Álvarez 03ff84e8dc Bug 1593865 - Leak shared memory for the lifetime of the process. r=heycam
Seems less gnarly than the alternatives, and we'd only free it until shutdown so
not much worse, actually.

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

--HG--
extra : moz-landing-system : lando
2019-11-06 15:08:40 +00:00
Emilio Cobos Álvarez 2bb4b26089 Bug 1593865 - Simplify code for keeping alive shared memory until all sheets go away. r=jwatt
The existing code wasn't sound, as CSSOM objects also needed to go away before
the shared memory goes away (as they keep references to them).

This is sound assuming no presence of reference cycles introduced by CSSOM.

We may want to live with this and rely on chrome code not writing cycles like
this with UA stylesheet DOM objects.

We could explicitly drop all potentially-static objects... That seems pretty
error prone though.

Or we could also just leak the shared memory buffer, is there any reason why we
may not want to do that?

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

--HG--
extra : moz-landing-system : lando
2019-11-06 16:17:15 +00:00
Emilio Cobos Álvarez df7e6010eb Bug 1593690 - Start visited queries from an idle timer. r=mak,lina
Getting visited colors is relatively low priority during page load. GeckoView
was using a 250ms timer, which was somewhat arbitrary.

If this turns out not to be acceptable for desktop, we can change it to a higher
priority timer.

This enables batching queries from the content process. The lesser priority of
the queries, plus the batching that this enables on the content process I hope
will make a dent on the performance regression that bug 1506842 introduces
as-is.

We should probably introduce batching in the other direction too, both of those
are potential follow-up work.

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

--HG--
extra : moz-landing-system : lando
2019-11-06 12:10:59 +00:00
Emilio Cobos Álvarez ff3e25047b Bug 1593009 - Make zoom: 0 mean the same as zoom: 1. r=heycam
This matches the WebKit implementation, and is clearly a violation of the rules
we generally use for ranges in CSS.

But it seems to be depended-on legacy behavior, see the linked WebKit bug, this
bug, and bug 1593317.

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

--HG--
extra : moz-landing-system : lando
2019-11-06 05:54:17 +00:00
Mirko Brodesser b2de103bf9 Bug 1593222: part 12) Rename "nsNodeUtils.*" to "MutationObservers.*". r=smaug
Depends on D51827

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

--HG--
rename : dom/base/nsNodeUtils.cpp => dom/base/MutationObservers.cpp
rename : dom/base/nsNodeUtils.h => dom/base/MutationObservers.h
extra : moz-landing-system : lando
2019-11-06 09:08:06 +00:00
Mirko Brodesser 4807f484fc Bug 1593222: part 10) Move `Animation*` methods to `MutationObservers`. r=smaug
Depends on D51825

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

--HG--
extra : moz-landing-system : lando
2019-11-05 20:39:22 +00:00
Brian Grinstead 7be32e6d1b Bug 1587142 - Remove XBL tests in layout/ r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D50651

--HG--
extra : moz-landing-system : lando
2019-11-05 20:45:28 +00:00
Ting-Yu Lin 22b2870b5a Bug 1526268 Part 1 - Make AccessibleCaret's #text-overlay and #image children be normal in-flow elements. r=mats
The #text-overlay and #image child divs were "position: absolute" under
the main AccessibleCaret div. However, they don't necessary need to be
position:absolute to achieve the desired layout. We can make them normal
in-flow elements to simplify the frame structure. There should not be
any perceivable change to the user.

Also, AccessibleCaret's position can made more accurate by using float
CSS pixels when converting it from app unit.

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

--HG--
extra : moz-landing-system : lando
2019-11-01 22:16:08 +00:00
Jonathan Kew 4114aeff1a Bug 1587385 - Give a better info (not error) message if a webfont is not used because of font-display timeout. r=heycam
This is not an error in the same way as a download failure, and should not be reported as one.
An Info message is sufficient.

Also suppress "unknown" location in messages about @font-face rules, as it is not useful,
pending a proper fix (bug 1450903).

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

--HG--
extra : moz-landing-system : lando
2019-11-01 08:54:05 +00:00
Nicholas Nethercote a518709339 Bug 1587162 - Fix UBSAN complaints about pref callbacks. r=erahm
Lots of these callbacks have a non-`void*` final parameter, which UBSAN
complains about. This commit changes them to have a `void*` parameter.

This requires undoing the machinery added in the first two commits of bug
1473631: `TypePrefChangeFunc` and `PREF_CHANGE_METHOD`. The resulting code is
simpler (which is good) and more boilerplate-y (which is bad) but avoids the
undefined behaviour (which is good).

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

--HG--
extra : moz-landing-system : lando
2019-11-01 02:57:20 +00:00
Boris Chiou d77411c397 Bug 1429305 - Enable OMTA for motion path and add some tests for it. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D50015

--HG--
extra : moz-landing-system : lando
2019-10-31 21:16:35 +00:00
Boris Chiou a9e57a5534 Bug 1429305 - Extend compositor properties for motion. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D50014

--HG--
extra : moz-landing-system : lando
2019-10-31 20:07:45 +00:00
Boris Chiou d546797708 Bug 1429305 - Add new layer messages for passing motion path info. r=hiro,mattwoodrow
This also includes the implementation of SetAnimatable, FromAnimatable,
and merge the final matrix with motion path.

Besides, we always use PathBuilderSkia for calculating the gfx::Path for
web-renderer.

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

--HG--
extra : moz-landing-system : lando
2019-10-31 20:07:41 +00:00
Boris Chiou 58ba6b888a Bug 1429305 - Use serde to serialize LengthPercentage and StyleRayFunction. r=emilio
We need to pass these two types into the compositor, so we need a better
way to serialize these rust types. We use serde and bincode to
serialize/deserialize them, and use ByteBuf to pass the &[u8] data
through IPC. We define StyleVecU8 for FFI usage only.

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

--HG--
extra : moz-landing-system : lando
2019-10-31 21:35:05 +00:00
Boris Chiou 7bc51c6333 Bug 1429305 - Refactor for ResolveMotionPath. r=hiro
The current implementation uses nsIFrame to get everything. However, we
want to reuse ResolveMotionPath() on the compositor thread (in the parent
process), so we need to refactor this function to avoid using nsIframe
everywhere.

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

--HG--
extra : moz-landing-system : lando
2019-10-31 20:07:30 +00:00
Boris Chiou e169694db2 Bug 1429305 - Move motion path utils into a separate file. r=hiro
I'd like to add some new data type for motion path, so it'd be great to
put all of them in an independent file.

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

--HG--
extra : moz-landing-system : lando
2019-10-31 20:07:28 +00:00
Daniel Varga b747b90cd8 Backed out changeset ec25a8482342 (bug 1592389) for mochitest failure at layout/style/test/test_value_computation.html. On a CLOSED TREE 2019-10-30 10:17:29 +02:00
Sam Mauldin 09a1cf803b Bug 1592389 - Rename Mozfield / Mozfieldtext to Field and Fieldtext r=emilio
Split off of Bug 1590894
Rename these to support unprefixed version
Also add alias to keep compatibility

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

--HG--
extra : moz-landing-system : lando
2019-10-30 05:51:38 +00:00
Emilio Cobos Álvarez 4825f0f201 Bug 1591297 - Remove -moz-binding, nsStyleDisplay::mBinding and similar. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D50556

--HG--
extra : moz-landing-system : lando
2019-10-26 11:37:33 +00:00
Emilio Cobos Álvarez e444a94218 Bug 1589766 - Experiment with implementing zoom as a transform + transform-origin shorthand. r=xidorn
This is a gross hack, of course, but has the advantage of not breaking sites
that use both zoom and -moz-transform / -moz-transform-origin.

There should be no behavior change when the pref is off, of course, and the
webcompat team wanted to experiment with this.

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

--HG--
extra : moz-landing-system : lando
2019-10-26 14:17:28 +00:00
Emilio Cobos Álvarez 40a83cda81 Bug 1591577 - Make test_area_url_cursor.html more resilient to having the mouse cursor over the image when the test runs.
Differential Revision: https://phabricator.services.mozilla.com/D50699

--HG--
extra : moz-landing-system : lando
2019-10-26 10:47:23 +00:00
Emilio Cobos Álvarez 0783d6c04c Bug 1590722 - Fix a test that I just wrote to handle getting a mouse over event before getting focus.
Differential Revision: https://phabricator.services.mozilla.com/D50645

--HG--
extra : moz-landing-system : lando
2019-10-25 18:40:35 +00:00
Daniel Holbert d55c8c26d0 Bug 1590639 part 4: Fix non-unified build issues in layout/style. r=emilio
This patch:

- Gives layout/generic/AnonymousContentKey.h an include for `<stdint.h>` to
  provide the uint8_t type, and TypedEnumBits.h to provide the
  MOZ_MAKE_ENUM_CLASS_BITWISE_OPERATORS macro. (This is a change in another
  directory, but it's needed in order for layout/style/ServoStyleSet.cpp to
  build successfully.)
- Adds a missing "nsINode" forward-decl to dom/base/IdentifierMapEntry.h,
  because it uses that type in function declarations.  (This change is needed
  in order for layout/style/CachedInheritingStyles.cpp to build successfully.)
- Gives CSSStyleRule.cpp an include for PseudoStyleType.h,
  nsCSSPseudoElements.h, and CSSEnabledState.h because it uses those types.
- Gives GeckoBindings.cpp an include for gfxTextRun.h, to provide the definition
  of type gfxFontGroup (so GeckoBindings can call GetFirstValidFont() on an
  object of that type).
- Gives Loader.h an include for nsIContentInlines.h, to provide the inline
  function IsInUAWidget().
- Gives Rule.cpp an include for HoldDropJSObjects.h, to provide DropJSObjects().
- Gives nsImageLoader.cpp an include for DocumentInlines.h (and Document.h for
  good measure), to provide the inline function GetPresContext().
- Gives nsStyleStruct.cpp an include for DocumentInlines.h, to provide inline
  function Document::GetPresContext().
- Gives nsStyleTransformMatrix.h an include for Units.h (instead of gfxPoint.h,
  which isn't useful) to provide the CSSPoint type.
- Gives nsStyleTransformMatrix.h an include for ServoStyleConsts.h, to provide
  LengthPercentage and the various StyleRotate/StyleScale/StyleTransform/etc
  types. (These can't be easily forward-declared, because some of them are
  legitimate types whereas others are type aliases. We could theoretically
  forward-declare all of the underlying types and then repeat the type aliases,
  but that'd be verbose and unmaintainable.)

Depends on D50165

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

--HG--
extra : moz-landing-system : lando
2019-10-23 08:14:54 +00:00
Daniel Holbert ceb61cf5ab Bug 1590639 part 0: Run clang-format on layout/. r=TYLin
This patch is entirely automated, and was generated with the following command:
./mach clang-format -p layout/

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

--HG--
extra : moz-landing-system : lando
2019-10-23 22:02:43 +00:00
Emilio Cobos Álvarez 6d8c0d26b1 Bug 1582398 - Remove user-select: all for editable labels. r=masayuki
This seems to go back to our initial contenteditable implementation, and I don't
think there's a reason <label> should work differently from anything else.

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

--HG--
extra : moz-landing-system : lando
2019-10-23 09:30:03 +00:00
Emilio Cobos Álvarez 27c8d88f2c Bug 1590191 - Trigger image loads for <area> cursor styles. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D49998

--HG--
extra : moz-landing-system : lando
2019-10-23 08:29:54 +00:00
Kagami Sascha Rosylight e30a6dbb4a Bug 824857: Support IDL stringifier attributes r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D48355

--HG--
extra : moz-landing-system : lando
2019-10-23 04:55:54 +00:00
Emilio Cobos Álvarez 1442d5b174 Bug 1590357 - Update overflow areas for visible -> unscrollable clip changes. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D50049

--HG--
extra : moz-landing-system : lando
2019-10-22 19:02:36 +00:00
Emilio Cobos Álvarez b0b21c6323 Bug 1590273 - Remove useless early-outs in nsStyle{Padding,Margin}::CalcDifference. r=hiro
Best-case they're redundant.

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

--HG--
extra : moz-landing-system : lando
2019-10-22 02:34:20 +00:00
Emilio Cobos Álvarez 1e1979bf60 Bug 1590203 - Handle overflow changes more gracefully when possible. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D49987

--HG--
extra : moz-landing-system : lando
2019-10-21 23:47:31 +00:00
Brendan Dahl 48a59e061b Bug 1583314 - Skip or port XBL tests to shadow DOM. r=bzbarsky
Where possible I ported tests to use the shadow DOM. The following could
potentially be ported, but don't think it worth of it:
  test_bug414907.xul - uses children nodes in constructor which is very
different in shadow DOM world
  test_bug233643.xul - really tests XBL behavior
  test_anonymous_content.py - bug on file already to create shadow DOM
test from scratch

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

--HG--
rename : devtools/client/inspector/test/browser_inspector_highlighter-xbl.js => devtools/client/inspector/test/browser_inspector_highlighter-custom-element.js
extra : moz-landing-system : lando
2019-10-21 20:21:20 +00:00
Emilio Cobos Álvarez 986d8c0d8e Bug 1588737 - Hide -moz-touch-enabled media query in Nightly and Early Beta. r=xidorn
This is effectively superseded by the hover / any-hover media queries, which
actually are standard, and is also causing trouble in the wild.

Not even the browser fronted uses it, so we should be able to just remove it
everywhere at once.

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

--HG--
extra : moz-landing-system : lando
2019-10-20 13:44:16 +00:00
Geoff Brown c906073cd5 Bug 1585119 - Re-enable many mochitests on android; r=geckoview-reviewers,snorp
Most of these tests have been disabled for a long time; they run well
in the current test environment.
With the additional tests running, task times increase; I have added one
more test chunk for android mochitest-plain.
These tests were identified from a random sampling of mochitest manifests;
I intend to enable more mochitests in future patches.

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

--HG--
extra : moz-landing-system : lando
2019-10-15 15:07:09 +00:00
Emilio Cobos Álvarez 1aaa268725 Bug 1588743 - Remove old scroll-snap implementation, and scroll snapping prefs. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D49267

--HG--
extra : moz-landing-system : lando
2019-10-15 12:40:14 +00:00
Coroiu Cristina 291d475197 Backed out changeset 1a951477dca5 (bug 1588743) for xpcshell failures at devtools/shared/tests/unit/test_css-properties-db.js on a CLOSED TREE 2019-10-15 15:35:50 +03:00
Emilio Cobos Álvarez 8325c4b9a3 Bug 1588743 - Remove old scroll-snap implementation, and scroll snapping prefs. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D49267

--HG--
extra : moz-landing-system : lando
2019-10-15 11:39:30 +00:00
Emilio Cobos Álvarez 39e0d5dc32 Bug 1588201 - Fix test_compute_data_with_start_struct.html to avoid leaving properties set around. r=xidorn
This is causing problems since leaving a non-default appearance changes margins
and borders. This was wallpapered by XBL failing to load a binding and leaving
the element without frame as described in the bug.

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

--HG--
extra : moz-landing-system : lando
2019-10-13 09:28:09 +00:00
Emilio Cobos Álvarez 536c1bc0bb Bug 1581467 - Fix checks for display: inline{,-block} which don't account for inline list items. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D48346

--HG--
extra : moz-landing-system : lando
2019-10-12 21:05:16 +00:00
Mats Palmgren a860dc10ba Bug 1234311 part 2 - [css-grid-2] Implement 'grid-template-rows/columns' resolved value correctly for subgrid. r=dholbert
This implements the resolution and adds WPTs for:
https://github.com/w3c/csswg-drafts/issues/4362

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

--HG--
extra : moz-landing-system : lando
2019-10-12 17:16:02 +00:00
Mats Palmgren 8be7bfbd5b Bug 1234311 part 1 - [css-grid][css-grid-2] Simplify and improve calculation of 'grid-template-rows/columns' resolved value when the element has no box. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D49026

--HG--
extra : moz-landing-system : lando
2019-10-12 17:15:43 +00:00
Brendan Dahl 237d762715 Bug 1510785 - Skip all XBL related tests when XBL is disabled. r=bzbarsky
XBL will be disabled on android, so these tests must be skipped. Where possible
tests are copied to create shadow DOM tests.

Depends on D45615

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

--HG--
rename : layout/inspector/tests/test_bug522601.xhtml => layout/inspector/tests/test_bug522601-shadow.xhtml
rename : layout/inspector/tests/test_bug609549.xhtml => layout/inspector/tests/test_bug609549-shadow.xhtml
rename : layout/reftests/bugs/334829-1a.xhtml => layout/reftests/bugs/334829-1a-shadow.xhtml
rename : layout/reftests/bugs/334829-1b.xhtml => layout/reftests/bugs/334829-1b-shadow.xhtml
rename : layout/reftests/bugs/386310-1b.html => layout/reftests/bugs/386310-1b-shadow.html
rename : layout/reftests/bugs/386310-1c.html => layout/reftests/bugs/386310-1c-shadow.html
rename : layout/reftests/bugs/386310-1d.html => layout/reftests/bugs/386310-1d-shadow.html
rename : layout/reftests/bugs/482592-1a.xhtml => layout/reftests/bugs/482592-1a-shadow.xhtml
rename : layout/reftests/bugs/482592-1b.xhtml => layout/reftests/bugs/482592-1b-shadow.xhtml
rename : layout/reftests/css-selectors/sibling-combinators-on-anon-content-1.xhtml => layout/reftests/css-selectors/sibling-combinators-on-anon-content-1-shadow.xhtml
rename : layout/reftests/css-selectors/sibling-combinators-on-anon-content-2.xhtml => layout/reftests/css-selectors/sibling-combinators-on-anon-content-2-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-appendmultiple.xhtml => layout/reftests/dom/multipleinsertionpoints-appendmultiple-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-appendsingle-1.xhtml => layout/reftests/dom/multipleinsertionpoints-appendsingle-1-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-appendsingle-2.xhtml => layout/reftests/dom/multipleinsertionpoints-appendsingle-2-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-insertmultiple.xhtml => layout/reftests/dom/multipleinsertionpoints-insertmultiple-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-insertsingle-1.xhtml => layout/reftests/dom/multipleinsertionpoints-insertsingle-1-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-insertsingle-2.xhtml => layout/reftests/dom/multipleinsertionpoints-insertsingle-2-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-ref2.xhtml => layout/reftests/dom/multipleinsertionpoints-ref2-shadow.xhtml
rename : layout/reftests/ib-split/insert-into-split-inline-5.html => layout/reftests/ib-split/insert-into-split-inline-5-shadow.html
extra : moz-landing-system : lando
2019-10-08 23:52:46 +00:00
Brendan Dahl c68cd30ef2 Bug 1510785 - Only build XBL related code when MOZ_XBL is defined. r=bzbarsky
When XBL is disabled, no code in dom/xbl will be built. Also, adds ifdefs
to remove any of the XBL related code elsewhere. There's definitely more
that can be done here, but I think it's better to wait to do the rest of
the cleanup when we actually remove the code.

Depends on D45612

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

--HG--
extra : moz-landing-system : lando
2019-10-08 23:52:14 +00:00
Ricky Stewart c010710916 Bug 1586358 - Replace existing instances of GENERATED_FILES with references to the GeneratedFile template r=firefox-build-system-reviewers,mshal
(Same content as bad revision https://phabricator.services.mozilla.com/D48230, but with a very small change to config/external/icu/data/moz.build to fix the build breakage.)

Try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=833f6a69fcac689488a640b43e8e0bdaa086a56c

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

--HG--
extra : moz-landing-system : lando
2019-10-07 21:15:19 +00:00
Daniel Varga 052ef806b5 Backed out changeset 8d95f2c8867b (bug 1586358) for build bustage with FATAL ERROR PROCESSING MOZBUILD FILE. On a CLOSED TREE
--HG--
extra : rebase_source : 325fbad2455afc7f693087e75fa57dba79f4d86b
2019-10-07 20:22:08 +03:00
Ricky Stewart 940d91af38 Bug 1586358 - Replace existing instances of GENERATED_FILES with references to the GeneratedFile template r=nalexander
This patch doesn't remove all references to GENERATED_FILES, but does remove most of them, leaving only those which can't be trivially translated to the new template.

Try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=e4a25230c3992b9c5519ceb351fb37f6b2bf605e

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

--HG--
extra : moz-landing-system : lando
2019-10-07 15:31:05 +00:00
Emilio Cobos Álvarez 457aabd5d0 Bug 1581467 - Use DisplayInside() / DisplayOutside() a bit more. r=mats
And remove some unused display values from the C++ bindings.

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

--HG--
extra : moz-landing-system : lando
2019-10-07 12:27:27 +00:00
Emilio Cobos Álvarez 6d02538204 Bug 1585882 - Fix the case where where a node with an up-to-date style loses its frame due to a DOM mutation of siblings. r=heycam
This fixes another edge-case that I thought of while debugging this, I think
this makes our behavior correct now. The comment and test-case should be
self-descriptive.

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

--HG--
extra : moz-landing-system : lando
2019-10-06 23:30:23 +00:00
Savo be6805c792 Bug 1586068 - Replace #define NS_STYLE_FLEX_WRAP with enum class. r=emilio
MANUAL PUSH: Rebasing contributor patch.

Differential Revision: https://phabricator.services.mozilla.com/D48166
2019-10-07 00:42:12 +02:00
Sylvestre Ledru f12b9fa5c3 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-10-06 18:29:55 +00:00
Morgan Reschenberg 05ad28e67c Bug 1539212: Add readability backplate for all elements containing text when HCM or a11y theme is active. r=dholbert,mattwoodrow,Jamie
Differential Revision: https://phabricator.services.mozilla.com/D42979

--HG--
extra : moz-landing-system : lando
2019-10-04 16:44:49 +00:00
Narcis Beleuzu bfc1592441 Backed out changeset b925e911f646 (bug 1586140) for build bustages. CLOSED TREE 2019-10-04 10:50:28 +03:00
Cameron McCormack 90f25931b3 Bug 1586140 - Trim ServoBindings.toml. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D48143

--HG--
extra : moz-landing-system : lando
2019-10-04 07:15:20 +00:00
Emilio Cobos Álvarez 453ca45319 Bug 1585674 - Start loads more incrementally in the @import scanner. r=hsivonen
Consider the case of a very big <style> element, with a few imports on top,
which we cut half-way over the network.

The @import scanner would be likely to have found anything there is to be found,
but we won't process it until we pop the <style> element. It's relatively low
effort to support this use-case by making Scan() return the already-found urls.

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

--HG--
extra : moz-landing-system : lando
2019-10-03 07:34:35 +00:00
Brindusan Cristian 267e79dacc Bug 1583736 - Fix Eslint failure due to Delete `,` r=me CLOSED TREE 2019-10-02 07:41:42 +03:00
Cameron McCormack bcd2fa209b Bug 1581579 - Fix scrollbar style caching conflict for <resizer dir="bottom"> vs <resizer dir="bottomleft">. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D47568

--HG--
extra : moz-landing-system : lando
2019-09-30 09:51:07 +00:00
Emilio Cobos Álvarez ea3d3a0084 Bug 1583736 - Don't allow negative radii in radial gradients. r=boris
Mostly renaming for clarity, as the gradient parsing code is a bit hairy.

This also changes -webkit- gradients, which is, I think, the right thing to do
(otherwise I need to give up on the type system and sprinkle parse_non_negatives
around, which would be unfortunate).

I filed https://bugs.chromium.org/p/chromium/issues/detail?id=1008112 on
Chromium still accepting negative radii for those, so will wait to submit the
patch for review until they reply there with their intentions.

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

--HG--
extra : moz-landing-system : lando
2019-10-01 21:44:41 +00:00
Emilio Cobos Álvarez c36001b625 Bug 1546783 - Test that we preload @import stylesheets. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D47486

--HG--
extra : moz-landing-system : lando
2019-09-30 13:52:14 +00:00
Emilio Cobos Álvarez b41a8a2d6f Bug 1546783 - Add a best-effort @import rule scanner for the parser. r=bzbarsky
Doesn't recognize all the edge cases, but I think this should be good enough.

Let me know if you think something common is missing.

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

--HG--
extra : moz-landing-system : lando
2019-09-30 13:29:23 +00:00
Coroiu Cristina b3555c999a Backed out 3 changesets (bug 1546783) on request by emilio on a CLOSED TREE
Backed out changeset ad3822105edc (bug 1546783)
Backed out changeset a8ac28c2bfc7 (bug 1546783)
Backed out changeset b2678d2e55fb (bug 1546783)
2019-09-30 16:23:16 +03:00
Emilio Cobos Álvarez 4fe6a4a5ca Bug 1546783 - Add a best-effort @import rule scanner for the parser. r=bzbarsky
Doesn't recognize all the edge cases, but I think this should be good enough.

Let me know if you think something common is missing.

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

--HG--
extra : moz-landing-system : lando
2019-09-30 10:37:22 +00:00
Tim Nguyen 5c78a8e3de Bug 1582530 - Fix remaining cases that were relying on blockification. r=dao,dholbert
Differential Revision: https://phabricator.services.mozilla.com/D46676

--HG--
extra : moz-landing-system : lando
2019-09-28 00:20:32 +00:00
Dorel Luca 759e72860c Backed out 2 changesets (bug 1582530) for Creshtest failures in ayout/generic/ReflowInput.cpp. CLOSED TREE
Backed out changeset 536e78fea3de (bug 1582530)
Backed out changeset ae88c31cf531 (bug 1582530)

--HG--
extra : amend_source : cd6928208a1916e72a8f14952adc85f5e5e2c47d
2019-09-28 00:31:24 +03:00
Tim Nguyen 597206ae06 Bug 1582530 - Fix remaining cases that were relying on blockification. r=dao,dholbert
Differential Revision: https://phabricator.services.mozilla.com/D46676

--HG--
extra : moz-landing-system : lando
2019-09-27 20:14:37 +00:00
Hiroyuki Ikezoe 258818e259 Bug 1536392 - Drop GeckoView checks for individual transform properties cases. r=boris
Now all test cases for individual transform properties work fine on GeckoView.

Depends on D47200

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

--HG--
extra : moz-landing-system : lando
2019-09-26 21:01:30 +00:00
Hiroyuki Ikezoe 777658832e Bug 1536392 - Make the transform transition opposite direction of the translate transition to make sure the transformed results is inside the display port. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D47200

--HG--
extra : moz-landing-system : lando
2019-09-26 21:01:26 +00:00
Geoff Brown b0e5901c93 Bug 1582884 - Enable some crashtests on Android; r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D46784

--HG--
extra : moz-landing-system : lando
2019-09-24 01:12:09 +00:00
Boris Chiou 470629b5d3 Bug 1567330 - Add offset shorthand. r=emilio,birtles
Also, update the serialization by the shorter perference because this is
a new feature and using older syntax doesn't make sense.

Besides, use `cssOffset` for web animation IDL attribute name.

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

--HG--
extra : moz-landing-system : lando
2019-09-23 19:56:33 +00:00
Emilio Cobos Álvarez 678c18063d Bug 1583203 - Annotate nsINode::OwnerDoc() as MOZ_NONNULL_RETURN. r=smaug
People keep adding useless null-checks and it was not clear what the consensus
was from bug 1441165, but this should be unobjectionable I guess.

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

--HG--
extra : moz-landing-system : lando
2019-09-23 18:12:19 +00:00
Brian Birtles 6bd2528448 Bug 1576866 - Make various border-image-* properties interpolable; r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D46724

--HG--
extra : moz-landing-system : lando
2019-09-23 02:07:56 +00:00
Cameron McCormack 4ff6c875f8 Bug 1482778 - Include captions within table outlines. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D45802

--HG--
extra : moz-landing-system : lando
2019-09-22 23:42:04 +00:00
Emilio Cobos Álvarez ac0963d614 Bug 1582814 - followup: fix a test now that we always count in the style system.
Differential Revision: https://phabricator.services.mozilla.com/D46708

--HG--
extra : moz-landing-system : lando
2019-09-21 13:40:42 +00:00
Andreea Pavel e18057a961 Merge mozilla-inbound to mozilla-central. a=merge 2019-09-20 12:48:30 +03:00
Emilio Cobos Álvarez b427bb0b08 No bug - Remove a silly LOG_ENABLED() check.
LOG() already checks that.

MANUAL PUSH: trivial
2019-09-20 15:36:22 +09:00
Emilio Cobos Álvarez a2f95a081c Bug 1578151 - Factor out the "containing block did not really change" code from CalcStyleDifference. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D44351

--HG--
extra : moz-landing-system : lando
2019-09-20 05:06:49 +00:00
Emilio Cobos Álvarez 6c211da0ae Bug 1582374 - Add a warning when we find usage of the CSS zoom property. r=smaug,flod
Now that we count them, I think we should do this.

This property is pretty painful for various reasons:

 * It's a pretty awkward non-standard property.
 * Has a pretty short name, so people use it instead of the standard
   alternatives.
 * We cannot really even implement it easily anyhow, without breaking a whole
   bunch of stuff, because pages do things like:

```
myelement {
  zoom: 0.5;
  -moz-transform: scale(0.5);
  transform-origin: 0 0;
}
```

For now this is only recorded when CSS use counters are enabled (Nightly for
now), but I want to change it once bug 1578661 is in central.

The hope is that this warning slightly raises awareness of this property not
being standard. You get a CSS parsing error in the console, but those are
usually too noisy and disabled by default.

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

--HG--
extra : moz-landing-system : lando
2019-09-20 01:31:35 +00:00
Emilio Cobos Álvarez 95582debce Bug 1578661 - Report counted unknown properties as well. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D44717

--HG--
extra : moz-landing-system : lando
2019-09-19 00:20:04 +00:00
Emilio Cobos Álvarez 1e858d2a04 Bug 1578661 - Fix use counter test. r=boris
By reporting the properties in MappedAttrParser that we used to (the test relies
on counting those), and by adjusting the histogram name to the new thing.

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

--HG--
extra : moz-landing-system : lando
2019-09-19 00:20:39 +00:00
Emilio Cobos Álvarez 31755a845c Bug 1578661 - Remove old CSS use counters. r=boris
We only have two counters enabled, just for testing, and they just count from
the SVG mapped attribute code. That's not great, and they mostly complicate the
next few patches.

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

--HG--
extra : moz-landing-system : lando
2019-09-19 00:20:35 +00:00
Cosmin Sabou 2978a72248 Backed out 10 changesets (bug 1578661) for linting failures on layout/style/ServoCSSPropList.py. CLOSED TREE
Backed out changeset b1b5393b1099 (bug 1578661)
Backed out changeset b87eebb0cf6e (bug 1578661)
Backed out changeset 6ba2ee45f26e (bug 1578661)
Backed out changeset 4a1d45160d60 (bug 1578661)
Backed out changeset 7a5687bebc02 (bug 1578661)
Backed out changeset 33c306c9020a (bug 1578661)
Backed out changeset 89d7e6fb24b0 (bug 1578661)
Backed out changeset 42c4943e569b (bug 1578661)
Backed out changeset 88d988a80de1 (bug 1578661)
Backed out changeset 78c90f9e9eee (bug 1578661)
2019-09-19 01:50:03 +03:00
Emilio Cobos Álvarez 4ce6b69adf Bug 1578661 - Report counted unknown properties as well. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D44717

--HG--
extra : moz-landing-system : lando
2019-09-18 15:15:15 +00:00
Emilio Cobos Álvarez 2adb14b20a Bug 1578661 - Fix use counter test. r=boris
By reporting the properties in MappedAttrParser that we used to (the test relies
on counting those), and by adjusting the histogram name to the new thing.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 15:15:26 +00:00
Emilio Cobos Álvarez 6a2a92e98a Bug 1578661 - Remove old CSS use counters. r=boris
We only have two counters enabled, just for testing, and they just count from
the SVG mapped attribute code. That's not great, and they mostly complicate the
next few patches.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 15:15:19 +00:00
Andreea Pavel 7494b360c0 Backed out 10 changesets (bug 1578661) for lints failure at ServoCSSPropList.cpp on a CLOSED TREE
Backed out changeset ed3c619100e7 (bug 1578661)
Backed out changeset 027514a2eaf6 (bug 1578661)
Backed out changeset f2e228282b20 (bug 1578661)
Backed out changeset 67c36136dce7 (bug 1578661)
Backed out changeset 2280b27cc130 (bug 1578661)
Backed out changeset 445d13a2c452 (bug 1578661)
Backed out changeset 89caaa850049 (bug 1578661)
Backed out changeset 2f8be5db1786 (bug 1578661)
Backed out changeset 51a015a9a0f8 (bug 1578661)
Backed out changeset ad8e1f27a600 (bug 1578661)
2019-09-18 18:09:30 +03:00
Emilio Cobos Álvarez 30e754a811 Bug 1578661 - Report counted unknown properties as well. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D44717

--HG--
extra : moz-landing-system : lando
2019-09-18 12:04:48 +00:00
Emilio Cobos Álvarez 959c99b520 Bug 1578661 - Fix use counter test. r=boris
By reporting the properties in MappedAttrParser that we used to (the test relies
on counting those), and by adjusting the histogram name to the new thing.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 12:04:37 +00:00
Emilio Cobos Álvarez d880111e86 Bug 1578661 - Remove old CSS use counters. r=boris
We only have two counters enabled, just for testing, and they just count from
the SVG mapped attribute code. That's not great, and they mostly complicate the
next few patches.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 12:04:33 +00:00
Mihai Alexandru Michis 7bed28e9e2 Merge mozilla-central to autoland. 2019-09-18 14:47:25 +03:00
Andreea Pavel 31ca3fda59 Backed out 9 changesets (bug 1578661) for lints failure at ServoCSSPropList.py a=backout
Backed out changeset d16463e5698c (bug 1578661)
Backed out changeset c6d64ac858ba (bug 1578661)
Backed out changeset db306f1467f7 (bug 1578661)
Backed out changeset 273535aab82d (bug 1578661)
Backed out changeset f643262a8c25 (bug 1578661)
Backed out changeset b0db409ada96 (bug 1578661)
Backed out changeset dc96d13728e0 (bug 1578661)
Backed out changeset 11e1e8f0a1b7 (bug 1578661)
Backed out changeset 6dd7a0d914d9 (bug 1578661)
2019-09-18 13:53:34 +03:00
Henri Sivonen c193518677 Bug 1490601 part 2 - Move C++ entry points to encoding_c_mem to mfbt/. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D43957

--HG--
extra : moz-landing-system : lando
2019-09-18 08:26:34 +00:00
Emilio Cobos Álvarez 5ebe1a5793 Bug 1578661 - Report counted unknown properties as well. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D44717

--HG--
extra : moz-landing-system : lando
2019-09-18 02:31:25 +00:00
Emilio Cobos Álvarez f8337abcef Bug 1578661 - Fix use counter test. r=boris
By reporting the properties in MappedAttrParser that we used to (the test relies
on counting those), and by adjusting the histogram name to the new thing.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 02:31:19 +00:00
Emilio Cobos Álvarez a9ba10a9bc Bug 1578661 - Remove old CSS use counters. r=boris
We only have two counters enabled, just for testing, and they just count from
the SVG mapped attribute code. That's not great, and they mostly complicate the
next few patches.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 02:32:52 +00:00
Boris Chiou 88285c24ba Bug 1480665 - Support ray() in offset-path and make it animatable. r=emilio,birtles
1. Add `generics::motion::OffsetPath`, and use specified `Angle` and
   computed `Angle` to define specified `OffsetPath` and computed `OffsetPath`.
2. Add `ray` function into `OffsetPath`.

We also tweak the degree from 150deg to 135deg in wpt (e.g.
offset-path-ray-001.html and others) to avoid floating point precision issues.
For example:
```
// offset-path: ray(150deg ...);
// offset-distance: 20px;
matrix:
{
  {0.500000 0.866025 0.000000 0.000000},
  {-0.866025 0.500000 0.000000 0.000000},
  {0.000000 0.000000 1.000000 0.000000},
  {10.000000 17.320509 0.000000 1.000000}
}

// rotate(60deg) translate(20px)
matrix:
{
  {0.500000 0.866025 0.000000 0.000000},
  {-0.866025 0.500000 0.000000 0.000000},
  {0.000000 0.000000 1.000000 0.000000},
  {10.000000 17.320507 0.000000 1.000000}
}
```
Their translate parts, 17.320509 vs 17.320507, are almost the same (only
tiny difference), which may cause the reftest failed.

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

--HG--
rename : testing/web-platform/tests/css/motion/offset-path-ray-ref.html => testing/web-platform/tests/css/motion/offset-path-ray-001-ref.html
rename : testing/web-platform/tests/css/motion/offset-path-ray.html => testing/web-platform/tests/css/motion/offset-path-ray-001.html
rename : testing/web-platform/tests/css/motion/offset-path-ray.html => testing/web-platform/tests/css/motion/offset-path-ray-002.html
rename : testing/web-platform/tests/css/motion/offset-path-ray.html => testing/web-platform/tests/css/motion/offset-path-ray-003.html
rename : testing/web-platform/tests/css/motion/offset-path-ray.html => testing/web-platform/tests/css/motion/offset-path-ray-004.html
rename : testing/web-platform/tests/css/motion/offset-path-ray.html => testing/web-platform/tests/css/motion/offset-path-ray-005.html
rename : testing/web-platform/tests/css/motion/offset-path-ray.html => testing/web-platform/tests/css/motion/offset-path-ray-006.html
rename : testing/web-platform/tests/css/motion/offset-path-ray.html => testing/web-platform/tests/css/motion/offset-path-ray-007.html
extra : moz-landing-system : lando
2019-09-16 23:24:48 +00:00
Christoph Kerschbaumer ecfde38ed8 Bug 1580710: Expose functionality on the CSP Object to allow skipping the inline style checks. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D45631

--HG--
extra : moz-landing-system : lando
2019-09-16 23:47:19 +00:00
Emilio Cobos Álvarez ff890f406e Bug 1579788 - Don't update validity state when the JS engine fails to execute the pattern. r=smaug
When we call nsContentUtils::IsPatternMatching, we swallow JS engine errors
unconditionally returning true.

This is bad, because if it happens in one of the value sets that arguably
shouldn't change the state of the element, we end up returning an arbitrary
value (true) which may or may not match the previous state of the element.

Handle error explicitly instead, by not updating the state.

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

--HG--
extra : moz-landing-system : lando
2019-09-16 10:11:42 +00:00
Daisuke Akatsuka 409a2bc885 Bug 713106: Make :visited selector enabled to use from DevTools. r=pbro,emilio
Differential Revision: https://phabricator.services.mozilla.com/D45624

--HG--
extra : moz-landing-system : lando
2019-09-13 22:12:12 +00:00
Emilio Cobos Álvarez 4fad3bb9aa Bug 1580307 - Avoid justify-items from the cached scrollbar assertions. r=heycam
justify-items' initial value is `legacy` and the computed value depends on the
parent's value.

We don't use flex / grid in the scrollbars, so just avoid asserting about this
property.

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

--HG--
extra : moz-landing-system : lando
2019-09-13 12:18:19 +00:00
Sylvestre Ledru e79e716c67 Bug 1577236 - clang-10: Fix -Wimplicit-int-float-conversion warnings in /layout/ r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D43784

--HG--
extra : moz-landing-system : lando
2019-09-12 12:32:12 +00:00
Emilio Cobos Álvarez 78a7d864e6 Bug 1577139 - Remove LengthPercentage::was_calc. r=heycam
There should not be any behavior change between specifying a percentage using %
or calc(%) per the resolution of https://github.com/w3c/csswg-drafts/issues/3482.

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

--HG--
extra : moz-landing-system : lando
2019-09-12 08:14:44 +00:00
Mihai Alexandru Michis 95b09298a4 Backed out changeset 7876583b2407 (bug 1577236) for causing failures in calc-rounding-001.html CLOSED TREE 2019-09-11 18:48:22 +03:00
Sylvestre Ledru 3029c376ad Bug 1577236 - clang-10: Fix -Wimplicit-int-float-conversion warnings in /layout/ r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D43784

--HG--
extra : moz-landing-system : lando
2019-09-11 13:50:36 +00:00
Michael Woerister 77f7095cb5 Bug 1577171 - Remove duplicated logic from Stylo's Gecko wrapper. r=emilio
Stylo's Gecko wrapper duplicated some logic from the C++ side so
that the Rust compiler would be able to optimize better. Now that
we have xLTO, this kind of manual inlining should not be neccessary
anymore.

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

--HG--
extra : moz-landing-system : lando
2019-09-09 17:23:20 +00:00
Boris Chiou 4db87c1296 Bug 1574222 - Serialize getComputedStyle on text-decoration properly. r=emilio,dholbert
The wpt will be updated in
https://github.com/web-platform-tests/wpt/pull/18866.

Besides, there are some other test cases use text-decoration, so we
have to update them as well. The rule is: if the test case is not related to
old `text-decoration` longhand, we use `text-decoration-line` instead.
If the test case is for testing the change of `text-decoration` from
longhand to shorthand, we should use the correct serialization.

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

--HG--
extra : moz-landing-system : lando
2019-09-10 21:52:26 +00:00
Cameron McCormack 7052f624b5 Bug 1578147 - Align the Rust and C++ representations of WritingMode. r=emilio,jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D44412

--HG--
extra : moz-landing-system : lando
2019-09-09 04:49:55 +00:00
Cameron McCormack 79dc9209f9 Bug 1562060 - Add telemetry to record how often we fail to map UA sheet shared memory at the desired address. r=jwatt,janerik
Differential Revision: https://phabricator.services.mozilla.com/D36273

--HG--
extra : moz-landing-system : lando
2019-09-09 06:18:40 +00:00
Cameron McCormack 1ce893603a Bug 1569706 - Update incorrect assertion. r=emilio
We can end up in here from a style worker thread.  But that's safe since
we only read data from the FontFaceSet, and the main thread is blocked
so writes can't happen underneath us.

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

--HG--
extra : moz-landing-system : lando
2019-09-08 23:41:54 +00:00
Geoff Brown 56ca134785 Bug 1579272 - Cleanup obviously fennec-centric test annotations; r=bc
Remove test manifest annotations that specifically target fennec,
or likely target the android 4.3 emulator.

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

--HG--
extra : moz-landing-system : lando
2019-09-06 16:51:10 +00:00
Karl Tomlinson 6b19f33045 Bug 1578623 create worklet global with JSPrincipals having reference to WorkletImpl r=baku,bzbarsky
This will permit implementation of JSPrincipals::write().

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

--HG--
rename : dom/worklet/WorkletPrincipal.cpp => dom/worklet/WorkletPrincipals.cpp
rename : dom/worklet/WorkletPrincipal.h => dom/worklet/WorkletPrincipals.h
extra : moz-landing-system : lando
2019-09-06 02:01:44 +00:00
Jared Wein 895b7027da Bug 1577602 - Allow spinner buttons to grow to full size in input[type=number]. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D44032

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

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

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

```

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

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

--HG--
extra : moz-landing-system : lando
2019-09-05 21:37:32 +00:00
Hiroyuki Ikezoe aa7c736bad Bug 1563649 - As with display list item and reflow for position:fixed elements, use the adjusted layout viewport size getComputedStyle() r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D41930

--HG--
extra : moz-landing-system : lando
2019-09-05 01:15:05 +00:00
Emilio Cobos Álvarez 7c013bffa7 Bug 1574718 - followup: Also actually unlink it. r=heycam
MANUAL PUSH: Minor post-landing follow-up.
2019-09-04 09:15:43 +02:00
Emilio Cobos Álvarez 0a2fcf6771 Bug 1574718 - Cycle-collect inline-sheet cache. r=heycam
This is an oversight from the initial implementation of the cache.

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

--HG--
extra : moz-landing-system : lando
2019-09-04 06:27:00 +00:00
Emilio Cobos Álvarez d5bc03b6f0 Bug 1578295 - Use cbindgen for counters. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D44403

--HG--
extra : moz-landing-system : lando
2019-09-02 23:11:26 +00:00
Emilio Cobos Álvarez a04d027dce No bug - add a comment to forms.css about how we reset line-height.
MANUAL PUSH: Comment only, no bug.
2019-09-02 10:30:57 +02:00
Emilio Cobos Álvarez b185926d7c Bug 1570759 - Don't expect assertions since they all came from margin computation.
CLOSED TREE

MANUAL PUSH: orange fix for unexpected passes
2019-08-30 18:43:08 +02:00
Emilio Cobos Álvarez a6a21b7c55 Bug 1570759 - followup: Actually use the style value if we determine we don't need the layout one. r=bustage
CLOSED TREE

MANUAL PUSH: orange will appear on autoland very soon otherwise
2019-08-30 17:30:53 +02:00
Emilio Cobos Álvarez 8ac4e96f2f Bug 1570759 - Enable the optimization to not flush for fixed margin values. r=jwatt
As noted this changes behavior, but it's unclear per
https://github.com/w3c/csswg-drafts/issues/2328 what behavior is correct, and
our behavior is inconsistent depending on whether there's any percentage
involved.

This matches other browsers so it's pretty low risk I'd say.

The test starts passing without changes to the test, but given the CSSWG issue I
made the test not rely on the optimization.

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

--HG--
extra : moz-landing-system : lando
2019-08-30 14:45:20 +00:00
Emilio Cobos Álvarez 4505c339ab Bug 1576229 - Account for user stylesheets for Shadow DOM invalidation. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D43992

--HG--
extra : moz-landing-system : lando
2019-08-30 14:35:34 +00:00
Emilio Cobos Álvarez e789ad73c7 Bug 1577745 - Remove dead version of nsStyleDisplay::IsOriginalDisplayInlineOutside. r=mats
SVG Text stuff doesn't support abspos or anything like that, so it's not like it
is useful.

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

--HG--
extra : moz-landing-system : lando
2019-08-30 13:21:42 +00:00
Boris Chiou c8dba8c886 Bug 1575062 - Support css use counters for unimplemented properties. r=emilio
For developing properties, we will handle them in an other bug.

Besides, I use an iframe for the test because we create a use counter in
the constructor of Document, which use the prefs to decide what kind of
properties we want to record. So, in the test, we have to reload iframe
to make sure we re-create the document, so does the use counter, to make
sure the prefs work properly.

The two prefs affect the css use counters:
1. layout.css.use-counters.enabled: Allocate use counters, and record
   non-custom properties.
2. layout.css.use-counters-unimplemented.enabled: Record all unimplmented
   properties into the use counters.

If we disable layout.css.use-counters.enblaed, we don't create use counters
object, so layout.css.use-counters-unimplemented.enabled doesn't work,
either.

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

--HG--
extra : moz-landing-system : lando
2019-08-29 23:40:13 +00:00
Cameron McCormack a1b17a4a25 Bug 1577389 - Return early from StyleCSSPixelLength::ToAppUnits for zero lengths. r=emilio
Zero lengths are common, and we can avoid doing all the FP math.

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

--HG--
extra : moz-landing-system : lando
2019-08-29 22:19:36 +00:00
Mats Palmgren e45d08541b Bug 1576821 - [css-lists-3] Make 'none' invalid as a <counter-style> in counter()/counters(). r=emilio
CSSWG resolution:
https://github.com/w3c/csswg-drafts/issues/4163#issuecomment-521331100

Spec:
https://drafts.csswg.org/css-lists-3/#counter-functions

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

--HG--
extra : moz-landing-system : lando
2019-08-30 00:15:37 +00:00
Joel Olsson 00e5276301 Bug 1565562: Media Query - Enable single <number> and <number>/<number> for <aspect-ratio>. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D41557

--HG--
extra : moz-landing-system : lando
2019-08-29 10:48:52 +00:00
Julian Descottes 5e92caeefc Bug 1575766 - Use chrome preferences for DevTools documents r=emilio
Depends on D43639

This will avoid applying High Contrast mode colors to devtools documents even when DevTools are loaded in a frame with type=content
This behavior can be disabled by setting devtools.toolbox.force-chrome-prefs to false

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

--HG--
extra : moz-landing-system : lando
2019-08-28 13:09:36 +00:00
Emilio Cobos Álvarez c17fdaaa27 Bug 1576703 - Update cbindgen. r=boris
This cleans up the pattern of "Use a private dtor so that the helper functions
do the right thing" by enabling it everywhere using:

  https://github.com/eqrion/cbindgen/pull/377

It also caught some uninitialized value issues.

I think they're mostly harmless since we zero-initialize our structs:

https://searchfox.org/mozilla-central/rev/325c1a707819602feff736f129cb36055ba6d94f/servo/components/style/properties/gecko.mako.rs#632

And since we override the clip rect, which is the other bit of code that was
failing to build with this change.

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

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

Depends on D43472

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

--HG--
extra : moz-landing-system : lando
2019-08-26 23:09:47 +00:00
Cameron McCormack 857c6ccf10 Bug 1533569 - Part 3: Increase shared memory size. r=jwatt
400 KiB is just too small for Android ARM64.

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

--HG--
extra : moz-landing-system : lando
2019-08-23 19:36:45 +00:00
Cameron McCormack df72efcbd0 Bug 1533569 - Part 1: Freeze UA sheet shared memory. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D36254

--HG--
extra : moz-landing-system : lando
2019-08-23 19:36:49 +00:00
Brad Werth 2ca2008ad6 Bug 1575097 Part 4: Make nsMediaFeatures::GetDeviceSize return unscaled browser sizes for RDM documents. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D42986

--HG--
extra : moz-landing-system : lando
2019-08-25 23:54:16 +00:00
Csoregi Natalia f5bd429ac1 Bug 1553971 - Skip crashtest 1545177.html on Android. r=jmaher
Reviewers: jmaher

Reviewed By: jmaher

Subscribers: emilio

Bug #: 1553971

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

--HG--
extra : rebase_source : 711da13e71cad8ae8aee19ff9605d18520b88930
extra : histedit_source : 02532a7b72fc43e947ab9eab593c23a0a34d6057
2019-08-25 20:29:51 +03:00
Emilio Cobos Álvarez f4fb9ab137 Bug 1576194 - Remove kDisplayKTable. r=mats
It doesn't represent anything useful anymore.

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

--HG--
extra : moz-landing-system : lando
2019-08-23 15:52:05 +00:00
Mats Palmgren a9c174c337 Bug 1572923 - Add default size for vertical range input ::-moz-range-track pseudo. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D43292

--HG--
extra : moz-landing-system : lando
2019-08-23 21:54:43 +00:00
Noemi Erli abea3666f6 Backed out 3 changesets (bug 1533569) for permafailing in text-decoration-color.html CLOSED TREE
Backed out changeset 70e4542f1434 (bug 1533569)
Backed out changeset 216edfe6b998 (bug 1533569)
Backed out changeset 43c411ccf445 (bug 1533569)
2019-08-23 22:31:41 +03:00
Emilio Cobos Álvarez 24fd3e3679 Bug 1481112 - Be consistent on which properties we allow to inherit through for input, textarea, button and select, for compat with other UAs. r=mats
There should be no change in behavior for <input> and <textarea>. Tests need to
be written for <button> and <select>.

Tests are at https://github.com/web-platform-tests/wpt/pull/17152

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

--HG--
extra : moz-landing-system : lando
2019-08-23 13:24:05 +00:00
Cameron McCormack 0cea34de7c Bug 1533569 - Part 3: Increase shared memory size. r=jwatt
400 KiB is just too small for Android ARM64.

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

--HG--
extra : moz-landing-system : lando
2019-08-23 02:33:14 +00:00
Cameron McCormack 1c2c3c17a9 Bug 1533569 - Part 1: Freeze UA sheet shared memory. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D36254

--HG--
extra : moz-landing-system : lando
2019-08-23 02:33:05 +00:00
Emilio Cobos Álvarez cf63cf46ad Bug 1572252 - Properly null-check a variable in debug-only code.
Differential Revision: https://phabricator.services.mozilla.com/D43054

--HG--
extra : moz-landing-system : lando
2019-08-22 13:05:44 +00:00
Emilio Cobos Álvarez dca2b09c76 Bug 1575713 - Use atoms for font-feature-values. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D42984

--HG--
extra : moz-landing-system : lando
2019-08-22 00:24:44 +00:00
Emilio Cobos Álvarez ba5c709666 Bug 1575608 - Simplify -x-span property. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D42914

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

--HG--
extra : moz-landing-system : lando
2019-08-21 19:47:53 +00:00
Emilio Cobos Álvarez 611e05f178 Bug 1575608 - Avoid some signed -> unsigned conversions for box-ordinal-group. r=dholbert
This is consistent with the `order` property anyhow, and allows to simplify some
code.

Negatives are still not parsed, but rust uses a similar representation for all
CSS <integer> values and so should C++.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 18:35:31 +00:00
Emilio Cobos Álvarez f11bf00012 Bug 1575559 - Make font-variant-alternates use cbindgen. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D42859

--HG--
extra : moz-landing-system : lando
2019-08-21 22:45:26 +00:00
Edgar Chen a3adabe5a7 Bug 1568950 - Part 5: Remove nsIDOMWindowUtils::forceUseCounterFlush; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D42818

--HG--
extra : moz-landing-system : lando
2019-08-21 12:52:19 +00:00
Mats Palmgren 13aaea78f8 Bug 1575560 - Make 'contain:size' not apply to inline-table boxes. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D42891

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

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

--HG--
extra : moz-landing-system : lando
2019-08-21 13:24:45 +00:00
Sylvestre Ledru 7759b614e2 Bug 1575249 - Ride along: remove +x permissions on source files r=Ehsan
Depends on D42672

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

--HG--
extra : moz-landing-system : lando
2019-08-21 09:57:03 +00:00
singuliere 2fc69f08bc Bug 1526447 - remove unused NS_STYLE_GRID_REPEAT_* macros r=boris
Remove unused NS_STYLE_GRID_REPEAT_* macro definitions.

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

--HG--
extra : moz-landing-system : lando
2019-08-20 17:53:16 +00:00
Mats Palmgren acbd6a2b96 Bug 1574994 part 2 - Remove display:-moz-inline-grid/-moz-inline-stack. r=emilio
Depends on D42551

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

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

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

--HG--
extra : moz-landing-system : lando
2019-08-19 21:19:04 +00:00
Emilio Cobos Álvarez f1008a9300 Bug 1480146 - Add memory reporting for the inline style cache. r=heycam
MANUAL PUSH: Splitting a stack after the fact to avoid getting the main patch backed out due to talos timeouts.

Differential Revision: https://phabricator.services.mozilla.com/D41731
2019-08-19 14:55:01 +02:00
Emilio Cobos Álvarez b726907ec7 Bug 1480146 - Add a cache for inline stylesheets without @import rules. r=heycam
Supporting @import was much more annoying (I had a patch but it became much more
complex than this), and seems other browsers don't do it either:

  https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/css/style_sheet_contents.cc?l=149&rcl=1999822baf4dc673088e65997fa07ad158f2e166
  https://trac.webkit.org/browser/webkit/trunk/Source/WebCore/css/StyleSheetContents.cpp?rev=246490#L111

Also added a singleton perf test for <link> caching.

Maybe we should add some cache eviction here, but I'm not sure what'd be the
best policy here.

Differential Revision: https://phabricator.services.mozilla.com/D41564
2019-08-19 14:53:50 +02:00
Ciure Andrei bf0253640d Backed out 2 changesets (bug 1480146) for causing inline-style-cache-1.html timeouts CLOSED TREE
Backed out changeset 8e3a8dd3189d (bug 1480146)
Backed out changeset 2bcd5ea241cd (bug 1480146)
2019-08-19 14:29:28 +03:00
Emilio Cobos Álvarez bc820a05a2 Bug 1480146 - Add memory reporting for the inline style cache. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D41731

--HG--
extra : moz-landing-system : lando
2019-08-17 03:13:20 +00:00
Emilio Cobos Álvarez 957c241479 Bug 1480146 - Add a cache for inline stylesheets without @import rules. r=heycam
Supporting @import was much more annoying (I had a patch but it became much more
complex than this), and seems other browsers don't do it either:

  https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/css/style_sheet_contents.cc?l=149&rcl=1999822baf4dc673088e65997fa07ad158f2e166
  https://trac.webkit.org/browser/webkit/trunk/Source/WebCore/css/StyleSheetContents.cpp?rev=246490#L111

Maybe we should add some cache eviction here, but I'm not sure what'd be the
best policy here.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 07:52:09 +00:00
Ciure Andrei 7a76528da4 Backed out 2 changesets (bug 1533569) for causing Android and Win AArch raptors to perma fail and automation.py tier 2 perma fails CLOSED TREE
Backed out changeset 9c5be5540874 (bug 1533569)
Backed out changeset 06da212d37f5 (bug 1533569)
2019-08-17 07:40:54 +03:00
Mihai Alexandru Michis 891d20f850 Backed out 2 changesets (bug 1480146) for causing talos perf reftest to timeout in link-style-cache-1.html
Backed out changeset ff3ba7a16c21 (bug 1480146)
Backed out changeset f47314ec33ff (bug 1480146)
2019-08-17 04:48:35 +03:00
Cameron McCormack 810131e403 Bug 1533569 - Part 1: Freeze UA sheet shared memory. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D36254

--HG--
extra : moz-landing-system : lando
2019-08-16 23:45:20 +00:00
Emilio Cobos Álvarez 479f277399 Bug 1480146 - Add memory reporting for the inline style cache. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D41731

--HG--
extra : moz-landing-system : lando
2019-08-16 10:56:25 +00:00
Emilio Cobos Álvarez c24f17aee9 Bug 1480146 - Add a cache for inline stylesheets without @import rules. r=heycam
Supporting @import was much more annoying (I had a patch but it became much more
complex than this), and seems other browsers don't do it either:

  https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/css/style_sheet_contents.cc?l=149&rcl=1999822baf4dc673088e65997fa07ad158f2e166
  https://trac.webkit.org/browser/webkit/trunk/Source/WebCore/css/StyleSheetContents.cpp?rev=246490#L111

Also added a singleton perf test for <link> caching.

Maybe we should add some cache eviction here, but I'm not sure what'd be the
best policy here.

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

--HG--
extra : moz-landing-system : lando
2019-08-16 10:56:23 +00:00
Emilio Cobos Álvarez a61410f8ae Bug 1571530 - Remove sheets from the <link> cache when they have been touched by CSS OM. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D41563

--HG--
extra : moz-landing-system : lando
2019-08-16 10:56:22 +00:00
Emilio Cobos Álvarez b9e6e577b3 Bug 1571530 - Move a bit of code around in Loader::LoadInlineSheet. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D41562

--HG--
extra : moz-landing-system : lando
2019-08-16 10:56:20 +00:00
Emilio Cobos Álvarez 86651be7e1 Bug 1571530 - Make PrepareSheet take a reference. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D41561

--HG--
extra : moz-landing-system : lando
2019-08-16 10:56:18 +00:00
Emilio Cobos Álvarez 919bb7ded3 Bug 1571530 - Cleanup slightly SheetComplete, and use the right boolean to notify. r=heycam
This is mostly straight-forward cleanup, but there's a behavior change which
was an oversight from bug 1386840, the regular mObservers stuff didn't pass the
right thing (was passing only mWasAlternate rather than whether it was
deferred).

I think that as a result, only in XML documents (since nsXMLContentSink is the
only thing that adds itself as a global CSS loader observer that ever looks at
this boolean), we may end up breaking this assert:

https://searchfox.org/mozilla-central/rev/9ae20497229225cb3fa729a787791f424ff8087b/dom/base/nsContentSink.cpp#183

(If there are any sheets with non-matching media queries and such).

But I couldn't find a test-case that broke it (tried SVG / XHTML), and in other
documents like pure XML you cannot specify a media query...

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

--HG--
extra : moz-landing-system : lando
2019-08-16 10:56:16 +00:00
Emilio Cobos Álvarez 36d3f1e1b9 Bug 1571530 - Cleanup confusing lifetime of SheetLoadData. r=heycam
Saving a refcount bump is not worth the churn. Use a proper RefPtr<>
everywhere instead of manual refcounting, and don't make DoSheetComplete call
NS_RELEASE unconditionally.

Also, make clear by using references where null is expected or not.

Also, properly use a RefPtr in mPendingDatas, since they are strong pointers,
in fact.

Finally, remove some unused macros from nsCSSValue of which this code was the
last consumer.

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

--HG--
extra : moz-landing-system : lando
2019-08-16 10:56:09 +00:00
Emilio Cobos Álvarez 588365a846 Bug 1571530 - Don't use nsBaseHashtable in the CSS loader. r=heycam
It's a refptr hashtable, really.

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

--HG--
extra : moz-landing-system : lando
2019-08-16 10:56:07 +00:00
Emilio Cobos Álvarez 6779b66f01 Bug 1571530 - Remove various bool arguments in sheet loader APIs. r=heycam
They're bad, specially if they do vastly different thing in overloaded
functions, like aUseSystemPrincipal and aIsPreload. :)

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

--HG--
extra : moz-landing-system : lando
2019-08-16 10:56:05 +00:00
Emilio Cobos Álvarez 2353359865 Bug 1571530 - Make Loader APIs return a Result. r=heycam
On the fence on this one, but I do think it's nicer.

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

--HG--
extra : moz-landing-system : lando
2019-08-16 10:56:03 +00:00
Emilio Cobos Álvarez 353176ffe4 Bug 1571530 - Move inline sheet creation somewhere else that isn't CreateSheet. r=heycam
It doesn't do much for them.

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

--HG--
extra : moz-landing-system : lando
2019-08-16 10:55:56 +00:00
Emilio Cobos Álvarez 70e10752be Bug 1571530 - Cleanup CreateSheet so that it returns its arguments rather than having outparams. r=heycam
Also, it's infallible, so no need to have an error state.

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

--HG--
extra : moz-landing-system : lando
2019-08-16 10:55:54 +00:00
Emilio Cobos Álvarez 6c780690be Bug 1571530 - Factor out the stylesheet cache bits. r=heycam
Just moving code around but hopefully the new code is nicer :)

Also fix a regression I introduced in D40691 where the parsing mode wouldn't be
checked for XUL sheets.

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

--HG--
extra : moz-landing-system : lando
2019-08-16 10:55:50 +00:00
Emilio Cobos Álvarez b8a075dada Bug 1554777 - Use SIZE_AVAILABLE rather than loaded to figure out whether to try to draw a border image. r=tnikkel
The current code needs to handle incomplete draws already due to async decoding,
and this prevents the race condition where we paint between the size-available
and load notifications, as the CSS image loader only invalidates for the first.

Once we try to decode the image at least once, then we'd repaint properly from
ImageLoader::OnFrameComplete.

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

--HG--
extra : moz-landing-system : lando
2019-08-15 19:03:06 +00:00
Emilio Cobos Álvarez 4b2cd8f291 Bug 1554777 - Call SchedulePaint() rather than MarkNeedsDisplayItemRebuild() when we get the size available notification for a style image. r=mattwoodrow,tnikkel
So the issue here is that this test-case has a zero-sized border, but still with
a border-image (which we should paint).

So the first time we get here, the image is not loaded, and thus we don't get
here:

  https://searchfox.org/mozilla-central/rev/e0b0c38ee83f99d3cf868bad525ace4a395039f1/layout/painting/nsDisplayList.h#4254

Which means that we end up with zero bounds and thus we don't even get to the
border painting code.

However, when the image loads, we get to MarkNeedsDisplayItemRebuild(), but that
doesn't schedule any paint, only marks the frames as modified in order for
display items to be rebuilt _eventually_.

Thus eventually, where we force a repaint by other means, we paint correctly.

This only works in more general cases because we get to the nsImageRenderer code
which does vastly different stuff.

InvalidateFrame() seems to do the right thing and schedule a paint, so use it.
It's not clear to me which one of nsIFrame::InvalidateFrame() or
nsIFrame::SchedulePaint() we should use...

If I understand correctly, InvalidateFrame() will only do something iff there
are display items for the frame, so that should make the IsVisible() check
redundant.

Note however that I think there's still a race condition, if we get to paint in
between the SIZE_AVAILABLE notification (the one where we actually invalidate
the display items), and the LOAD notification (the one the border-image code
checks).

I'll send a separate patch for that, I think SIZE_AVAILABLE should be a
strong-enough hint and that allows us to remove nsStyleImage::IsLoaded()...

The RequestReflow stuff also looks highly suspicious... shape-outside
sync-decodes, and it seems we could end up invalidating reflow from the reflow
code...

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

--HG--
extra : moz-landing-system : lando
2019-08-15 19:03:18 +00:00
Emilio Cobos Álvarez bb6b92b5f7 Bug 1574179 - Simplify <img align> rules in quirks.css. r=jfkthame
It seems to me that it should be equivalent, and we don't need to do
directionality-dependent stuff. align=right and align=left map to the physical
values anyway:

  https://searchfox.org/mozilla-central/rev/3366c3d24f1c3818df37ec0818833bf085e41a53/dom/html/nsGenericHTMLElement.cpp#1165

This also matches Chromium:

  https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/html/resources/quirks.css?l=26&rcl=e019448580f331c4c7c756271843d1bcf27e0071

(Modulo the case-insensitivity)

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

--HG--
extra : moz-landing-system : lando
2019-08-15 19:26:02 +00:00
Mats Palmgren 22f32f1001 Bug 1574107 - Remove nsIFrame::IsBlockInside since it's dead code. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D42088

--HG--
extra : moz-landing-system : lando
2019-08-16 06:29:59 +00:00
Daniel Holbert 0a772dbcbb Bug 1574310: clang-reformat the layout directory. (no review, just doing automated reformatting)
This patch is auto-generated by the following command:
./mach clang-format -p layout/

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

--HG--
extra : moz-landing-system : lando
2019-08-15 22:13:49 +00:00
Emilio Cobos Álvarez a27b5bf655 Bug 782551 - Remove two quirks that other browsers don't have. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D42148

--HG--
extra : moz-landing-system : lando
2019-08-15 15:57:42 +00:00
Emilio Cobos Álvarez c3325072d0 Bug 1567094 - Make GetVisitedDependentColor const-friendly. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D41934

--HG--
extra : moz-landing-system : lando
2019-08-15 03:01:01 +00:00
Emilio Cobos Álvarez 66c0a4fa9b Bug 1572246 - Make <link> always unvisited. r=bzbarsky
Intent email: https://groups.google.com/d/msg/mozilla.dev.platform/1NP6oJzK6zg/ftAz_TajAAAJ

For now do the obvious check rather than bigger refactorings, since we keep them
matching :link or not depending on whether they have an href.

I'll file an HTML spec issue about not making them traversable, and a MathML
issue about the craziness that it is that almost all MathML elements can be
links.

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

--HG--
extra : moz-landing-system : lando
2019-08-15 14:10:07 +00:00
Kristen Wright 61d69ccebf Bug 1573268 - remove the varcache definition for svg.transform-box.enabled. r=njn
svg.transform-box.enabled is already a static pref, so I removed the varcache definition of it in nsLayoutUtils.

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

--HG--
extra : moz-landing-system : lando
2019-08-14 00:17:04 +00:00
Mats Palmgren aa7733da8b Bug 1557825 part 2 - Add tests and update devtools for 'display:block ruby'. r=xidorn
Differential Revision: https://phabricator.services.mozilla.com/D40213

--HG--
extra : moz-landing-system : lando
2019-08-14 14:38:33 +00:00
Mats Palmgren c784db904f Bug 1557825 part 1 - Implement 'display:block ruby'. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D40211

--HG--
extra : moz-landing-system : lando
2019-08-14 14:38:31 +00:00
Mats Palmgren c766e6e2e9 Bug 1105868 part 5 - Add / update tests for inline list-item 'display' values. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D39834

--HG--
extra : moz-landing-system : lando
2019-08-14 14:37:23 +00:00
Mats Palmgren be3d9812c0 Bug 1105868 part 2 - Use nsStyleDisplay::DisplayInside() in a few places to prepare for inline list-items. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D39831

--HG--
extra : moz-landing-system : lando
2019-08-14 14:36:53 +00:00
Mats Palmgren 2b20df6bd7 Bug 1105868 part 1 - Use nsStyleDisplay::IsListItem() in a few places to prepare for inline list-items. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D39830

--HG--
extra : moz-landing-system : lando
2019-08-14 14:36:18 +00:00
Mats Palmgren 932139087b Bug 1038294 part 15 - Change a few existing nsStyleDisplay accessors to use DisplayInside()/DisplayOutside(). r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D39767

--HG--
extra : moz-landing-system : lando
2019-08-14 14:35:19 +00:00
Mats Palmgren ba4585f3e1 Bug 1038294 part 13 - Add a few accessors to query the parts of a 'display' value. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D39765

--HG--
extra : moz-landing-system : lando
2019-08-14 14:34:49 +00:00
Mats Palmgren 6b3058eeb5 Bug 1038294 part 12 - Implement multi-keyword 'display' values for Gecko. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D39764

--HG--
extra : moz-landing-system : lando
2019-08-14 14:34:37 +00:00
Mats Palmgren 09a19fcfea Bug 1038294 part 1 - Make nsCSSKTableEntry use uint16_t to represent the value. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D39753

--HG--
extra : moz-landing-system : lando
2019-08-14 14:31:34 +00:00
Nathan Froyd 87c432d06a Bug 1570982 - remove `CPP_THROW_NEW`; r=glandium
We always define it to the same thing, and we're inconsistent in whether
we use `CPP_THROW_NEW` or `throw()`, so we might as well just use the
standard C++ thing and get rid of some baggage.

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

--HG--
extra : moz-landing-system : lando
2019-08-14 01:32:41 +00:00
Nathan Froyd 9f2e644abd Bug 1573734 - prefer atomic_thread_fence in StyleArcInner::DecrementRef; r=emilio
This change is motivated by `atomic::load` being `nodiscard` on Windows
and `atomic_thread_fence` being closer to what `Arc::drop` and
`ThreadSafeAutoRefCnt` does.  We keep the `MOZ_TSAN` refinement of
`ThreadSafeAutoRefCnt` as well.

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

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

--HG--
extra : moz-landing-system : lando
2019-08-13 22:02:57 +00:00
Charlie Marlow 693746ef3d Bug 1558929: adding from-font support to text-underline-offset and text-decoration-thickness r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D41476

--HG--
extra : moz-landing-system : lando
2019-08-13 17:43:25 +00:00
Emilio Cobos Álvarez 70c89405ba Bug 1571530 - Trivially cleanup a condition. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D41089

--HG--
extra : moz-landing-system : lando
2019-08-13 09:16:33 +00:00
Emilio Cobos Álvarez d1d4f54714 Bug 1571530 - Make the parsing mode part of the cache key. r=heycam
Rather than checking after-the fact and dropping the cached result on the floor.

Depends on D40690

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

--HG--
extra : moz-landing-system : lando
2019-08-13 09:06:09 +00:00
Emilio Cobos Álvarez 30b487ccad Bug 1571530 - Move SheetLoadData out of line too. r=heycam
Now that Sheets is out of line this can move to the cpp file too.

Depends on D40689

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

--HG--
extra : moz-landing-system : lando
2019-08-13 09:05:59 +00:00
Emilio Cobos Álvarez dea1e66fa8 Bug 1571530 - Cleanup initialization and usage of Loader::mSyncCallback. r=heycam
Little pet peeve o' mine.

Depends on D40687

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

--HG--
extra : moz-landing-system : lando
2019-08-13 05:12:28 +00:00
Emilio Cobos Álvarez 8abfa9f557 Bug 1571530 - Move Loader::Sheets out of line. r=heycam
I'm going to tweak it a bit.

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

--HG--
extra : moz-landing-system : lando
2019-08-13 05:08:50 +00:00
Sylvestre Ledru 645f2d5773 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-08-13 07:15:25 +00:00
Csoregi Natalia 3edad1f4b7 Merge mozilla-central to autoland. CLOSED TREE 2019-08-11 00:36:21 +03:00
Csoregi Natalia 6d04491407 Merge inbound to mozilla-central. a=merge 2019-08-11 00:28:20 +03:00
Emilio Cobos Álvarez 6068035edc Bug 1572805 - Use cbindgen for text-emphasis-style. r=boris
I sent https://github.com/eqrion/cbindgen/pull/377 since I got sick of
copy-pasting the private default constructor stuff :)

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

--HG--
extra : moz-landing-system : lando
2019-08-10 18:11:31 +00:00
Joel Olsson aa7bc8f357 Bug 1553545 - Enable font-size:xxx-large. r=emilio
MANUAL PUSH: Manually fixed up contributor's patch stack to squash the two patches in the bug.

Differential Revision: https://phabricator.services.mozilla.com/D41240
2019-08-10 18:32:33 +02:00
Cosmin Sabou 7a5022a31f Merge mozilla-inbound to mozilla-central. a=merge 2019-08-10 00:57:59 +03:00
Emilio Cobos Álvarez 31c098f33b Bug 1571530 - Don't uselessly check for OOM in Loader::PostLoadEvent. r=heycam
MANUAL PUSH: This part of the stack is independent and has been reviewed sooner, so can land now.

Differential Revision: https://phabricator.services.mozilla.com/D40849
2019-08-09 13:17:42 +02:00
Emilio Cobos Álvarez ca91e4cc05 Bug 1571530 - Cleanup a bit PreloadedStyleSheet construction. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D40848
2019-08-09 13:17:12 +02:00
Charlie Marlow ab6f4c453d Bug 1572303: updating text-underline-offset to support ::first-line/first-letter/placeholder r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D41227

--HG--
extra : moz-landing-system : lando
2019-08-09 04:58:10 +00:00
Daniel Varga 3430859a68 Backed out 2 changesets (bug 1572805) for build-rusttests failure. On a CLOSED TREE
Backed out changeset 849ca4b3f9de (bug 1572805)
Backed out changeset 81b56d76505a (bug 1572805)
2019-08-10 21:07:03 +03:00
Emilio Cobos Álvarez ccd8c3bedc Bug 1572805 - Use cbindgen for text-emphasis-style. r=boris
I sent https://github.com/eqrion/cbindgen/pull/377 since I got sick of
copy-pasting the private default constructor stuff :)

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

--HG--
extra : moz-landing-system : lando
2019-08-10 16:21:15 +00:00
Cosmin Sabou 58ff25cbdb Merge mozilla-central to autoland. CLOSED TREE 2019-08-10 01:11:17 +03:00
Emilio Cobos Álvarez 56df9575bc Bug 1499000 - Don't do CORS checks on CSS images with the resource:// scheme. r=bzbarsky
CORS only works on http channels, so anything else that tries to do a
CORS-enabled request fails catastrophically.

resource:// images are useful for extension developers, so don't perform CORS
checks on them. We may want to also do file:// and fix bug 1565509, while at it,
if we consider it's causing developer pain.

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

--HG--
extra : moz-landing-system : lando
2019-08-09 18:09:55 +00:00
Nicholas Nethercote 4ee7b811de Bug 1563555 - Don't bindgen static prefs. r=emilio
Bindgen is no longer necessary now that Rust bindings are generated by
generate_static_pref_list.py.

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

--HG--
extra : moz-landing-system : lando
2019-08-08 21:33:15 +00:00
Charlie Marlow b469e3daed Bug 1572304: updating text-decoration-skip-ink to support ::first-line/first-letter/placeholder r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D41228

--HG--
extra : moz-landing-system : lando
2019-08-08 18:44:03 +00:00
Jared Wein c4dc4bec25 Bug 1571567 - Fix no-fallthrough errors in /layout. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D40876

--HG--
extra : moz-landing-system : lando
2019-08-08 15:18:39 +00:00
Bogdan Tara 844afcfb06 Backed out 10 changesets (bug 1571567) complementary backout after es lint failure on the patch CLOSED TREE
Backed out changeset ce83fa75ae32 (bug 1571567)
Backed out changeset 7aa97ba7cce9 (bug 1571567)
Backed out changeset 777d79076e99 (bug 1571567)
Backed out changeset fbdf6b75a484 (bug 1571567)
Backed out changeset e2ed4620f232 (bug 1571567)
Backed out changeset 2c67015f12c6 (bug 1571567)
Backed out changeset 7ec086bb5bd5 (bug 1571567)
Backed out changeset 42df735c8556 (bug 1571567)
Backed out changeset 7d5fc57b2809 (bug 1571567)
Backed out changeset 606bafb8211c (bug 1571567)
2019-08-08 18:13:54 +03:00
Jared Wein 90040ef5e2 Bug 1571567 - Fix no-fallthrough errors in /layout. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D40876

--HG--
extra : moz-landing-system : lando
2019-08-08 01:38:51 +00:00
Emilio Cobos Álvarez 03209c7dd2 Bug 1569078 - Back out changeset 97e691afc504c62ba2295bb3e9c3d33204b15d60 (bug 1456052) for causing this bug.
MANUAL PUSH: Backout
2019-08-09 13:06:40 +02:00
Tom Schuster 0e913c22c4 Bug 1558915 - Use infallible nsIURI::SchemeIs in various places r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D40677

--HG--
extra : moz-landing-system : lando
2019-08-07 19:49:40 +00:00
Charlie Marlow be2d349416 Bug 1555865: added text-decoration-thickness to the text-decoration shorthands r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D40335

--HG--
extra : moz-landing-system : lando
2019-08-07 17:42:15 +00:00
Emilio Cobos Álvarez af948d7634 Bug 1572114 - Don't bother blocking onload for already-complete shape images. r=bradwerth
That way we don't need to re-request a reflow. This code can run from reflow
itself, so requesting a reflow from here can break invariants.

There's the question of whether this code should be running at all for
continuations, but this patch fixes a bug regardless of whether we do that or
not.

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

--HG--
extra : moz-landing-system : lando
2019-08-07 17:17:05 +00:00
Cosmin Sabou c3430326e6 Backed out changeset ca88862d6b63 (bug 1558915) for causing build bustages on StartupCacheUtils. CLOSED TREE 2019-08-07 13:20:32 +03:00
Tom Schuster 8bc1f5ada8 Bug 1558915 - Use infallible nsIURI::SchemeIs in various places r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D40677

--HG--
extra : moz-landing-system : lando
2019-08-07 09:36:56 +00:00
Cosmin Sabou 9453cf60bf Backed out 2 changesets (bug 1563555) for causing marionette failures on test_profile_management.py.
Backed out changeset 2559f5ddf8e0 (bug 1563555)
Backed out changeset e3c86ffa168c (bug 1563555)

--HG--
extra : histedit_source : 8569cceff2845f697109e2077a00c96074c7fe83
2019-08-07 12:09:13 +03:00
Nicholas Nethercote d5bd89d9a0 Bug 1563555 - Don't bindgen static prefs. r=emilio
Bindgen is no longer necessary now that Rust bindings are generated by
generate_static_pref_list.py.

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

--HG--
extra : moz-landing-system : lando
2019-08-07 04:17:22 +00:00
Razvan Maries eedbf1137f Backed out changeset b197ca57677a (bug 1558915) for build bustages. CLOSED TREE 2019-08-07 01:04:43 +03:00
Boris Chiou e158ad1169 Bug 1339672 - Support multiple track sizes for grid-auto-{columns|rows}. r=emilio,mats
Support `<track-size>+` on the implicit track sizing properties,
grid-auto-columns and grid-auto-rows.

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

--HG--
extra : moz-landing-system : lando
2019-08-06 18:32:16 +00:00
Tom Schuster 03c7998ef2 Bug 1558915 - Use infallible nsIURI::SchemeIs in various places r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D40677

--HG--
extra : moz-landing-system : lando
2019-08-06 20:19:41 +00:00
Gurzau Raul b882212938 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-08-06 01:04:53 +03:00
Emilio Cobos Álvarez 30fc8c8c4d Bug 1519958 - Improve stack size of grid templates and re-enable style struct size assertions disabled in the previous patch. r=boris
This re-enables the assertion which was disabled on the previous patch by doing
a bit of boxing around.

Differential Revision: https://phabricator.services.mozilla.com/D36599
2019-08-05 22:13:33 +02:00
Emilio Cobos Álvarez 1f3d6c04f2 Bug 1519958 - Refactor grid types to preserve repeat() at computed value time and use cbindgen. r=mats,boris
I'm _really_ sorry for the size of the patch. I tried to do this in two steps
but it was a lot of work and pretty ugly.

This patch makes us use cbindgen for grid-template-{rows,columns}, in order to:

 * Make us preserve repeat() at computed-value time. This is per spec since
   interpolation needs to know about repeat(). Except for subgrid, which did the
   repeat expansion at parse-time and was a bit more annoying (plus it doesn't
   really animate yet so we don't need it to comply with the spec).

 * Tweaks the WPT tests for interpolation to adopt the resolution at:
   https://github.com/w3c/csswg-drafts/issues/3503.

Trade-off here, as this patch stands, is that this change makes us use less
long-living memory, since we expand repeat() during layout, but at the cost of a
bit of CPU time during layout (conditional on the property applying though,
which wasn't the case before). It should be very easy to store a cached version
of the template, should this be too hot (I expect it isn't), or to change the
representation in other ways to optimize grid layout code if it's worth it.

Another trade-off: I've used SmallPointerArray to handle line-name merging,
pointing to the individual arrays in the style data, rather than actually
heap-allocating the merged lists. This would also be pretty easy to change
should we measure and see that it's not worth it.

This patch also opens the gate to potentially improving memory usage in some
other ways, by reference-counting line-name lists for example, though I don't
have data that suggests it is worth it.

In general, this patch makes much easier to tweak the internal representation of
the grid style data structures. Overall, I think it's a win, the amount of magic
going on in that mako code was a bit huge; it took a bit to wrap my head around
it.

This patch comments out the style struct size assertions. They will be
uncommented in a follow-up patch which contains some improvements for this type,
which are worth getting reviewed separately.

Also, this patch doesn't remove as much code as I would've hoped for because of
I tried not to change most of the dom/grid code for inspector, but I think a
fair bit of the nsGridContainerFrame.cpp code that collects information for it
can be simplified / de-copy-pasted to some extent. But that was a pre-existing
problem and this patch is already quite massive.

Differential Revision: https://phabricator.services.mozilla.com/D36598
2019-08-05 22:13:21 +02:00
Emilio Cobos Álvarez b4ac7dbf3f No bug - Improve CSS loader logging. 2019-08-05 10:58:56 +02:00
Emilio Cobos Álvarez 09da414857 Bug 1404140 - followup: Avoid busting GCC base toolchain jobs which warn about a debug-only variable. 2019-08-03 04:51:42 +02:00
Emilio Cobos Álvarez 0f118f30e5 Bug 1404140 - Remove the GetCSNeedsLayoutFlush flag, as it is unneeded now. r=heycam
MANUAL PUSH: Would need to reorder the stack manually (https://bugzilla.mozilla.org/show_bug.cgi?id=1481539)

Differential Revision: https://phabricator.services.mozilla.com/D40300
2019-08-03 04:10:55 +02:00
Emilio Cobos Álvarez b38e7248ab Bug 1404140 - Don't flush layout for layout-dependent properties if we know that it won't affect the result. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D40299
2019-08-03 04:09:13 +02:00
Emilio Cobos Álvarez b509090178 Bug 1404140 - Refactor nsComputedDOMStyle::UpdateCurrentStyleSources so that it happens in two flushes, not one. r=heycam
We still don't optimize out the second based on the results of the first, but I
plan to do that in a bit. That's what this bug is about anyway.

Differential Revision: https://phabricator.services.mozilla.com/D40298
2019-08-03 04:05:35 +02:00
Emilio Cobos Álvarez ac6ac81c6f Bug 1404140 - Return early when trying to flush to get the style of a disconnected element. r=heycam
We just don't return a styles for them anyway, and this simplifies the following
patches a bit.

Differential Revision: https://phabricator.services.mozilla.com/D40297
2019-08-03 04:05:34 +02:00
Emilio Cobos Álvarez d53b9edd1d Bug 1404140 - Factor out getting the outer and inner frame. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D40296
2019-08-03 04:05:34 +02:00
Emilio Cobos Álvarez 61e965dfe9 Bug 1404140 - Rename nsComputedDOMStyle::NeedsToFlush to NeedsToFlushStyle. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D40295
2019-08-03 04:05:33 +02:00
Emilio Cobos Álvarez 405bc1b7e9 Bug 1404140 - Cleanup initialization of nsComputedDOMStyle::mFlushedPendingReflows. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D40294
2019-08-03 04:05:32 +02:00
Emilio Cobos Álvarez 12cc4ad0c8 Bug 1404140 - Fix non-unified build bustage in nsComputedDOMStyle.cpp r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D40293
2019-08-03 04:05:31 +02:00
Boris Chiou f7b833b7ce Bug 1559231 - Make offset-anchor animatable. r=birtles
Per the spec issue, https://github.com/w3c/csswg-drafts/issues/3482,
we update the wpt to keep the percentage in `calc()` for `offset-anchor`.

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

--HG--
extra : moz-landing-system : lando
2019-08-02 20:12:40 +00:00
Boris Chiou b91b90c199 Bug 1559231 - Support offset-anchor. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D39432

--HG--
extra : moz-landing-system : lando
2019-08-02 20:12:38 +00:00
Edwin Gao 7e8510c1ae Bug 1559975 - convert layout/style to python3 r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D35699

--HG--
extra : moz-landing-system : lando
2019-08-02 19:46:12 +00:00
Brindusan Cristian 0b3e26149c Backed out 2 changesets (bug 1559231) for rusttests build bustages. CLOSED TREE
Backed out changeset d47d9f4bf9a9 (bug 1559231)
Backed out changeset 50f92d01c47a (bug 1559231)
2019-08-02 21:55:37 +03:00
Boris Chiou 4dbc9ab7ef Bug 1559231 - Make offset-anchor animatable. r=birtles
Per the spec issue, https://github.com/w3c/csswg-drafts/issues/3482,
we update the wpt to keep the percentage in `calc()` for `offset-anchor`.

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

--HG--
extra : moz-landing-system : lando
2019-08-02 00:47:09 +00:00
Boris Chiou 9463547bb3 Bug 1559231 - Support offset-anchor. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D39432

--HG--
extra : moz-landing-system : lando
2019-08-02 00:43:11 +00:00
Boris Chiou c4f468de6a Bug 1569795 - Block compositor animations of transform-like properties if offset-path is not none. r=hiro
The animations of motion path are not running on the compositor, and the
properties in [motion-1] is not part of transform-like properties (i.e.
nsCSSProperties::TransformLikeProperties()) for now, so we should run
transform animations on the main thread if offset-path is not `none`.

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

--HG--
extra : moz-landing-system : lando
2019-08-01 21:22:49 +00:00
Emilio Cobos Álvarez 0548a84746 Bug 1570721 - Add an API to nsPresContext to override the `prefers-color-scheme` value. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D40248
2019-08-02 15:18:27 +02:00