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

59640 Коммитов

Автор SHA1 Сообщение Дата
Xidorn Quan 58eb5ce434 Bug 1393189 part 6 - Add crashtest for this bug. r=heycam
MozReview-Commit-ID: 1DbP4Hs7tc2

--HG--
extra : rebase_source : 64e9c5bd849fc2f8be2b30829baa76f44f699d47
2017-08-29 17:13:34 +10:00
Xidorn Quan f3c33019da Bug 1393189 part 5 - Rewrite CounterStyleOrNone::from_gecko_value to use fewer binding functions. r=heycam
MozReview-Commit-ID: 3EsExs0DzQr

--HG--
extra : rebase_source : b97cfeb82dcaf80eb91635e9094c55a264678865
2017-08-29 17:11:13 +10:00
Xidorn Quan 610d192c1b Bug 1393189 part 4 - Remove kListStyleKTable and CSS keywords only used in this table. r=dholbert
MozReview-Commit-ID: IM0cvCSV6tR

--HG--
extra : rebase_source : d5d60115f0774f4e31c5c93617d64534e9c89f3e
2017-08-29 15:41:37 +10:00
Xidorn Quan ddf527e66d Bug 1393189 part 3 - Replace all uses of nsCSSProps::kListStyleKTable with gBuiltinStyleTable. r=dholbert
The change in CounterStyleManager::BuildCounterStyle converts a case-
insensitive comparison to a case-sensitive comparison by comparing atom
pointer directly. But this is fine because all names of builtin counter
styles should have been lowercased by the parser. For Gecko, it is done
in CSSParserImpl::ParseCounterStyleName, and for Servo, it is done in
counter_style::parse_counter_style_name.

MozReview-Commit-ID: JHHmzEaNIpn

--HG--
extra : rebase_source : aa43d45042c3cbd85e925596586a9a2ea51c6e4a
2017-08-29 15:36:32 +10:00
Xidorn Quan 06b5070af0 Bug 1393189 part 2 - Have CounterStyle::GetStyleName return nsIAtom and make it const. r=dholbert
MozReview-Commit-ID: KmnQSK7ZvND

--HG--
extra : rebase_source : e47fc3d41f16f18f7182bf561d8da7249fd27bc5
2017-08-29 15:21:36 +10:00
Xidorn Quan d189e163c1 Bug 1393189 part 1 - Statically initialize builtin style table with their name atom included. r=dholbert
Doing this at compile time would save a bit of our startup time, which
I've promised to do since @counter-style was initially implemented, see
bug 966166 comment 103 (the paragraph with "constexpr").

Also, having this implemented here makes using atom instead of string
on name of builtin counter styles easier, for later patches.

MozReview-Commit-ID: C9HYcuShBQv

--HG--
extra : rebase_source : 273eb3d23ee770722d27b26aafaa291d7375b8ee
2017-08-29 14:44:14 +10:00
Xidorn Quan 96c445bf1a Bug 1393189 part 0 - Reorder NS_STYLE_LIST_STYLE_* consts to match the order in nsCSSProps::kListStyleKTable. r=dholbert
MozReview-Commit-ID: 3RNqDbOjXyX

--HG--
extra : rebase_source : cda26fafbdc91328e2661025d60ea3c71952fcc1
2017-08-30 08:44:53 +10:00
Boris Chiou 5a4b83f24b Bug 1393605 - Fix gecko assertion and add one crashtest. r=birtles
MozReview-Commit-ID: 44QIZ8SipWX

--HG--
extra : rebase_source : 764a560a322b9945365929a7bba6eac77f47b554
2017-08-31 11:11:09 +08:00
Brian Birtles 670dfc03bf Bug 1395452 - Call HasAnimationController() before GetAnimationController(); r=hiro
nsDocument::GetAnimationController() will lazily create an animation controller
which, in some call sites, is unnecessary.

This patch first calls HasAnimationController() and only calls
GetAnimationController() if it returns true. This avoids creating an animation
controller in situations where one is not necessarily required.

MozReview-Commit-ID: 4cdpLRvMVJU

