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

11150 Коммитов

Автор SHA1 Сообщение Дата
Cameron McCormack 57789c06eb Bug 1356601 - Don't force computation of a Variables struct when animations are involved. r=dbaron
Without this change, we can end up asserting in ComputeVariablesData and
crashing in CSSVariableResolver::Resolve due to not finding any variable
declarations on the rules we matched, when we have content like in the
crashtest added here, i.e. variables inheriting into a pseudo like
::first-line and animations on the element inside the ::first-line.

We could solve this alternatively by removing the assertion and making
CSSVariableResolver::Resolve handle a null aDeclarations more gracefully,
but since we can save the effort of recomputing the Variables struct in
this case, we may as well.

MozReview-Commit-ID: 6l06ZF3WGsy
2017-04-18 22:27:04 +10:00
Andrea Marchesini 06cfb4297f Bug 1354599 - Use of DOMEventTargetHelper::KeepAliveIfHasListenersFor in MediaQueryList, r=smaug 2017-04-18 13:53:15 +02:00
Boris Chiou 8bd7b6f3a1 Bug 1341372 - Part 5: Update mochitest expectations. r=xidorn
Also update test_transitions_dynamic_changes.html because we don't
support "font" property for stylo now. According to its context and purpose, we
only need a property other than "text-indent", so it is not
necessary to use "font".

Besides, we don't support shorthand properties for transitions, so
test_transitions.html have two intermittents. Mark the expect number as
'*' until we fix shorthand properties for transitions.

MozReview-Commit-ID: HyuOV29AJ9a

--HG--
extra : rebase_source : b5d4bf2786bb590e16c06b7b93c95a38cabf1781
2017-04-06 13:23:42 +08:00
Boris Chiou 61b7e58f8a Bug 1341372 - Part 4: Add a utility method to get AnimationCollection by Element and nsIAtom. r=hiro
We need a utility method to get the AnimationCollection by dom::Element
and the pseudo element tag.

MozReview-Commit-ID: KCOY6EKFFX5

--HG--
extra : rebase_source : de1b9386d6324cfb4cee0d84b13a0b1af4aa5c12
2017-04-14 10:17:43 +08:00
Boris Chiou f074c41907 Bug 1341372 - Part 3: Add FFIs for Triggering transitions. r=birtles,heycam,hiro
We add these FFIs for retrieving the existing transitions, so we can
reduce the false alarms of triggering transitions from Servo:
1. Gecko_ElementTransitions_Length
2. Gecko_ElementTransitions_PropertyAt
3. Gecko_ElementTransitions_EndValueAt

MozReview-Commit-ID: 9eLd8fxmNd9

--HG--
extra : rebase_source : 0ea23dd7f48dbdc1f31a83244ab1dfaf1b20a321
2017-04-17 14:29:31 +08:00
Boris Chiou 5ebfbed872 Bug 1341372 - Part 2: Add one FFI for TElement::has_css_transitions. r=heycam
Add one FFI, Gecko_ElementHasCSSTransitions, to check if there is any
transition in CSSTransitionCollection. This will be used to check if we need
to update transition and if we should compute the after-change style.

MozReview-Commit-ID: 7xP4SdxNp7g

--HG--
extra : rebase_source : dbc4941151835c2f1c3596a6baaef77b2198890c
2017-04-17 14:24:33 +08:00
Boris Chiou 600fb7770f Bug 1341372 - Part 1: Let animation-only restyle include css-transition. r=heycam,hiro
Animation-only restyle should include both Animation and Transition
cascade levels.

MozReview-Commit-ID: Jo1sb5fGUC0

--HG--
extra : rebase_source : ddd7d796b93f9e7ced912ec4fa2eb79e7ba58784
2017-04-17 14:22:28 +08:00
Cameron McCormack dc932fcd38 Bug 1356510 - stylo: Update test expectations. r=manishearth
MozReview-Commit-ID: H9cunzhaNV

