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

64394 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez 2116f48b14 Bug 1465502: Remove write-only NS_FRAME_MAY_HAVE_GENERATED_CONTENT. r=mats
It's write-only, and I'd love to use it for other purposes :)

MozReview-Commit-ID: KpXNp72TcDb

--HG--
extra : rebase_source : 0bc1b00e69eb58b5ae5fe4ea9ec0b3b0970beb6c
2018-05-30 17:09:28 +02:00
Csoregi Natalia 83a923ef7a Merge inbound to mozilla-central. a=merge 2018-05-30 12:25:03 +03:00
Boris Zbarsky 9748db120d Bug 1455676 part 8. Remove nsIDOMNode usage from layout/. r=qdot 2018-05-29 22:58:48 -04:00
Boris Zbarsky 54fad5efa0 Bug 1455676 part 7. Remove nsIDOMNode usage from layout/inspector/. r=qdot 2018-05-29 22:58:48 -04:00
Boris Zbarsky 0a370c0291 Bug 1455676 part 6. Remove nsIDOMNode usage from docshell/. r=qdot 2018-05-29 22:58:48 -04:00
Boris Zbarsky 6213894581 Bug 1455676 part 3. Remove nsIDOMNode usage from widget/. r=qdot 2018-05-29 22:58:48 -04:00
Ryan VanderMeulen 10a51f7f4b No bug - Re-alphabetize layout/base/crashtests/crashtests.list. r=thejanitor
--HG--
extra : rebase_source : c47c27c3e4a832bb2758be223886e275f88accd9
2018-05-29 22:39:08 -04:00
Matt Woodrow 7b491cdc52 Bug 1463940 - Invalidate display items when we add a caption to a table, since it can change the ordering of the content. r=mstange
MozReview-Commit-ID: HQewY2vNEJm

--HG--
extra : rebase_source : a73616f7f598f08d20e6965fba1f2f0838286533
2018-05-24 16:54:50 +12:00
Noemi Erli 846f00f83f Merge inbound to mozilla-central. a=merge 2018-05-30 00:41:41 +03:00
Joel Maher bea2e0899f Bug 1392106 - random-if many more win7 tests. r=RyanVM 2018-05-29 13:50:33 -04:00
Brian Birtles 53285a5e34 Bug 1460234 - Calculate the position in a keyframe segment using double precision; r=hiro
The added test fails without the code changes in this patch.

MozReview-Commit-ID: HXPaxLu1osC

--HG--
extra : rebase_source : 591d3efe3ae99fa22ec99af37657a2eec302ad3e
2018-05-29 12:54:19 +09:00
Cameron McCormack 43d697cf92 Bug 1464967 - Part 2: Fix nsReflowStatus dumping when REALLY_NOISY_REFLOW is defined. r=gerald
MozReview-Commit-ID: JPN7i5z5IeX

--HG--
extra : rebase_source : a9642d4cf38f0b94678ab8661bd204c53a397c39
2018-05-29 14:08:01 +10:00
Cameron McCormack b3a4b80968 Bug 1464967 - Part 1: Make nsLineBox::BreakTypeToString static. r=gerald
MozReview-Commit-ID: L97yf6oCXlq

--HG--
extra : rebase_source : 6cc25d93ff8c8d446f63e90c93b8bc01aff59b66
2018-05-29 14:06:50 +10:00
Hiroyuki Ikezoe 2ef0eac0e3 Bug 1464647 - Implement the smarter interporation for transform. r=birtles,emilio
Corresponding to this spec change;
32812668df

The expected value in test_transitions_per_property.html can be calculated;

  'start' + ('end' - 'start') * 0.25

MozReview-Commit-ID: NI9gOUuPnG

--HG--
extra : rebase_source : 2eff1fee211a7f4a9be0593b3fae6816f91a3831
2018-05-29 12:33:16 +09:00
Cameron McCormack a696043ad2 Bug 1464947 - Fix ReflowInput::DisplayInitFrameTypeExit display type logging. r=gerald
MozReview-Commit-ID: 4xPXJkys1so