--HG--
extra : rebase_source : 125a59c0b0535d5df9a9964538b3784ddb1212c7
2017-08-31 15:00:39 +09:00
Nicholas Nethercote 9251ef42b7 Bug 1394729 - Measure memory usage of Stylo's Rule Tree. r=heycam.
This patch splits up the existing "layout/style-sets" measurement into
"layout/gecko-style-sets", or "layout/servo-style-sets/stylist/rule-tree" and
"layout/servo-style-sets/other". (Additional things will be measured under
"layout/servo-style-sets/" later, such as cascade data.)

This requires introducing a new type, ServoStyleSetSizes, for transferring the
multiple measurements from Rust code to C++ code.

MozReview-Commit-ID: FbmzpsjBpgI

--HG--
extra : rebase_source : f2d1441705139e6674d355792255302fcd89f748
2017-08-30 18:21:26 +10:00
Wei-Cheng Pan 83f77707b7 Bug 1373814 - Add new probe to measure start-up input latency. data-r=francois r=francois,smaug
For parent process, users may expect the UI is interactable after they saw the
first tab has restored/shown.
So this patch added a new topic "sessionstore-one-or-no-tab-restored" which
represents the parent process has finished a tab restoring. If there is nothing
to restore, it is effectively equal to "sessionstore-windows-restored".

For centent processes, users may expect web content is interactable when the
top-level-content-document has finished loading, which is different from the
parent case.

MozReview-Commit-ID: AtEUW80Ea6n

--HG--
extra : rebase_source : d920975bf95545ea9e3127d3f570b814fe301be9
2017-08-08 17:54:13 +08:00
Mantaroh Yoshinaga 4c7997db68 Bug 1390352 - Make Servo_AnimationValues_ComputeDistance return negative value instead of 0.0 when the function fails to distinguish its failure. r=hiro
We need to check whether the function fails or not in order to check whether
we support the specified paced animation values.

Current servo returns 0.0 when failed computing distance, so servo doesn't
distinguish its failure. This patch makes Servo_AnimationValue_ComputeDistance
return a negative value when the function fails.

MozReview-Commit-ID: 43Q4gu4xwHc

--HG--
extra : rebase_source : fa159b4b03e2e84c0a365455de4c0d2cf5d4f2ce
2017-08-24 10:21:14 +09:00
cku 57060b7222 Bug 1361639 - Part 3. Remove unused EffectOffsets::offsetToBoundingBoxInDevPx. r=longsonr+218550
MozReview-Commit-ID: DRdA5FAeu4Q

--HG--
extra : rebase_source : 569eab61de332467ef8ec4d5d07c2e38ecda1737
2017-08-30 11:25:39 +08:00
cku c13c8d4e5e Bug 1361639 - Part 1. Depend on input flag, return bbox of an <use> element in different coordinate system. r=longsonr+218550
When nsSVGUtils::getBBox is called on <use> element:
1. Call from SVGGraphicsElement::getBBox(WebAPI):
   According to the spec, getBBox should return the bbox as the union box of
   children in user space.
2. Call from mask/ clip-path or filter painting:
   Since we want to paint those elements in the coordinate space formed by
   <use>(bug 537623), getBBox should return the bbox as the union box of
   children in coordinate system of <use>.

Depend on the use case, we return the bbox of an <use> element on different
coordinate system. In this patch, I bring in a new
flag(eInUserSpaceOfUseElement) so that nsSVGUtils::getBBox can return bbox on
different coordinate system accordingly.

MozReview-Commit-ID: FfZalTI8J0y

--HG--
extra : rebase_source : c33e980c00c450792b30f60f6aa01b53e1c5595c
2017-08-29 20:41:45 +08:00
Masayuki Nakano b3c33d13ad Bug 1395146 - part1: Get rid of nsITextControlElement::IsPlainTextControl() and nsTextEditorState::IsPlainTextEditor() r=smaug
nsTextEditorState::GetValue() refers nsITextControlElement::IsPlainTextControl()
via nsTextEditorState::IsPlainTextEditor().  However, it always returns true and
virtual call with QI.  So, we should get rid of these unnecessary methods.

MozReview-Commit-ID: 3gHdGrzlys4

--HG--
extra : rebase_source : a1be33a18e93e64b8cc87e4f12d5e494b14520bf
2017-08-30 18:57:55 +09:00
Xidorn Quan 4750451d3d Bug 1387993 - Enable chrome mochitests on linux debug build. r=jmaher
MozReview-Commit-ID: Aj0movJBDI9