--HG--
extra : rebase_source : 931683d2c76cc81e642865357ffaf68857e0bc21
2017-04-16 22:11:18 +10:00
Hiroyuki Ikezoe 0da40fea4c Bug 1324700 - Update assertion counts which had been caused by font handling in canvas element. r=heycam
MozReview-Commit-ID: KPhujlE54vL

--HG--
extra : rebase_source : dff960a2b7c6c010cdbd7a1bb913a3d8eceaeecf
2017-04-15 07:37:35 +09:00
Hiroyuki Ikezoe 51d6b62cb0 Bug 1324700 - Add an FFI which returns computed values for a given declaration block with/without parent_style. r=heycam
The function uses document's default computed values if the parent style
is not specified.

MozReview-Commit-ID: ICd3phAi0C6

--HG--
extra : rebase_source : 343dee682096b75cd7f905db7207823f7e3624b5
2017-04-15 07:37:35 +09:00
Hiroyuki Ikezoe 175655448b Bug 1324700 - Add a function that checks PropertyDeclarationBlock has a CSSWideKeyword for a given property. r=heycam
It will be used to check whether the PropertyDeclarationBlock has 'inherit',
'initial' or 'unset'.


MozReview-Commit-ID: JxlxAJJSNJI

--HG--
extra : rebase_source : 99912dcbcfb39e2710e822b93c7933af79b5421b
2017-04-15 07:37:34 +09:00
Hiroyuki Ikezoe a7215d7152 Bug 1324700 - Add ResolveServoTransientStyle to get servo's computed values instead of nsStyleContext. r=heycam
Also this patch add nsIAtom as an argument to ResolveTransientStyle() to call
the new function ResolveServoTransientStyle easier. The only call site of the
ResolveTransientStyle() has already nsIAtom* there.

MozReview-Commit-ID: IwxqZbaCSpB

--HG--
extra : rebase_source : b94a3a8723fe53f38eb6144a5926dec3d7796e72
2017-04-15 07:37:34 +09:00
Hiroyuki Ikezoe d034849334 Bug 1324700 - Call PreTraverseSync() before calling ResolveStyleLazily() in ResolveTransientStyle(). r=heycam
MozReview-Commit-ID: 5KMELNYZJnq

--HG--
extra : rebase_source : 025a0d2267144bd631f28f554dba54352b13a43b
2017-04-15 07:37:34 +09:00
Hiroyuki Ikezoe 784bf46abc Bug 1324700 - Servo_ParseProperty() takes nsCSSPropertyID instead of nsACString. r=heycam
MozReview-Commit-ID: Gn90DBlJSS9

--HG--
extra : rebase_source : 444f4188de7e32f5414f2b75046903dc504db1a0
2017-04-15 07:37:34 +09:00
Wes Kocher 2875d22e91 Bug 1355017 - Update stylo-failures.md r=me a=me
--HG--
extra : rebase_source : fcb4104b64903b823bd10828ae588718a3e69b35
2017-04-14 12:58:49 -07:00
Wes Kocher 95836a9a20 Bug 1355017 - Update stylo-failures.md r=me a=me 2017-04-14 12:11:44 -07:00
KuoE0 dfe4c15977 Bug 1355017 - Update stylo-failures.md. r=aryx
MozReview-Commit-ID: HO9DizNb2IZ

--HG--
extra : rebase_source : d709a74203b2d2e8118a0f040b54d5ba0fbd8c67
2017-04-15 01:47:26 +08:00
Sebastian Hengst 875f27030a merge mozilla-central to autoland. r=merge a=merge 2017-04-14 17:22:00 +02:00
Xidorn Quan 57e8622887 Bug 1341102 - Update mochitest expectation.
MozReview-Commit-ID: AcadZ6m2ekb
2017-04-14 22:29:46 +08:00
Iris Hsiao 93edef392b merge autoland to mozilla-central a=merge 2017-04-14 17:09:58 +08:00
Wes Kocher c8a2033f35 Merge m-c to inbound, a=merge 2017-04-13 17:33:39 -07:00
Wes Kocher 514e230373 Merge inbound to central, a=merge 2017-04-13 17:24:01 -07:00
J. Ryan Stinnett dbbda3c4ba Bug 1329088 - Pass SVG length mode to Stylo. r=emilio
In the SVG element case, tell Stylo to use the SVG length mode.