--HG--
extra : rebase_source : 06f7a1e3450b88a9502ed274384330289596184a
2018-05-29 12:39:22 +10:00
Gerald Squelart 49bbea11e3 Bug 1457373 - Remove text-combine-upright digits option - r=xidorn
MozReview-Commit-ID: Ehzsd2rmBER

--HG--
extra : rebase_source : 15e109be686e2b849a4676ad89a1b06bc4fe9687
2018-05-17 15:29:17 +10:00
Ciure Andrei 2f9a3d61e9 Merge inbound to mozilla-central. a=merge 2018-05-29 00:53:52 +03:00
Emilio Cobos Álvarez 54c29475e9 Bug 1464428: Optimize QuerySelector in shadow trees. r=xidorn
Pretty much the same setup we have for document.

We have the awkwardness of having to check containing shadow manually for
ShadowRoot because it's not available in TNode (and making it available added a
bit more complexity that wasn't worth it IMO).

MozReview-Commit-ID: CqOh0sLHf6o
2018-05-28 14:30:34 +02:00
arthur.iakab 436cd55b31 Backed out changeset 8fb0fa2dca36 (bug 1464428) for Reftest crashes on a CLOSED TREE
--HG--
extra : amend_source : 023931e140119e040f5ca1c5b24bc4def5b0c215
2018-05-28 13:17:34 +03:00
Dorel Luca def68fde1d Merge mozilla-central to mozilla-inbound 2018-05-28 11:57:33 +03:00
Dorel Luca c581ba2f76 Merge mozilla-inbound to mozilla-central. a=merge 2018-05-28 11:46:41 +03:00
Emilio Cobos Álvarez 6bd746e8d9 Bug 1464060: Unify DoGetStyle* implementations. r=xidorn
Both branches are equal now.

MozReview-Commit-ID: 2XmYvGC0ETx
2018-05-28 10:40:32 +02:00
Emilio Cobos Álvarez 3f97dd5cab Bug 1464060: Make the general setup for computed style bits nicer. r=xidorn
This patch:

 * Makes StyleStructID an enum class, and moves it to the mozilla namespaces.

 * Introduces StyleStructConstants with some constants scattered through the
   codebase.

 * Makes the computed style bits an enum class, and splits mPseudoType and mBits
   into their own members, since we were using a uint64_t when we have only a
   couple flags and CSSPseudoElementType is a byte. We statically assert that
   the number of style structs is less or equal to 32.

 * Makes mPseudoTag, mPseudoType and mBits const, since we don't want them to be
   mutated from C++, and we still need a few more refactorings (mostly getting
   rid of FinishStyle) to avoid mutating ComputedStyle instead.

MozReview-Commit-ID: 7qsTtASGcYB
2018-05-28 10:40:00 +02:00
Emilio Cobos Álvarez de6fa5fd09 Bug 1464060: Remove some unused templating and arguments. r=xidorn
Also don't rely on 'using namespace mozilla' in the cpp files that include
nsStyleStructInlines.h.

MozReview-Commit-ID: DLZiMpSzIFn
2018-05-28 10:40:00 +02:00
Emilio Cobos Álvarez dc60d6f0c2 Bug 1464060: Remove a bunch of unused style bits. r=xidorn
MozReview-Commit-ID: FLACqfSHfSO
2018-05-28 10:17:11 +02:00
Emilio Cobos Álvarez 2fe6f39529 Bug 1464428: Optimize QuerySelector in shadow trees. r=xidorn
Pretty much the same setup we have for document.

We have the awkwardness of having to check containing shadow manually for
ShadowRoot because it's not available in TNode (and making it available added a
bit more complexity that wasn't worth it IMO).

MozReview-Commit-ID: CqOh0sLHf6o
2018-05-28 10:08:35 +02:00
Matt Woodrow 636753b307 Bug 1436505. r=mats, a=abillings
--HG--
extra : rebase_source : 9f91c91eb1061577148e1880dc4dc5655f7b099a
2018-05-28 12:42:54 +12:00
Emilio Cobos Álvarez 14326e571a Backed out changeset d48abd83fc7c (bug 1463884) since it's not the correct fix. r=me
If the font enumeration thread runs during the Servo traversal, it'd end up
thinking it _is_ (incorrectly) a Servo thread.
2018-05-27 10:04:27 +02:00
Daniel Holbert 732182f0c9 Bug 1461446: Make flex layout explicitly handle integer overflow when summing up flex item hypothetical sizes. r=mats
This patch accomodates for the unfortunate fact that elements with
"table-layout:fixed" have a max-content size of nscoord_MAX (infinity,
effectively), which turns out to be an easy source of integer overflow during
flex layout.