--HG--
extra : rebase_source : c33c2386fd0ca2e9eed9cb7fc137caf41629f7e4
2017-08-30 10:18:30 +10:00
Alexis Beingessner bfdaac7f5c Bug 1395098 - Apply folded alpha to text when using advanced layers r=jrmuizel
MozReview-Commit-ID: 6crHThEP6Ha

--HG--
extra : rebase_source : 9dd0c286b400b22803b1a52ac0822738ef17d904
2017-08-30 13:18:09 -04:00
Brad Werth 1174656d6b Bug 1385789: Refactor RestyleManager::ContentStateChangedInternal to move nsRestyleHint calculation out to GeckoRestyleManager. r=bholley
MozReview-Commit-ID: 7GXkPcjfYe6

--HG--
extra : rebase_source : d493227f872f2698d2f7d48df4132377b2d43c36
2017-08-29 15:50:50 -07:00
Kartikaya Gupta c3ffce14a8 Bug 1395218 - Make the bevel side parameters more strongly-typed. r=dholbert
MozReview-Commit-ID: 5rymg5uTMC1

--HG--
extra : rebase_source : 52feb903732eeba3dd52ff086de15181dde854c9
2017-08-30 12:22:18 -04:00
Wes Kocher 940bdbc699 Merge autoland to central, a=merge
MozReview-Commit-ID: Jz9iBkuBrpV
2017-08-30 19:52:39 -07:00
Tobias Schneider 4c5ae9e764 Bug 1299848 - Move all reftest-paged tests to layout/reftests/pagination. r=dholbert
--HG--
rename : layout/reftests/printing/1108104-ref.html => layout/reftests/pagination/1108104-ref.html
rename : layout/reftests/printing/1108104.html => layout/reftests/pagination/1108104.html
rename : layout/reftests/printing/115199-1-ref.html => layout/reftests/pagination/115199-1-ref.html
rename : layout/reftests/printing/115199-1.html => layout/reftests/pagination/115199-1.html
rename : layout/reftests/printing/115199-2-ref.html => layout/reftests/pagination/115199-2-ref.html
rename : layout/reftests/printing/115199-2a.html => layout/reftests/pagination/115199-2a.html
rename : layout/reftests/printing/115199-2b.html => layout/reftests/pagination/115199-2b.html
rename : layout/reftests/printing/1166147-ref.html => layout/reftests/pagination/1166147-ref.html
rename : layout/reftests/printing/1166147.html => layout/reftests/pagination/1166147.html
rename : layout/reftests/printing/129941-1-ref.html => layout/reftests/pagination/129941-1-ref.html
rename : layout/reftests/printing/129941-1a.html => layout/reftests/pagination/129941-1a.html
rename : layout/reftests/printing/129941-1b.html => layout/reftests/pagination/129941-1b.html
rename : layout/reftests/printing/129941-1c.html => layout/reftests/pagination/129941-1c.html
rename : layout/reftests/printing/129941-1d.html => layout/reftests/pagination/129941-1d.html
rename : layout/reftests/printing/129941-1e.html => layout/reftests/pagination/129941-1e.html
rename : layout/reftests/printing/1321803-1-ref.html => layout/reftests/pagination/1321803-1-ref.html
rename : layout/reftests/printing/1321803-1a.html => layout/reftests/pagination/1321803-1a.html
rename : layout/reftests/printing/272830-1-ref.html => layout/reftests/pagination/272830-1-ref.html
rename : layout/reftests/printing/272830-1.html => layout/reftests/pagination/272830-1.html
rename : layout/reftests/printing/318022-1-ref.html => layout/reftests/pagination/318022-1-ref.html
rename : layout/reftests/printing/318022-1.html => layout/reftests/pagination/318022-1.html
rename : layout/reftests/printing/381497-f.html => layout/reftests/pagination/381497-f.html
rename : layout/reftests/printing/381497-n.html => layout/reftests/pagination/381497-n.html
rename : layout/reftests/printing/403669-1-ref.html => layout/reftests/pagination/403669-1-ref.html
rename : layout/reftests/printing/403669-1.html => layout/reftests/pagination/403669-1.html
rename : layout/reftests/printing/577450-1-ref.html => layout/reftests/pagination/577450-1-ref.html
rename : layout/reftests/printing/577450-1.html => layout/reftests/pagination/577450-1.html
rename : layout/reftests/printing/609227-1-ref.html => layout/reftests/pagination/609227-1-ref.html
rename : layout/reftests/printing/609227-1.html => layout/reftests/pagination/609227-1.html
rename : layout/reftests/printing/609227-2-ref.html => layout/reftests/pagination/609227-2-ref.html
rename : layout/reftests/printing/609227-2a.html => layout/reftests/pagination/609227-2a.html
rename : layout/reftests/printing/609227-2b.html => layout/reftests/pagination/609227-2b.html
rename : layout/reftests/printing/626395-1-ref.html => layout/reftests/pagination/626395-1-ref.html
rename : layout/reftests/printing/626395-1a.html => layout/reftests/pagination/626395-1a.html
rename : layout/reftests/printing/626395-1b.html => layout/reftests/pagination/626395-1b.html
rename : layout/reftests/printing/626395-2-ref.html => layout/reftests/pagination/626395-2-ref.html
rename : layout/reftests/printing/626395-2a.html => layout/reftests/pagination/626395-2a.html
rename : layout/reftests/printing/626395-2b.html => layout/reftests/pagination/626395-2b.html
rename : layout/reftests/printing/626395-2c.html => layout/reftests/pagination/626395-2c.html
rename : layout/reftests/printing/626395-2d.html => layout/reftests/pagination/626395-2d.html
rename : layout/reftests/printing/652178-1-ref.html => layout/reftests/pagination/652178-1-ref.html
rename : layout/reftests/printing/652178-1-ref2.html => layout/reftests/pagination/652178-1-ref2.html
rename : layout/reftests/printing/652178-1.html => layout/reftests/pagination/652178-1.html
rename : layout/reftests/printing/745025-1-ref.html => layout/reftests/pagination/745025-1-ref.html
rename : layout/reftests/printing/745025-1.html => layout/reftests/pagination/745025-1.html
rename : layout/reftests/printing/820496-1-ref.html => layout/reftests/pagination/820496-1-ref.html
rename : layout/reftests/printing/820496-1.html => layout/reftests/pagination/820496-1.html
rename : layout/reftests/printing/960822-ref.html => layout/reftests/pagination/960822-ref.html
rename : layout/reftests/printing/960822.html => layout/reftests/pagination/960822.html
rename : layout/reftests/printing/966419-1-ref.html => layout/reftests/pagination/966419-1-ref.html
rename : layout/reftests/printing/966419-1.html => layout/reftests/pagination/966419-1.html
rename : layout/reftests/printing/966419-2-ref.html => layout/reftests/pagination/966419-2-ref.html
rename : layout/reftests/printing/966419-2.html => layout/reftests/pagination/966419-2.html
rename : layout/reftests/printing/test-async-paged.html => layout/reftests/pagination/test-async-paged.html
2017-08-30 09:23:16 -07:00
Geoff Brown 6d680d9a44 Bug 1394957 - Fix logging of number of tests when running chunked reftests; r=ahal 2017-08-30 10:11:28 -06:00
Kris Maglione 8b415f700f Bug 1394556: Part 1 - Fix strict mode errors in JSM scripts. r=Mossop
MozReview-Commit-ID: 4LmJQql7Y2c