MozReview-Commit-ID: 9UR1AYRh4RE
2017-04-14 18:27:49 +08:00
J. Ryan Stinnett 9e8f561392 Bug 1329088 - Add LengthParsingMode enum to Gecko side. r=emilio
Add a Gecko side LengthParsingMode enum that matches the Servo version.  This
will be used in a few Stylo glue APIs on the FFI boundary.

MozReview-Commit-ID: EuDlWc6ZiQ8
2017-04-14 18:27:49 +08:00
Cameron McCormack e49f2eede5 Bug 1356125 - stylo: Update test expectations. r=emilio
MozReview-Commit-ID: 6cU2r50REn9
2017-04-13 14:32:07 +08:00
Eric Rahm 4ea5ba697b Bug 1356060 - Cleanup nits. r=me
MozReview-Commit-ID: Jk6d9UkdbiU
2017-04-13 15:21:41 -07:00
Eric Rahm 152fcf01fe Bug 1356060 - Just use nsString in URLValueData. r=heycam
This switches over from using nsStringBuffer to nsString for URLValueData's
|mString| member. This avoids various tedious conversions and can provide
potential performance improvements by avoiding length calculations.

MozReview-Commit-ID: 5eRifUZrAso
2017-04-13 15:18:25 -07:00
Emilio Cobos Álvarez 6dcc77f3c6 Bug 1356074: Update test expectations. r=heycam
MozReview-Commit-ID: 575mMyFAtlx
2017-04-14 13:01:06 +08:00
Emilio Cobos Álvarez 327d06e742 Bug 1356074: Use Servo for window.matchMedia and MediaQueryList. r=xidorn
MozReview-Commit-ID: I6uufe48JZq
2017-04-14 13:00:29 +08:00
Emilio Cobos Álvarez 269304d78d Bug 1356074: Implement keyword-valued media queries. r=heycam
MozReview-Commit-ID: 1oskYLM11us
2017-04-14 13:00:23 +08:00
Hiroyuki Ikezoe 0d44aff685 Bug 1354876 - Update tests expectations for font-variant. r=heycam
MozReview-Commit-ID: 9ZTz7hH5KV3

--HG--
extra : rebase_source : c2716b5583d31b57e4e0f3b5eaaf47ed09e6fa98
2017-04-14 10:41:21 +09:00
Brad Werth 6c2dfccff8 Bug 1341721 Part 5: Remove asserts from some unexpected-pass reftests. r=heycam
MozReview-Commit-ID: EVxsNGyMuJY

--HG--
extra : rebase_source : 4b46c91308eb1efa60a1d1a89b408fc8ba258ece
2017-04-13 15:08:30 +08:00
Brad Werth 78b1c03e22 Bug 1341721 Part 2a: Add a bool argument to Servo_StyleSet_NoteStyleSheetsChanged. r=heycam
MozReview-Commit-ID: 1CLnJ87fPF1

--HG--
extra : rebase_source : 10e63dbaadd1d37f209044980f83a3e1af70cdfc
2017-04-11 15:59:44 +08:00
Brad Werth e50d5d4bbe Bug 1341721 Part 1: ServoStyleSet implementation of SetAuthorStyleDisabled. r=heycam
MozReview-Commit-ID: Bd0TJDfcj94

--HG--
extra : rebase_source : c5904f67f4303e14a785d0526190e51bc987f4c9
2017-04-11 15:43:14 +08:00
Xidorn Quan 1f463380ce Bug 1355683 - Remove Window.getDefaultComputedStyle. r=bz
MozReview-Commit-ID: A2IwfiJiPL

--HG--
extra : rebase_source : 6e41985b2f9aa9528f2f660f8044f5e9f7970712
2017-04-13 16:50:37 +08:00
Emilio Cobos Álvarez a2a4795bd3 Bug 1325878: followup - cleanup MediaList::Matches callers. r=me
MozReview-Commit-ID: Ck9hlZ0qkxj
2017-04-14 11:31:47 +08:00
Cameron McCormack 9bfb5d308c Bug 1356085 - stylo: Update test expectations. r=emilio
MozReview-Commit-ID: 7gUoFnqg5MA
2017-04-13 10:29:22 +08:00
Xidorn Quan 6aa53cfed2 No bug - Fix mochitest expectation.
MozReview-Commit-ID: 5jR3ONTUyKX