Before this patch, a flex container with "table-layout:fixed" in several flex
items could end up triggering integer-overflow & making the wrong judgement on
its arithmetic to determine...
 - whether a given flex item will fit on an existing flex line.
 - whether we've got positive free space and need to grow our items, or have
   negative free space and need to shrink our items.

This patch makes two changes to fix this issue.

(1) This patch makes us use CheckedInt when summing up flex item hypothetical
    sizes, which prevents integer overflow from flipping the sign of our line's
    total length.

(2) This patch makes us *directly* track the space reserved for flex item
    margin/border/padding within a flex line.  Previously, we tracked this
    implicitly as the difference between two other quantities that we stored;
    but with the other changes in this patch, those two other quantities can
    *both* trigger overflow and get clamped, which would make us lose track of
    how much space to reserve for margin/border/padding.  So now we simply
    track that space-to-reserve directly.

MozReview-Commit-ID: 9izhOnlS4F1

--HG--
extra : rebase_source : 185f2409dcb2f9c5bd0a2466a8e2233d7db3250a
2018-05-25 19:46:29 -07:00
Yusuf Sermet ebb3ebe1db Bug 1463599 - Create a stacking context for contain:paint. r=mattwoodrow
MozReview-Commit-ID: Ln72MOlHXwi

--HG--
extra : rebase_source : ec6bd5d3de4635acd2e2d0dcd2222232524d9459
2018-05-28 23:54:01 -07:00
Peter Van der Beken 2de39f46d8 Bug 1146316 - Leak fix, set up CC in XPCShell too. r=smaug.
XPCShell allows interaction with object that are cycle collected, but we never run the
cycle collector in it. In XPCShell we don't call nsJSContext::EnsureStatics.
nsJSContext::EnsureStatics is responsible for setting DOMGCSliceCallback as a GC callback,
which we need for running the cycle collector.

--HG--
extra : rebase_source : 5f12c15dabf3b23d9e4b1d8d88920e476d2d4bd6
2018-05-08 17:07:33 +02:00
Emilio Cobos Álvarez 5dd86ab547 Bug 1464589: Split nsCSSGradientRenderer::Create in smaller functions. r=rhunt
In particular, split the computation of the resolved stops into its own
function, and inside of it, the switch computing the specified length of a
gradient too, since in bug 1352643 there'll be two of those.

MozReview-Commit-ID: FSYzzAxNBbV

--HG--
extra : rebase_source : 9b3a0dc89c5c107adfa9a5e3743a709d3cac240c
2018-05-26 15:20:41 +02:00
Matt Woodrow 9d671dd140 Bug 1464641 - Make sure we mark the out of flow frame as modified when we modify the placeholder. r=miko
MozReview-Commit-ID: L44fXMOpURM

--HG--
extra : rebase_source : 6ab8d22607dc136f25b5d29db4d9c83f9fee2f17
2018-05-29 10:10:59 +12:00
Timothy Guan-tin Chien b355943072 Bug 1464412 - Flip vertical resizers on rtl sites r=dao
MozReview-Commit-ID: E0ejPUUCJiJ

--HG--
rename : layout/reftests/forms/textarea/resize-rtl.html => layout/reftests/forms/textarea/resize-rtl-vertical.html
rename : layout/reftests/forms/textarea/resize.html => layout/reftests/forms/textarea/resize-vertical.html
extra : rebase_source : 2e8b3492826ed05d2471f7aab25d371140039182
2018-05-26 10:18:19 +08:00
Emilio Cobos Álvarez 30535df923 Bug 1464813: Remove eDontReparentFrames, since it's not used. r=mats
We only set lazilySetParentPointer on the first reflow, then only call
DrainSelfOverflowListInternal on non-first reflows.

MozReview-Commit-ID: 364IwDoPE3W