--HG--
extra : rebase_source : f18b5547a5a57db4e8b990bfc34f06690ac9da7a
extra : histedit_source : 7281bafbde4bf231752d9d868ec8ca1d2f55a2f9
2017-08-30 01:50:27 -07:00
Mike Hommey 57c65279a0 Bug 1395088 - Remove the jemalloc_bool type. r=njn
Back when it was added (for Windows CE, in bug 488608), mozjemalloc was
C and all the supported compilers didn't support C99 bools. Now
mozjemalloc is C++, and all the supported compilers support C99 bools
for the cases where the type is used from C.

--HG--
extra : rebase_source : b9c710a0c48dc36cb473af59e3119131d13523ce
2017-08-30 18:04:47 +09:00
Sebastian Hengst 948b5a30f8 merge mozilla-central to autoland. r=merge a=merge 2017-08-30 11:06:42 +02:00
Sebastian Hengst a56d428b1f merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Gf0QPFp52Bj
2017-08-30 11:05:16 +02:00
Sebastian Hengst 2d11b559c8 Backed out changeset 7aee62c706ab (bug 1393189) for crashing e.g. in chrome's devtools/client/memory/test/chrome/test_List_01.html or losing connection while running many test suites, both on Windows. r=backout on a CLOSED TREE 2017-08-30 10:07:09 +02:00
Sebastian Hengst 08520511b8 Backed out changeset d292ce405097 (bug 1393189) 2017-08-30 10:04:40 +02:00
Sebastian Hengst b8848792ee Backed out changeset 1200482baf04 (bug 1393189) 2017-08-30 10:04:34 +02:00
Sebastian Hengst 7fa5412811 Backed out changeset 986b0a6f7173 (bug 1393189) 2017-08-30 10:04:29 +02:00
Sebastian Hengst 36eaef4709 Backed out changeset d0cff01a73a0 (bug 1393189) 2017-08-30 10:04:23 +02:00
Sebastian Hengst 61bf0a9a2e Backed out changeset 370357882bef (bug 1393189) 2017-08-30 10:04:17 +02:00
Sebastian Hengst 13ff1408e8 Backed out changeset b0cc5205f6ed (bug 1393189) 2017-08-30 10:04:12 +02:00
Bobby Holley af82cc20b0 Bug 1394987 - Flush styles in PresShell::ReconstructFrames. r=emilio
MozReview-Commit-ID: GUuE1dKoDvK
2017-08-29 17:40:57 -07:00
Bobby Holley c958f750fa Bug 1394987 - Remove dead codepath into PresShell::ReconstructFrames. r=emilio
MozReview-Commit-ID: 5ZqvGc2eTmJ
2017-08-29 17:40:56 -07:00
Andrew McCreight 78807d8776 Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv
Replace it with NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION, because it
has been the same for a while.