--HG--
extra : rebase_source : e1e8005235a768e4202ef777ebfec4c301f52e31
2017-04-13 16:12:27 +08:00
Xidorn Quan c85f8f0470 No bug - Add bug number to several items in stylo-failures.md
MozReview-Commit-ID: 1nEHUWhP7zO

--HG--
extra : rebase_source : 531569b1a3e96a124f964712c3994899a3d8f04a
extra : source : 1fb3d6ba02af65125dec818947645e520c72b9b2
2017-04-13 13:24:29 +08:00
Emilio Cobos Álvarez 8151866656 Bug 1341102: Fixup expectations for servo/servo#16384. r=emilio
MozReview-Commit-ID: AzvlNohO10v
2017-04-13 12:16:20 +08:00
Emilio Cobos Álvarez 2a0fcd1d0d Bug 1355014: Update test expectations. r=emilio
MozReview-Commit-ID: HG7klGXxH73
2017-04-13 12:15:19 +08:00
Xidorn Quan d8c29760a1 Bug 1355734 - Remove text-decoration-line: -moz-anchor-decoration. r=heycam,masayuki
MozReview-Commit-ID: 4TmVncV1K5G

--HG--
extra : rebase_source : 568218d415642f1088c82d4b2e03d5885067b162
2017-04-13 16:17:03 +08:00
Wes Kocher 20dd5f52c2 Merge m-c to autoland, a=merge 2017-04-13 17:35:34 -07:00
Nazım Can Altınova c2f328e8c3 Bug 1355003 - stylo: Update test expectations for shape-outside; r=Manishearth
MozReview-Commit-ID: ADUVt5RIBK
2017-04-13 10:34:54 +08:00
Nazım Can Altınova 23976af4ac Bug 1355003 - stylo: Change some binding names to generalize them r=Manishearth
MozReview-Commit-ID: 5O0CevHWbUA
2017-04-13 10:32:40 +08:00
Nathan Froyd 2989feb7d7 Bug 1353810 - add a --enable-rust-debug option; r=chmanchester
For people working on Rust code, compiling in debug mode (Cargo's "dev"
profile) is convenient: debug assertions are turned on, optimization is
turned off, and parallel compilation inside of rustc itself can be
used.  These things make the build faster and the debugging experience
more pleasant.

To obtain that currently, one needs to --enable-debug at the Gecko
toplevel, which turns on debug assertions for the entire browser, which
makes things run unreasonably slowly.  So it would be desirable to be
able to turn *off* debug mode for the entirety of the browser, but turn
on debug mode for the Rust code only.

Hence this added switch, --enable-rust-debug, which does what it
suggests and defaults to the value of --enable-debug.  For our own
sanity and because we judge it a non-existent use case, we do not
support --enable-debug --disable-rust-debug.
2017-04-12 21:49:25 -04:00
Xidorn Quan a4a706cfa9 Bug 1341102 - Update test expectation on a CLOSED TREE.
MozReview-Commit-ID: KSpz5ZCQkPc

--HG--
extra : amend_source : 777c2eb0e669ab16553ea9f2b5dd730d39ef7b3a
2017-04-13 09:09:17 +08:00
Wes Kocher b5e9293359 Bug 1341102 - Update expectation data r=me a=me CLOSED TREE 2017-04-12 13:41:30 -07:00
Emilio Cobos Álvarez aedc6b5901 Bug 1325878: Update test expectations. r=emilio
MozReview-Commit-ID: 9hsOP3CaCwJ
2017-04-13 00:52:51 +08:00
Emilio Cobos Álvarez 49654bf1af Bug 1325878: Simplify MediaList creation. r=xidorn
MozReview-Commit-ID: Jre50YpuD7F
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-13 00:30:12 +08:00