--HG--
extra : rebase_source : 6551f2a3bbe080582de525f4c095bc60868c1a49
2018-05-28 13:49:35 +02:00
Kartikaya Gupta 8e203673f1 Bug 1463416 - use new WR subpixel positioning API from WR PR 2738. r=Gankro
Patch originally developed on bug 1458921 but needs to land with the WR update.

MozReview-Commit-ID: 82BYyNWBAfn

--HG--
extra : rebase_source : e6bca2f446c019fd41a37c2c28db73bbe1cfc216
2018-05-26 11:09:21 -04:00
Kartikaya Gupta 0459fe2789 Bug 1463416 - Update reftest annotations for changes in WR PR 2767. r=Gankro
MozReview-Commit-ID: AL7QaRu39G3

--HG--
extra : rebase_source : 1fb0b7b970fbffb18125830fad474b75cf207df1
2018-05-26 11:09:21 -04:00
Dorel Luca 85cded7237 Merge mozilla-central to autoland 2018-05-28 11:52:18 +03:00
Emilio Cobos Álvarez 72476926ed Bug 1463386: Remove eCSSUnit_Image. r=heycam
MozReview-Commit-ID: 9OX6iW7Lr5Q

--HG--
extra : rebase_source : 07dad9bfab62b24668737751386567359806d07d
2018-05-22 13:34:17 +02:00
Emilio Cobos Álvarez b6d8737188 Bug 1463386: Remove dead nsStyleImageRequest constructor. r=heycam
MozReview-Commit-ID: 3mF3PPQbS5O

--HG--
extra : rebase_source : cfa68ed71cba86f644ac1592b4b8ba1f442b20a8
2018-05-22 13:02:55 +02:00
Matt Woodrow c868a9a37d Bug 1464288 - Make sure PreProcessDisplayLists logic for switching AGRs matches what ComputeRebuildRegion uses. r=miko
MozReview-Commit-ID: F6N0XLCpuEe

--HG--
extra : rebase_source : b706ded33ac5baf6433c99af8cacb62ebcf1e753
2018-05-26 16:55:17 +12:00
Jonathan Kew 2c8d1fd244 Bug 1463884 - patch 2 - Make gfxFcPlatformFontList::TryLangForGroup safe for off-main-thread use. r=emilio 2018-05-25 21:18:55 +01:00
Daniel Zielas 6e81464d99 Bug 1455182 - Additional cleanup to nsDisplayOwnLayer and ScrollbarData. r=botond
--HG--
extra : rebase_source : d0dd9840dab41e6a2dbd3427fafbf03b741441a1
2018-05-25 07:20:39 +02:00
Chris AtLee 6ced44821e Bug 1237182: Fix python unitests r=bustage on a CLOSED TREE
--HG--
extra : rebase_source : 1e118ab5aed8251dfff28f6c3c4f885e1de24a04
extra : histedit_source : 635a7aa2a4fb47ff1b3b28f0ce099948d6f1101a
2018-05-25 13:42:58 -04:00
Dorel Luca 847485b23e Backed out changeset f65b3816a198 (bug 1451973) for tps failure on multiple files. CLOSED TREE 2018-05-25 21:17:01 +03:00
Coroiu Cristina c032f38419 Merge mozilla-central to inbound a=merge on a CLOSED TREE 2018-05-25 20:58:44 +03:00
Coroiu Cristina 19e81b8d28 Merge inbound to mozilla-central a=merge 2018-05-25 20:51:27 +03:00
Coroiu Cristina 6ea42bbe36 Backed out changeset 5033de939b8c (bug 1464288) for failing reftests at reftest/tests/layout/reftests/display-list/1464288-1.htm a=backout 2018-05-25 20:42:33 +03:00
Joel Maher 29d83f200e Bug 1392106 - random-if many more tests on win7. r=RyanVM 2018-05-25 13:03:59 -04:00
Matt Woodrow 6fdf0741d7 Bug 1464288 - Make sure PreProcessDisplayLists logic for switching AGRs matches what ComputeRebuildRegion uses. r=miko
MozReview-Commit-ID: Ht11ul21PRO

--HG--
extra : rebase_source : 3bb7b0128f3932142b518490cef3ba814245b5d6
2018-05-25 16:21:18 +12:00