MozReview-Commit-ID: 5agRGFyUry1

--HG--
extra : rebase_source : 5388c56b2f6905c6ef969150f0c5b77bf247624d
2017-08-29 16:02:48 -07:00
Ethan Lin 79a193db06 Bug 1394711 - nsDisplayBackgroundImage should check layer state to create webrender commands. r=kats
MozReview-Commit-ID: Lr1Yfcd50iK

--HG--
extra : rebase_source : e55cba3b33baf6f013bdbb95f5c0c8c4da582565
2017-08-29 14:51:06 +08:00
Xidorn Quan d0ef137841 Bug 1393189 part 6 - Add crashtest for this bug. r=heycam
MozReview-Commit-ID: 1DbP4Hs7tc2

--HG--
extra : rebase_source : 4d5f3c0ae4c288aa75063bff88fb16383f1aa204
2017-08-29 17:13:34 +10:00
Xidorn Quan 85f3c7d779 Bug 1393189 part 5 - Rewrite CounterStyleOrNone::from_gecko_value to use fewer binding functions. r=heycam
MozReview-Commit-ID: 3EsExs0DzQr

--HG--
extra : rebase_source : e467d4daede53a943b4f4386d9239d3fb4c65595
2017-08-29 17:11:13 +10:00
Xidorn Quan 19c5a44e0e Bug 1393189 part 4 - Remove kListStyleKTable and CSS keywords only used in this table. r=dholbert
MozReview-Commit-ID: IM0cvCSV6tR

--HG--
extra : rebase_source : 5ab02c07c06ed00bb70e9c46e158507a9cadb7c5
2017-08-29 15:41:37 +10:00
Xidorn Quan e966c848cd Bug 1393189 part 3 - Replace all uses of nsCSSProps::kListStyleKTable with gBuiltinStyleTable. r=dholbert
The change in CounterStyleManager::BuildCounterStyle converts a case-
insensitive comparison to a case-sensitive comparison by comparing atom
pointer directly. But this is fine because all names of builtin counter
styles should have been lowercased by the parser. For Gecko, it is done
in CSSParserImpl::ParseCounterStyleName, and for Servo, it is done in
counter_style::parse_counter_style_name.

MozReview-Commit-ID: JHHmzEaNIpn

--HG--
extra : rebase_source : 537289c98dadc0174ce1012c4d05f8e8dd9512f0
2017-08-29 15:36:32 +10:00
Xidorn Quan 5b41390bbf Bug 1393189 part 2 - Have CounterStyle::GetStyleName return nsIAtom and make it const. r=dholbert
MozReview-Commit-ID: KmnQSK7ZvND

--HG--
extra : rebase_source : 03988abe82fdccd7e448d1a8b2e12b29dff9aa22
2017-08-29 15:21:36 +10:00
Xidorn Quan d47c52cdd6 Bug 1393189 part 1 - Statically initialize builtin style table with their name atom included. r=dholbert
Doing this at compile time would save a bit of our startup time, which
I've promised to do since @counter-style was initially implemented, see
bug 966166 comment 103 (the paragraph with "constexpr").

Also, having this implemented here makes using atom instead of string
on name of builtin counter styles easier, for later patches.

MozReview-Commit-ID: C9HYcuShBQv

--HG--
extra : rebase_source : b603e9b51faf3fefb18449c60284e591a20a3804
2017-08-29 14:44:14 +10:00
Xidorn Quan 9f853bb62d Bug 1393189 part 0 - Reorder NS_STYLE_LIST_STYLE_* consts to match the order in nsCSSProps::kListStyleKTable. r=dholbert
MozReview-Commit-ID: 3RNqDbOjXyX

--HG--
extra : rebase_source : cda26fafbdc91328e2661025d60ea3c71952fcc1
2017-08-30 08:44:53 +10:00
Kevin Hsieh 1dc82df82e Bug 1394762: Add testcase for Bug 1394311. r=manishearth
MozReview-Commit-ID: 5jAZwRMYoHq

--HG--
extra : rebase_source : 21e5d25498555c81f2c9c4345d3f61d919aa4bc4
2017-08-28 16:57:38 -07:00
Kartikaya Gupta 2f2f47ee81 Bug 1394011 - Place the root ScrollMetadata on the tree we send to APZ in layers-free webrender mode. r=mstange
MozReview-Commit-ID: i6BDSDgKiu

--HG--
extra : rebase_source : c6de7e75ff054a17df5a45f17f88025be3ffd3dc
2017-08-28 17:17:37 -04:00
Kartikaya Gupta b76249cc0d Bug 1394011 - Extract helper function to compute the root ScrollMetadata. r=mstange
MozReview-Commit-ID: G8G7hI0aBWY

--HG--
extra : rebase_source : 2a68bf8202abe4b2dddd87a9dae0f6f94d854ea4
2017-08-28 17:17:34 -04:00
Boris Zbarsky 9599945ea5 Bug 1394662. Make ::-moz-table-column a non-inheriting anonymous box. r=heycam
In our UA sheet the only style we apply to ::-moz-table-column is "display: table-column".

Per spec, the only styles that apply to table columns are border props,
background props, 'width', and 'visibility'.

The only one of those that inherits is 'visibility'.  And the only relevant
value per spec is "collapse".  But an anonymous column can only be "visibility:
collapse" in Gecko right now if its colgroup is, and then the colgroup will get
collapsed away as a whole.  So it doesn't matter whether the column inherits the
visibility style.

In practice, we do something special for "hidden" on a table-column as well,
during display list building, which affects hit-testing.  Per
https://github.com/w3c/csswg-drafts/issues/1763 it's not clear that we should be
doing this at all, but for now we just keep our existing behavior and ensure
that the parent colgroup's visibility style is taken into account for anonymous
columns when building display lists.
2017-08-29 22:04:05 -04:00
Wes Kocher a8e6d0bd2c Merge m-c to inbound, a=merge
MozReview-Commit-ID: 7XpmaFg1k8N
2017-08-29 16:17:13 -07:00
Geoff Brown 0c1b12715e Bug 1386816 - Kill any xpcshell or ssltunnel already running at start of tests; r=jmaher
This renames killNamedOrphans to killNamedProc and removes the check for
parent proc id, so that any xpcshell or ssltunnel process is killed before
starting a mochitest or reftest run. For reftests, this is moved out of
the desktop harness and into the remote/android harness, since desktop
reftests do not use xpcshell or ssltunnel.
2017-08-29 15:44:18 -06:00