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

56901 Коммитов

Автор SHA1 Сообщение Дата
Sebastian Hengst 6e1c138a06 Backed out changeset 435e638babd1 (bug 1349418) for failing checkerboard-{1,2,3}.html on Android 4.3. r=backout a=backout
MozReview-Commit-ID: Au7FbypQNvf
2017-04-21 18:01:24 +02:00
Sebastian Hengst 4b2cbe9ca3 Backed out changeset 3ccf396a61fe (bug 1349418)
MozReview-Commit-ID: 8VeAi8IOAl4
2017-04-21 17:59:43 +02:00
Carsten "Tomcat" Book 248cf7f04f Merge mozilla-central to mozilla-inbound 2017-04-21 11:43:14 +02:00
L. David Baron 56f6982df5 Bug 1357951 - Update two transforms tests that should now point to css-transforms-2 following the spec split. r=SimonSapin
MozReview-Commit-ID: K8VBj6DaPGY

--HG--
extra : transplant_source : %5DX%0Dk%D9%A8z%D44%A5%CE%DE%01%EB%EF%C4%BB%1C%7D%D9
2017-04-20 11:23:19 +09:00
Wes Kocher ca3a99fc7e Merge m-c to inbound, a=merge 2017-04-19 17:15:26 -07:00
Wes Kocher cb8ce82cca Merge inbound to m-c a=merge 2017-04-19 17:10:04 -07:00
Jonathan Kew 7e488692ea Bug 1357694 - Use AutoTArray for the array members in BidiLineData, to reduce heap allocation costs. r=dholbert 2017-04-19 20:09:32 +01:00
Kartikaya Gupta 1be864c6ad Merge m-c to graphics
MozReview-Commit-ID: 8Oqr9Nbqsn0
2017-04-19 07:02:32 -04:00
Marco Bonardo 444b7b3de9 Bug 1356440 - Favicons of bookmarks views don't update on visit. r=mrbkap,past,enndeakin
MozReview-Commit-ID: 8j5yLqr7MTc

--HG--
extra : rebase_source : 0da3b4bf0fca0462e22f76c1392f1d9e69f0e71c
extra : amend_source : d6c92db62af2b62671cf13f0b5385b2bc2c8b81e
2017-04-19 11:41:49 +02:00
Carsten "Tomcat" Book 44e9c21039 merge mozilla-inbound to mozilla-central a=merge 2017-04-19 10:32:48 +02:00
Andrea Marchesini 8beb8af7d4 Bug 1357846 - Introducing nsIFilePicker.displaySpecialDirectory, r=smaug
nsIFilePicker.displaySpecialDirectory is a string that can be set to TmpD,
Desk, or any other special directory value. The real value of this directory
will be read in the parent process.
2017-04-26 18:20:19 +02:00
Mats Palmgren ef94ae96c4 Bug 1359205 - Make XUL pseudo values nsICSSAnonBoxPseudo* instead of nsIAtom* and assert that IsTreePseudoElement() got a pseudo tag of the right type. r=bz
MozReview-Commit-ID: G2WFsNV4Fjz
2017-04-26 17:54:43 +02:00
Wes Kocher 61ed56921b Merge m-c to inbound, a=merge 2017-04-18 14:38:53 -07:00
Wes Kocher bcaa07a677 Merge inbound to central, a=merge 2017-04-18 14:35:25 -07:00
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
Sebastian Hengst b17e2f1d52 merge mozilla-central to autoland. r=merge a=backout 2017-04-21 18:41:49 +02:00
Carsten "Tomcat" Book bb87f43c09 merge mozilla-inbound to mozilla-central a=merge 2017-04-18 10:21:31 +02:00
Kartikaya Gupta 9a7952f7f9 Bug 1355475 - Update reftest fuzziness for change in webrender cset e3f6317. r=jrmuizel
MozReview-Commit-ID: 6wmUFyzipmt
2017-04-18 11:18:05 -04:00
Bobby Holley a66b63a3ae Bug 1358375 - Reftest for refreshing the cached booleans. r=bz 2017-04-21 16:54:07 -07:00
Emilio Cobos Álvarez 71bcf77161 Bug 1341102: update expectations for servo/servo#16514. r=emilio
MozReview-Commit-ID: 8UcfhpQMwYp
2017-04-18 18:15:04 +02:00
Jeremy Chen faeea6eb2d Bug 1357350 - update test expectations for reseting longhands of border-image while parsing border shorthand. r=emilio
MozReview-Commit-ID: 9oeav955fpD

--HG--
extra : rebase_source : de0cdff6092b0ea99d937f6bbb3126b20025a0d6
2017-04-23 16:30:29 +08:00
Nazım Can Altınova 8a3426cc20 Bug 1354998 - stylo: Update test expectations for contain property r=emilio
MozReview-Commit-ID: 4B570Lb5Auu

--HG--
extra : rebase_source : 03f8828344420a87b52521ef88471026fe822044
2017-04-23 01:47:21 +03:00
Joel Maher c4f7faa0ae Bug 1352942 - Intermittent css-grid/grid-whitespace-handling-1b.xhtml. marks as fails. r=hiro
MozReview-Commit-ID: C3CuW2JWcGU
2017-04-19 08:11:51 -04:00
Wes Kocher bf5532bb36 Bug 1341102 - Mark shadow-dom-1.html and mstyle-1.xhtml as random on stylo since they're still randomly failing on opt builds a=bustage
MozReview-Commit-ID: H0mRfkfeNDk
2017-04-27 15:45:46 -07:00
Wes Kocher 77e3b38eeb Bug 1341102 - Update expectations so mstyle-1.xhtml only fails on debug a=bustage
MozReview-Commit-ID: KYtyjbEoehd
2017-04-27 15:07:55 -07:00
Wes Kocher ec58905189 Bug 1341102 - Update expectations a=bustage
MozReview-Commit-ID: 2RO4GHQHuzs
2017-04-27 14:06:54 -07:00
Wes Kocher a463bb4c4c Merge m-c to autoland, a=merge
MozReview-Commit-ID: 6CUQEJghjzU
2017-04-27 13:37:47 -07:00
Emilio Cobos Álvarez b27ac0ada8 Bug 1360157: Assert that a display: contents child always has a parent. r=mats
MozReview-Commit-ID: Cyif2yCFu5

--HG--
extra : rebase_source : e32f308c4772507d549f7804b461d3fbecdfe4b6
2017-04-27 12:36:07 +02:00
Sebastian Hengst 3e327c65cd Backed out changeset e0f41e4a4bc4 (bug 1344132) for failing reftest reftest-opaque-layer-fail.html. r=backout on a CLOSED TREE 2017-04-26 13:15:29 +02:00
Sebastian Hengst ceff3b0678 Backed out changeset 1f9d0f8e65b9 (bug 1351548) 2017-04-26 13:13:05 +02:00
Sebastian Hengst 88c73138b1 Backed out changeset 4d8dfee7ebf3 (bug 1351548) 2017-04-26 13:12:59 +02:00
Sebastian Hengst f46ebb0d94 Backed out changeset aebb0ceeb20a (bug 1351548) 2017-04-26 13:12:53 +02:00
Shing Lyu 96b400c04a Bug 1351548 - Remove reftest-stylo.lists. r=bholley
MozReview-Commit-ID: Gn0fbS4PZ7i
2017-04-26 18:21:52 +08:00
Shing Lyu 0673a3e783 Bug 1351548 - Switch from reftest-stylo.list to reftest.list on linux64-stylo. r=bholley
MozReview-Commit-ID: 3GHNhi3gdg9
2017-04-26 18:21:48 +08:00
Shing Lyu dae014d9d5 Bug 1351548 - Add stylo-vs-gecko expectations to reftest.lists. r=bholley
MozReview-Commit-ID: GOUGBsd05cn
2017-04-26 18:21:43 +08:00
Shing Lyu f8f23bfc86 Bug 1344132 - Make reftest run stylo-vs-gecko test without special reftest.list. r=heycam
MozReview-Commit-ID: 3BpOWa9lEat
2017-04-26 18:21:39 +08:00
Carsten "Tomcat" Book 68e9a2dfd5 Merge mozilla-central to mozilla-inbound 2017-04-26 09:04:59 +02:00
Carsten "Tomcat" Book 8f4e4ca99b merge mozilla-inbound to mozilla-central a=merge 2017-04-26 08:41:31 +02:00
Mike Conley 196e3f85b9 Bug 1357169 - Make radio-stretched reftest pass expectedly, and disable two reftests for Android. r=mats
MozReview-Commit-ID: A5zHwXl2euQ

--HG--
extra : rebase_source : 7c4db21d2183fee5a3144f1ad689dff282f04bba
2017-04-24 22:59:28 -04:00
Manish Goregaokar 096df01180 Bug 1356275 - Assert that we're on the main thread in the unused and unsafe Gecko_GetFontMetrics ; r=bholley
MozReview-Commit-ID: LGu8mdFMq9

--HG--
extra : rebase_source : 88cc01b15b9ba0ae6b4a5d1fe8fd0661c222c072
2017-04-14 10:44:00 +08:00
Manish Goregaokar 0fbbeaac11 Bug 1349417 - Part 10: Use mutex to guard system font computation; r=bholley
MozReview-Commit-ID: CBKdItjolm9
2017-04-21 15:41:02 -07:00
Manish Goregaokar ff68276c10 Bug 1349417 - Part 9: stylo: Update test expectations; r=xidorn
MozReview-Commit-ID: 5SGrYUIhHOQ
2017-04-21 15:40:49 -07:00
Manish Goregaokar 9511e12b7f Bug 1349417 - Part 2: stylo: Add basic system font support, use for font-size and font-family; r=xidorn
MozReview-Commit-ID: 4ZMR83GkAZN
2017-04-21 15:40:44 -07:00
Manish Goregaokar 876120ea51 Bug 1349417 - Part 1: stylo: Factor out system font computation into nsRuleNode::ComputeSystemFont; r=xidorn
MozReview-Commit-ID: KfzzCodvLXd
2017-04-21 15:40:40 -07:00
Wes Kocher 2bb10d8b72 Bug 1341102 - Remove empty failure annotations. a=me
MozReview-Commit-ID: 5AdiHyaVMBn
2017-04-21 14:42:44 -07:00
Wes Kocher ed9d7c6110 Bug 1341102 - Update expectations a=me
MozReview-Commit-ID: 2FwO7VbD2M7

--HG--
extra : rebase_source : aa2f75adb579e0e6fe88115f179e050cd7cb8629
extra : amend_source : 7fc4d9d1c44acf226b7bec528fc2e6dabebcd076
2017-04-21 14:29:40 -07:00
Emilio Cobos Álvarez 0f424ea1d6 Bug 1331047: Update test expectations. r=emilio
MozReview-Commit-ID: Lo62Wxd1WZ7
2017-04-27 17:17:08 +02:00
Emilio Cobos Álvarez 689b8d5205 Bug 1331047: Look at the style with animations in ResolveStyleLazily. r=hiro
MozReview-Commit-ID: 1p4D5p0jymb
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-27 17:06:30 +02:00
Emilio Cobos Álvarez 64fb6d73e1 Bug 1331047: Fix test_animations_event_order.html so that we actually have pseudo-elements. r=hiro
Took me more time than what I'd like to admit to figure this out.

MozReview-Commit-ID: FpphYwxAVC2
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-27 17:06:21 +02:00
Emilio Cobos Álvarez d77548d239 Bug 1331047: Implement the new traversal semantics for stylo. r=bholley,hiro
MozReview-Commit-ID: 4BXx9JpGZKX
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-27 17:06:11 +02:00
Chris H-C c2c97d341c bug 1357457 - Report non-overlapping Input Responses to Telemetry. r=bsmedberg,masayuki data-r=bsmedberg
Say there's a single lag event, a GC or a busy loop, during which the user
types several characters.

Is this one (lag) event? Several (input) events?

We have INPUT_EVENT_RESPONSE_MS which will accumulate several lagged events in
this case. However, that is more of an indication of how users use Firefox than
how good we've been at eliminating sources of lag.

INPUT_EVENT_RESPONSE_COALESCED_MS records the coalesced time spend waiting for
responses to input events. So in this case it will record one value for the
entire duration of the lag.

MozReview-Commit-ID: H5rYnhwF0q3

--HG--
extra : rebase_source : b9be179dac6c6a007d2835b909ec4ce71a3f1c90
2017-04-19 15:53:30 -04:00
Carsten "Tomcat" Book e1e203f1f5 Merge mozilla-central to autoland 2017-04-27 16:36:41 +02:00
Emilio Cobos Álvarez ac51e27e7f Bug 1359779: Also look at pseudo frames in nsComputedDOMStyle::DoGetStyleContextNoFlush. r=heycam
MozReview-Commit-ID: IvAehgyv18T

--HG--
extra : rebase_source : 402256a885c9f787f2fcfacb07a27a9db679fafb
2017-04-26 13:54:44 +02:00
Masatoshi Kimura a4c9e326d4 Bug 1358758 - Use CSSIntRect for nsIFrame::GetScreenRect. r=kats
MozReview-Commit-ID: KXPL1ERbFDa

--HG--
extra : rebase_source : 263b18d1736b09bb62d914f066481281966b288c
2017-04-25 07:33:13 +09:00
Hiroyuki Ikezoe 9d02da70b5 Bug 1341102 - Update mochitest expectations for transition shorthand fix. r=me
MozReview-Commit-ID: FL9r4TpNpRe
2017-04-23 06:23:41 +09:00
Emilio Cobos Álvarez 6274a34dce Bug 1358570: Make PurgeCompletedTransitions lookup the correct animation collection. r=hiro
Probably GetAnimationCollection itself should assert against it, but that's a
bigger task right now...

MozReview-Commit-ID: JxFWXtgMAXy

--HG--
extra : rebase_source : 90ffd33e56dd8d285765bc7a06572b0ae229b5e7
2017-04-21 16:53:21 +02:00
Bobby Holley 20d4e6d89f Bug 1341102 - Remove empty failure annotations. r=me
MozReview-Commit-ID: 1sPa0ppG45T
2017-04-21 13:48:35 -07:00
Wes Kocher bfd021657e Bug 1341102 - Update expectations a=me
MozReview-Commit-ID: EmcPeWPA2hz
2017-04-21 13:26:49 -07:00
Luis de Bethencourt da3a2f5255 Bug 1357932 - Add test for box-position keyword ordering, in serialization of specified CSS gradients. r=dholbert 2017-04-27 17:00:46 +01:00
Luis de Bethencourt 0114f51efb Bug 1357932 - Make AppendCSSGradientToBoxPosition() output horizontal keywords first, for better interop. r=dholbert 2017-04-27 14:48:42 +01:00
Carsten "Tomcat" Book e2b810f97e Merge mozilla-central to mozilla-inbound 2017-04-19 10:49:57 +02:00
Matt Woodrow 438790335b Bug 1351412 - Make the ContainerState AGR cache work even for non-async scrollable AGRs. r=mstange
--HG--
extra : rebase_source : 2875fc0c55a4020dbb3979b741fb4fa378a1642d
2017-04-19 15:39:17 +12:00
Hiroyuki Ikezoe 8ee98fd844 Bug 1352628 - Skip clipped-animated-transform-1.html. r=boris
The test case is supposed that transform transition runs on the compositor.
We can't enable this test until bug 1334036 is fixed.

MozReview-Commit-ID: 6zakBP7tjhs

--HG--
extra : rebase_source : ae4b0e80c5a655dc4ce27cc0945cb7cea2d0cab1
2017-04-21 06:48:26 +09:00
bechen d116c9373e Bug 1353689 - selectors/cue : Enable testcases under */selector/* . Fix the padding and overflow issue. r=rillian
MozReview-Commit-ID: 6jdlx01hEv7

--HG--
extra : rebase_source : 93a63954d5b64cb8a33de1ce560da8f97a5a2001
2017-04-17 17:27:23 +08:00
L. David Baron 1d8b4e0ef0 Bug 1307134 - Rename nsGlobalWindow::EnsureSizeUpToDate to EnsureSizeAndPositionUpToDate. r=tnikkel
This is because it does ensure both, and some of the callers care about
size and some care about position.

MozReview-Commit-ID: 3e8II6Lf72X

--HG--
extra : transplant_source : %EE%5E%87%1D%AA%EB%B9%22%D9%D6%D2%9D6U%C4%2A%CA%A1r%E9
2017-04-18 11:28:52 +09:00
Boris Chiou 14c973b7b3 Bug 1355758 - Update RestyleManager::mAnimationGeneration for non-animation update. r=heycam
We use RestyleManager::mAnimationGeneration as the animation index of a
new created transition, and Element.getAnimations() uses this index to
sort the order of transitions. We increase mAnimationGeneration one per
restyle cycle if there is any non-animation update.

MozReview-Commit-ID: KmirBzI7CXi

--HG--
extra : rebase_source : 6a9001ea99f86c25b1d8d0a822b51b8753248bfb
2017-04-21 16:44:17 +08:00
Iris Hsiao 7e2d844c6e Merge mozilla-central to autoland 2017-04-24 14:28:11 +08:00
Cameron McCormack 7369a05566 Bug 1241623 - Update stylo test expectations. r=me 2017-04-24 10:34:26 +08:00
Iris Hsiao 8b9629d52e Merge mozilla-central to mozilla-inbound 2017-04-24 12:04:12 +08:00
Jim Mathies 6d7dfb905e Bug 1351676 - Enable a reftest this work fixes. r=RyanVM
MozReview-Commit-ID: DdIG5r5IYd9

--HG--
extra : rebase_source : e03b01b14624d09030c23fccb56b14aa4deb4053
2017-04-20 13:03:15 -05:00
Shih-Chiang Chien 87439de51d Bug 1357327 - use ImgIRequest.boostPriority for increasing loading priority in nsImageFrame::Init. r=tnikkel
MozReview-Commit-ID: IpTZeMzllTZ

--HG--
extra : rebase_source : 32ead6461da653c8bc703d006d839395a8078387
2017-04-18 16:38:23 +08:00
Tom Tromey 6bbb235ebc Bug 1334302 - use MOZ_FORMAT_PRINTF in nsCSSRenderingBorders.h; r=mattwoodrow
Add MOZ_FORMAT_PRINTF to the definitions of PrintAsFormatString in
nsCSSRenderingBorders.h.

MozReview-Commit-ID: 9ZcSgNIPPhM

--HG--
extra : rebase_source : e2c3f86ac58835c0bdaf442f45fee25db99e52a6
2017-04-26 14:59:15 -06:00
Carsten "Tomcat" Book 6f04d66b74 Merge mozilla-central to autoland 2017-04-28 13:45:47 +02:00
Xidorn Quan 3b7a0c0e74 Bug 1355394 part 4 - Adjust test expectations. r=heycam
MozReview-Commit-ID: 9Xm6HVb5yge

--HG--
extra : rebase_source : 3e5f068a628726bbb2ad38b8cc97cd71d8b012a9
2017-04-26 19:41:01 +08:00
Xidorn Quan a82f5a5ae1 Bug 1355394 part 3 - Implement CSSOM support for @supports. r=heycam
MozReview-Commit-ID: AV1t6mIFF0J

--HG--
extra : rebase_source : b69ba50070290aef27dfe00866da8a59d3c8520f
2017-04-26 15:59:29 +08:00
Xidorn Quan 3c5ec261f5 Bug 1355394 part 2 - Move GetRules function into macro. r=heycam
MozReview-Commit-ID: AlQ5os4s26v

--HG--
extra : rebase_source : 49d19b5915cb38a1809d54f0aee9a2825f604eef
2017-04-26 15:57:57 +08:00
Xidorn Quan 1489bc2c0e Bug 1355394 part 1 - Add separate CSSSupportsRule base class. r=heycam
MozReview-Commit-ID: 3rCRn6YQ8Gx

--HG--
extra : rebase_source : 657d41029e65c647f7ea92c2cb34126496015e88
2017-04-26 16:55:36 +08:00
Jonathan Watt e08760adb5 Bug 1359449 - Remove NS_NewPagePrintTimer. r=mstange
MozReview-Commit-ID: 3SkqE086Ake
2017-04-06 18:07:39 +01:00
Jonathan Watt 40205887ee Bug 1359486 - Fix SVGImageContext::MaybeStoreContextPaint to work with DevTools chrome. r=dholbert
MozReview-Commit-ID: 7TL9cfWsiED
2017-04-05 11:44:16 +01:00
Sebastian Hengst e55101c5c8 Backed out changeset 85d3d629fa4a (bug 1359486) for crashing in 480345-1.html. r=backout 2017-04-25 19:44:03 +02:00
Jonathan Watt 1ba9dbe74f Bug 1359486 - Fix SVGImageContext::MaybeStoreContextPaint to work with DevTools chrome. r=dholbert
MozReview-Commit-ID: 7TL9cfWsiED
2017-04-05 11:44:16 +01:00
Mike Conley e29ff0c701 Bug 1357169 - Remove parts of flexbox-align-self-baseline-horiz-3 reftest that are broken by the backout of bug 418833. r=mats
MozReview-Commit-ID: H0tmuypTMbg

--HG--
extra : rebase_source : 392c11c63d1400cbffc535e8f80a9eb88d14461e
extra : source : c8a0dd29b2bb48f68c04090639f99888c187c027
2017-04-03 14:17:40 -04:00
J. Ryan Stinnett 417b2f5faa Bug 1359603 - Update test expectations. r=me
MozReview-Commit-ID: 900CmDa2JcE
2017-04-27 13:01:28 -05:00
J. Ryan Stinnett 6251d8b696 Bug 1359603 - Set text combined bit on the context for Servo as well. r=heycam
We want to set style bits on `nsStyleContext` regardless of which engine is
providing the style source.  The moves the bit set up to `SetStyleBits` which
runs for both sources.

MozReview-Commit-ID: 8N6oUyxz1Xs
2017-04-27 13:01:28 -05:00
Emilio Cobos Álvarez c083216e60 Bug 1341102: Update expectations for gradient interpolation hints (servo/servo#16628). r=emilio
MozReview-Commit-ID: FJ2Eci14i4f
2017-04-27 18:55:00 +02:00
Mike Conley 73847411fd Bug 1357169 - Manual back out of changeset eecb0af8a88f (bug 418833). r=mats
This also puts the Gecko-drawing of the checkbox / radio frames inside
nsGfxRadioControlFrame and nsGfxCheckboxControlFrame behind the
MOZ_WIDGET_ANDROID pragma for now.

MozReview-Commit-ID: BEyRfEmwjZY

--HG--
extra : rebase_source : fe42a65f55d822a2c7babd95898ec7520cc01616
extra : source : 9e2440ee6715204e88c7ae709a96ef7e1f707bdc
2017-03-31 09:47:57 -04:00
Mike Conley 2100fecd36 Bug 1357169 - Back out changeset b55a8d9517c8 (bug 1320809). r=mats
MozReview-Commit-ID: LCiH5P1L7bD

--HG--
extra : rebase_source : ec948746b4b1d16883e96126df3b6d1f72fa18fe
extra : source : 5322792c38b32f60dd2e205cddc79cb019e806ff
2017-03-31 09:46:25 -04:00
Bobby Holley ec12dfdca7 Bug 1348802 - Update test expectations. r=me 2017-04-25 17:23:23 -07:00
Emilio Cobos Álvarez ff655e4906 Bug 1355351: Update stylo test expectations due to missing pseudo-element style updates. r=emilio
MozReview-Commit-ID: 7GxLedWwdXw

--HG--
extra : rebase_source : f6df2b4d0919b9c090dfe2052e80f55609a4a830
2017-04-25 17:53:46 +02:00
Emilio Cobos Álvarez 6fe2b3e89d Bug 1355351: Simplify nsLayoutUtils callers, and make child iterators notice display: contents pseudos. r=heycam
This also happens to fix other bugs, like making display: contents pseudos
animatable, which weren't before.

MozReview-Commit-ID: LhwTPNbFvSZ

--HG--
extra : rebase_source : 785105b08d6bfa15ad257e61b769a263c6810ad0
2017-04-19 12:53:57 +02:00
Emilio Cobos Álvarez 135c333511 Bug 1355351: Clean up pseudo-element props. r=heycam
MozReview-Commit-ID: JZAhEN3chPs

--HG--
extra : rebase_source : f5756182a9ad35b6ac73a6f4d022c1f93ccbf333
2017-04-19 10:27:33 +02:00
Emilio Cobos Álvarez a47ba261fc Bug 1355351: Look for the frame for ::before and ::after pseudos. r=heycam
MozReview-Commit-ID: 7Hm2IGsl323

--HG--
extra : rebase_source : 4e55234e433cbe732b0ceaf9c1f8318b5c6b4640
2017-04-16 22:59:29 +02:00
Emilio Cobos Álvarez de9ddcaddd Bug 1355351: Add a node property to access the ::before and ::after pseudo-elements. r=heycam
MozReview-Commit-ID: FJxJp2U0Lxh

--HG--
extra : rebase_source : 062f952aafcda95ca3b0eba69389999c20cb4458
2017-04-16 17:29:49 +02:00
Manish Goregaokar ed8b20527d Bug 1341102 - Update test expectations; r=emilio
MozReview-Commit-ID: JyT97bbnyLa
2017-04-25 15:08:02 -07:00
Daniel Holbert 2a04b01eb4 Bug 1357117 followup: update stylo-failures.md for test_specified_value_serialization.html changes. a=me
MozReview-Commit-ID: 8NS9fXfZ4iD
2017-04-25 13:53:08 -07:00
Wes Kocher e6b22abf42 Bug 1357117 - Update stylo expectations a=me
MozReview-Commit-ID: AHo80HbOgj1
2017-04-25 13:07:57 -07:00
Daniel Holbert 5f50f9f8fe Bug 1357117 part 3: Serialize -webkit-linear-gradient() expressions using the (less-expressive) -webkit-linear-gradient syntax, instead of -moz-linear-gradient. r=heycam
Specifically:
* This patch uses a flag added in a prior patch to let us use the author's
  chosen prefix (-webkit or -moz) when serializing.  (We treat the -moz version
  as a special case, because that makes it more straightforward to unsupport
  -moz if/when we can.)
* This patch makes us share the linear-gradient() side-or-corner serialization
  codepath when serializing points for -webkit-linear-gradient. (The
  alternative is the -moz-linear-gradient codepath, which defaults to
  serializing with percent values 0%/100% for sides & corners -- and raw
  percentages are invalid in -webkit-linear-gradient(), so we can't share that
  codepath.) Notably, we have to skip the "to " token that the
  linear-gradient() codepath would normally print out -- that was a late
  addition to the spec and so it only exists in the unprefixed modern syntax.
  (Instead, -webkit-linear-gradient syntax is implicitly "from" the given
  point).


MozReview-Commit-ID: 9Oqo8nG1XDU

--HG--
extra : rebase_source : b15218d9cd97d3371e89365fc472d0bcd2672861
2017-04-25 11:48:41 -07:00
Daniel Holbert 4613644133 Bug 1357117 part 2: Add flag to distinguish between -moz & -webkit prefixed gradient expressions. r=heycam
This patch doesn't change our behavior -- we won't actually act on the new flag
until the next patch in this series.

MozReview-Commit-ID: EONsLM54eG1

--HG--
extra : rebase_source : cabd4a140d575794a8a656c47692bb9d3a02de88
2017-04-25 11:48:39 -07:00
Daniel Holbert f77ada324d Bug 1357117 part 1: Change linear-gradient serialization code to group space separator with the "to" token. r=heycam
This patch doesn't change our behavior -- we'll still produce the same serialization that we would've before.

MOTIVATION: A later patch will make us share this codepath to serialize into
-webkit-linear-gradient() syntax.  That syntax uses the same representation for
points as unprefixed modern linear-gradient() (with box-side-or-corner keywords
"top", "right", etc.), but it does *not* use the word "to".  So we'd like to
allow "to"-and-its-subsequent-space-character to be optional. Hence, this patch
groups the space together with "to", rather than as a prefix on the next token,
so that we can skip right to printing the point (without a leading space)
when we add support for -webkit-linear-gradient() serialization.

MozReview-Commit-ID: 5fCzx4NmpcC

--HG--
extra : rebase_source : 9f8b5c801b2f4352dd2ace3b79c40edb1795b361
2017-04-25 11:48:37 -07:00
cku 015e4aa234 Bug 1351015 - Not assuming nsStyleImage::ComputeActualCropRect always return true. r=heycam
nsStyleImage::ComputeActualCropRect may return false under 4 conditions
1. mType is not eStyleImageType_Image.
   This function is design to be used when mType is eStyleImageType_Image.
   Replace this 'if' check by MOZ_ASSERT.
2. nsStyleImage::GetImageData() returns nullptr
   This function will return true if this image refers to a local-ref resource.
3. GetImage returns failure or does not return a valid imgIContainer.
   It's possible. Please refers to the comment in imgReqestProxy::GetImage
   at [1].
4. imageSize is empty
   It's possible too. By giving a malformed image to a style image, we will hit
   this condition. And this is right what we met in this bug.

Since ComputeActualCropRect may actaully return false, we should remove the
NS_ASSERTION that assume it will always return true.

[1]
https://hg.mozilla.org/mozilla-central/file/7f1f1559cd8d/image/imgRequestProxy.cpp#l513

MozReview-Commit-ID: KHTFQJjiLtT

--HG--
extra : rebase_source : c4e119dd250094115ab23c323ca49f9ebc296698
2017-04-22 03:28:20 +08:00
Morris Tseng 17ca3b4db0 Bug 1358066 - Remove the painted layer invalidate region calculation if the painted layer has been optimized to color or image layer. r=mattwoodrow
MozReview-Commit-ID: KuwROm4DGk6
2017-04-21 15:27:48 +08:00
Mats Palmgren a33f36d036 Bug 1350925 part 3 - [css-grid] Reftest.
MozReview-Commit-ID: ITGh6urXXro
2017-04-18 22:35:05 +02:00
Mats Palmgren 9dc89e761d Bug 1350925 part 2 - Assert that we're given clean ReflowOutput overflow areas in ReflowChild. rs=dholbert
MozReview-Commit-ID: 1rRcC76jWxN
2017-04-18 22:35:05 +02:00
Mats Palmgren 5a8f74cd29 Bug 1350925 part 1 - Reset the scrolled frame's ReflowOutput overflow areas before re-using it for another child reflow. r=dholbert
MozReview-Commit-ID: Ct57seTFsaj
2017-04-18 22:35:05 +02:00
Mats Palmgren 5b360db4f2 Bug 1348857 part 4 - [css-grid] Reftests for grid items that stretch with no Automatic Minimum Size.
MozReview-Commit-ID: 2seF05eqC2W
2017-04-18 22:35:04 +02:00
Mats Palmgren 15a9399d44 Bug 1348857 part 3 - [css-grid] Only apply Automatic Minimum Size when the ApplyAutoMinSize bit is set, otherwise the minimum size is zero unless specified. r=dholbert
MozReview-Commit-ID: 40Rgcj0YZMm
2017-04-18 22:35:04 +02:00
Mats Palmgren c02d9817f3 Bug 1348857 part 2 - [css-grid] Propagate the ApplyAutoMinSize bit to nsFrame::ComputeSize (idempotent patch). r=dholbert
MozReview-Commit-ID: DBU4hDfCAdE
2017-04-18 22:35:04 +02:00
Mats Palmgren a243aa1c80 Bug 1348857 part 1 - [css-grid] Add a bit on GridItemInfo that says if we should apply Automatic Minimum Size or not (idempotent patch). r=dholbert
This renames ShouldClampMinSize to ShouldApplyAutoMinSize, which is more
accurate, and caches the value on the grid item for later use.
No functional changes other than that.

MozReview-Commit-ID: E1mvBZsMIxh
2017-04-18 22:35:04 +02:00
Mats Palmgren dc68da3cd9 Bug 1356820 part 2 - [css-grid] Reftests.
MozReview-Commit-ID: 5Q9hmoJhSxH
2017-04-18 22:35:04 +02:00
Mats Palmgren 0612b78b82 Bug 1356820 part 1 - [css-grid] Don't shrink-wrap the inline size when we have an available size when measuring block size. r=dholbert
The COMPUTE_SIZE_SHRINK_WRAP flag inhibits stretching in the inline axis
which means the item won't shrink below its min-content size.  In this
case min-width:0 should allow it to do that and since the column size is
smaller it should shrink, which in turn affects the measured block size.

MozReview-Commit-ID: AxQcMkYrxS5
2017-04-18 22:35:04 +02:00
Kartikaya Gupta 9945c16d87 Merge m-c to graphics
MozReview-Commit-ID: 9Ne0XZtlRh5
2017-04-18 08:36:05 -04:00
Ethan Lin 0e0ea44db7 Bug 1349500 - Add webrender support for BulletFrame path type. r=mchang 2017-04-18 14:26:41 +08:00
Kartikaya Gupta d4267ba58d Bug 1357189 - Some reftests marked as fails-if(webrender) are actually passing with the pre-existing fuzziness annotations. So mark them passing. r=rhunt
MozReview-Commit-ID: E90tLLDIt3j
2017-04-17 19:36:57 -04:00
Kartikaya Gupta 4087e4ae28 Merge m-c to graphics
MozReview-Commit-ID: KwTegQDnKGG
2017-04-17 10:33:46 -04:00
Sebastian Hengst 4bd7a206de merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: DZowmCXo7Q
2017-04-17 16:21:05 +02:00
Kartikaya Gupta 1e8738cabb Merge m-c to graphics
MozReview-Commit-ID: 7iqIrSl2VpU
2017-04-15 17:05:27 -04:00
Sebastian Hengst 8bd051237a merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: JpAhOPjgvkF
2017-04-15 19:59:24 +02:00
Hiroyuki Ikezoe 5d653db212 Bug 1324700 - Update reftest expectations. r=heycam
MozReview-Commit-ID: 38Gk7MCIjJD

--HG--
extra : rebase_source : c731ddc207090ef3c1003a4e7b328e6d939e6c3b
2017-04-15 07:37:35 +09: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
sotaro a824933324 Bug 1356130 - Change SendImageContainer() as to return Maybe<wr::ImageKey> r=jrmuizel 2017-04-14 09:13:12 +09:00
Kartikaya Gupta b4341d2689 Merge m-c to graphics
MozReview-Commit-ID: EGaA6e4loBM
2017-04-13 11:08:02 -04:00
sotaro 79b1971bae Bug 1356088 - Fix ImageKey removals of ExternalImages r=jrmuizel 2017-04-13 20:53:21 +09:00
Carsten "Tomcat" Book 3dc7a8afc0 Backed out changeset 6bbf9c0c5dac (bug 1344991) for causing bug 1356002 2017-04-13 09:47:01 +02:00
Wes Kocher 9898892ffc Merge autoland to central, a=merge CLOSED TREE 2017-04-12 18:20:10 -07: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 2986c817dc Merge autoland to central, a=merge CLOSED TREE 2017-04-12 15:13:30 -07:00
Wes Kocher 25d50f2c30 Merge inbound to central, a=merge 2017-04-12 14:39:09 -07:00
Wes Kocher b5e9293359 Bug 1341102 - Update expectation data r=me a=me CLOSED TREE 2017-04-12 13:41:30 -07:00
cku 258222aaaf Bug 1346618 - Part 1. Remove SVGImageContext::mGlobalOpacity. r=mstange
MozReview-Commit-ID: ByiPa4sreEh

--HG--
extra : rebase_source : eda6104c00cbc7ebe7b9a5ddc9e2abc73fbc37df
extra : source : df69799726bdccc5a25d6190c0fe22645e264ab7
2017-04-15 02:01:22 +08:00
Wes Kocher 1196244596 Backed out 3 changesets (bug 1353000) for devtools failures a=backout CLOSED TREE
Backed out changeset 7ef3333cedf5 (bug 1353000)
Backed out changeset bd127ce305c7 (bug 1353000)
Backed out changeset 10e777bb90dc (bug 1353000)

--HG--
extra : amend_source : 8db7e67b22347962be0fdb055df1bb2c1853ab67
2017-04-12 10:59:12 -07:00
Ryan VanderMeulen bc24b8741a Bug 1355206 - Run layout/base/tests on Android and skip failing tests. r=dholbert 2017-04-12 12:50:55 -04:00
Jonathan Kew 8ef78da7ff Bug 1353000 - Reftest to check that shaping rotated text does not disrupt non-rotated text due to cache pollution. r=jrmuizel 2017-04-12 14:55:16 +01:00
Ryan Hunt 243c73c180 Bug 1355570 - Respect aSrc when building WebRender gradients r=mattwoodrow
MozReview-Commit-ID: 6YfNRGYnHcK

--HG--
extra : rebase_source : 02d85de5342b54ea85456dac2403fcf6270c8884
extra : histedit_source : 05c11c0766bdd274af0ffff528e32ed9ad1d29a4
2017-04-11 14:30:33 -04:00
Ryan Hunt 4a34413551 Bug 1355570 - Simplify nsCSSRenderingGradients r=mattwoodrow
In nsCSSRenderingGradients the logic for handling many error conditions
and normalizing the gradient stops is shared between the paint path and
the WebRender path. WebRender now normalizes gradients and handles any
error conditions that it needs to. There are some conditions that are not
problems for it, like repeating radial gradients with stops below zero.

This commit undoes the work done in bug 1341101 to share this logic. Some
conditions were moved around in bug 1341101 to make things simpler, and
that has been undone. Now the paint path is identical to how it was
originally.

There is one exception, which is ResolveMidpoints which is kept between
both code paths. This should be safe.

MozReview-Commit-ID: LMhMNXNquXM

--HG--
extra : rebase_source : 2d389f76134671b6caa44a3b7370b1c786576bdc
extra : histedit_source : caf5d3a456cbb9987970783969d0eb2a424e7eca
2017-04-11 14:30:13 -04:00
Ryan Hunt 8840b347cb Bug 1355570 - Premultiply WebRender gradient stop colors r=mattwoodrow
MozReview-Commit-ID: 7zdxaJR5yS4

--HG--
extra : rebase_source : ad7b6eaa885e1ed5c2bff74cb25404c71c17ea0c
extra : histedit_source : af61fa9ed492e4c175c675c15ffb103ad47b01e8
2017-04-11 12:22:24 -04:00
Ryan Hunt bfa4ee5cb2 Bug 1355570 - Update bindings and WebRender display list building for gradient tiling r=jrmuizel
MozReview-Commit-ID: KwhCBc8XxCN

--HG--
extra : rebase_source : a5608b3388528ae1bd39be5f2fd9b2094193d46c
extra : source : c244293944bc163a742ef1b6f4225a751db5f796
extra : histedit_source : 860c2dc0fd3f8a5f35aea9b1ca15218d64208b65%2C803c9c5d3e85ee73fda2e3ccf504426b4798aecb
2017-04-12 14:20:52 -05:00
Kartikaya Gupta 2807504086 Merge m-c to graphics
MozReview-Commit-ID: 3cMszvTBvR8
2017-04-12 08:54:40 -04:00
Ethan Lin 44273be6f1 Bug 1355417 - Enable "layers.advanced.button-foreground-layers" by default. r=mchang 2017-04-12 16:47:21 +08:00
Iris Hsiao 944f87c575 merge mozilla-inbound to mozilla-central a=merge 2017-04-12 11:16:46 +08:00
Hiroyuki Ikezoe f0a3340857 Bug 1341102 - Update mochitest expectations. r=me 2017-04-12 05:08:26 +09:00
Kartikaya Gupta aa20d100c1 Merge m-c to graphics
MozReview-Commit-ID: Ij5C7MUete4
2017-04-11 10:09:54 -04:00
Carsten "Tomcat" Book ee9da45454 merge mozilla-inbound to mozilla-central a=merge 2017-04-11 10:17:24 +02:00
David Anderson a8433cef6b Collect diagnostics on paint times for the compositor overlay. (bug 1352151 part 1, r=mattwoodrow)
--HG--
extra : rebase_source : f30dc11079add3f1019777b1c85cc5c5a5f0596b
2017-04-10 19:44:45 -07: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
Kartikaya Gupta 18bf4caba2 Merge m-c to graphics
MozReview-Commit-ID: ICVAgHmKVL4
2017-04-10 08:47:20 -04:00
Morris Tseng 5cb5800c6b Bug 1347469 - Add support for gradient border. r=mattwoodrow
MozReview-Commit-ID: 7RfVsPFWhlo
2017-04-10 17:27:30 +08:00
Kartikaya Gupta 2c2b0401e3 Merge m-c to graphics
MozReview-Commit-ID: AYIBc0tfd74
2017-04-07 10:11:08 -04:00
Emilio Cobos Álvarez aedc6b5901 Bug 1325878: Update test expectations. r=emilio
MozReview-Commit-ID: 9hsOP3CaCwJ
2017-04-13 00:52:51 +08:00
Ethan Lin 0834f181db Bug 1351242 - Add webrender support for nsDisplayBackgroundImage image type. r=mchang 2017-04-07 14:53:16 +08:00
Masatoshi Kimura 14b8ca8af8 Bug 1356565 - Use AddFloatVarCache to cache layout.css.devPixelsPerPx. r=kanru
MozReview-Commit-ID: HZ9pBiU17H3

--HG--
extra : rebase_source : 4c8dba672927362e7ecace6d49ad1452af7bc1e2
extra : source : 348f81ec40a7894fbf1c7c5112beafb79970b956
2017-04-09 01:28:54 +09:00
Sebastian Hengst 4c8fa6d5da merge mozilla-central to autoland. r=merge a=merge 2017-04-15 00:08:12 +02:00
Sebastian Hengst d8496d0a1f merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: EjT9dcum69m
2017-04-14 23:56:10 +02: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 adbc9c9d4f Merge mozilla-central to mozilla-inbound 2017-04-14 17:20:09 +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
Wes Kocher 4fab232444 Merge autoland to central, a=merge 2017-04-13 13:03:43 -07:00
Sebastian Hengst 3ec03039d2 Backed out changeset 6bd69f962dd5 (bug 1346618) for permafailing reftest 315920-9.html on Android 4.3 API15+ debug. r=backout 2017-04-13 18:56:58 +02:00
Sebastian Hengst a352ed0353 Backed out changeset b2a3d0fd9675 (bug 1346618) 2017-04-13 18:55:26 +02:00
Jeff Gilbert 326703ec04 Bug 1355763 - Add gfxAlphaType for specifying opaque/premult/non-premult. - r=daoshengmu
MozReview-Commit-ID: Jzr8aPYlEcO
2017-04-13 09:14:34 -07:00
Neil Deakin 3a1b430f17 Bug 1334635, don't flush layout in the tree's CheckOverflow method if the scroll overflow hasn't changed, r=jaws, dholbert
The flush was added due to the overflow/underflow events causing recursion in some cases. But if the events aren't fired there is no point in doing this. The password manager test is changed to flush since it relies on showing/hiding tree columns but currently doesn't wait for a relayout before asking for cell information.
2017-04-13 08:21:23 -04: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
Wes Kocher 5afdefe075 Backed out changeset f179621a517b (bug 1147538) for osx reftest failures a=backout 2017-04-13 23:59:49 -07:00
Ehsan Akhgari 83690b136c Bug 1352527 - Part 2: Switch nsBidiPresUtils consumers of nsBidi to use nsLayoutUtils::GetBidiEngine(); r=jfkthame 2017-04-14 02:41:55 -04:00
Ehsan Akhgari 4d2ae56c58 Bug 1352527 - Part 1: Add the nsPresContext::GetBidiEngine() API; r=jfkthame
The nsBidi API requires the consumer to first call SetPara()
in order to perform bidi resolution and that resets the data
members, so there is no need to recreate nsBidi objects from
scratch each time we need to perform bidi resolution.

Having this API allows us to reuse this object across the
calls to nsBidiPresUtils members.
2017-04-14 02:41:52 -04:00
Mason Chang c6730cfadf Bug 1353906 - Enable box shadows with a uniform border radius in WR. r=rhunt 2017-04-05 09:00:50 -07:00
Carsten "Tomcat" Book 207b516e89 merge mozilla-inbound to mozilla-central a=merge 2017-04-06 12:50:50 +02:00
Daniel Holbert 600a5b4a75 Bug 812687 part 10: Skip new mochitest test_flexbox_focus_order.html on mac for now (pending a tweak to give it sane mac focus behavior in followup bug 812687).
MozReview-Commit-ID: 2u3HGdiuK8P
2017-04-05 21:50:26 -07:00
Manish Goregaokar 372552d50a Bug 1341102 - Update stylo reftest expectations ; r=manishearth
MozReview-Commit-ID: 7McIBITzNb2
2017-04-12 15:55:00 +08:00
KuoE0 aad274a424 Bug 1354000 - Update test result. r=heycam
MozReview-Commit-ID: CGNYT256Oph

--HG--
extra : rebase_source : 775739c11e88b1bf00b13de14ac35015f80c5996
2017-04-10 22:32:36 +08:00
Simon Sapin e587edf187 Bug 1355028 - stylo: Add gtest microbenchmarks for CSS parsing performance. r=bholley,froydnj
These can be run with:

    ./mach gtest Stylo.*

Note that running `./mach build` is required after modifying example.css

MozReview-Commit-ID: 8KvhYHgGLfD

--HG--
extra : rebase_source : 30adcc530e2e527b575868d5ff9fdf8cbbf59345
2017-04-10 11:26:15 +02:00
Manish Goregaokar 8854b518a1 Bug 1342596 - Update expectations for absolute length serialization ; r=manishearth 2017-04-12 14:57:20 +08:00
Boris Zbarsky 148f51a721 Bug 1351926. Set the resize flags to false at the beginning of InitResizeFlags, so stale values from an old (incorrect) computed bsize won't keep being propagated in cases when we SetComputedWidth or SetComputedHeight on the ReflowInput. r=dbaron
MozReview-Commit-ID: 56YFAw3KOmi
2017-04-05 23:07:40 -04:00
Daniel Holbert 6f23054538 Bug 812687 part 9: Add tests for "order" property's influence on list-numbering, baseline, and focus order in a flexbox. (no review, test-only)
MozReview-Commit-ID: EEkPlCgzknG

--HG--
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-baseline-multi-item-horiz-001.html => layout/reftests/w3c-css/submitted/flexbox/flexbox-baseline-multi-item-horiz-001a.html
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-baseline-multi-item-horiz-001.html => layout/reftests/w3c-css/submitted/flexbox/flexbox-baseline-multi-item-horiz-001b.html
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-baseline-multi-item-vert-001.html => layout/reftests/w3c-css/submitted/flexbox/flexbox-baseline-multi-item-vert-001a.html
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-baseline-multi-item-vert-001.html => layout/reftests/w3c-css/submitted/flexbox/flexbox-baseline-multi-item-vert-001b.html
2017-04-05 19:31:48 -07:00
Daniel Holbert 754dd1bf03 Bug 812687 part 8: Add a test for "order" on flex items with abspos siblings. r=mats
MozReview-Commit-ID: aCBQER5r2G

--HG--
rename : layout/style/test/test_flexbox_order.html => layout/style/test/test_flexbox_order_abspos.html
2017-04-05 19:31:48 -07:00
Daniel Holbert 7d9d8415dc Bug 812687 part 7: Minor cleanup in existing test_flexbox_order mochitests. (no review, test-only)
This patch:
 - does s/var/let/ to upgrade to modern JS best-practices.
 - Wraps some lines that are too long.
 - Changes loops to "for (let foo of [...])" rather than foreach+function-pointer.
 - Changes some copypasted cleanup code to use a loop instead (which will be especially useful in a forthcoming version of this test that'll add another thing to clean up).

MozReview-Commit-ID: DWK8jFbfqeB
2017-04-05 19:31:47 -07:00
Daniel Holbert c05bf39d8c Bug 812687 part 6: Rename & invert polarity of a flexbox frame-state-bit, for consistency with grid. r=mats
This patch is just flipping some logic in a way that should produce the same
outcome, so it shouldn't affect behavior.

MozReview-Commit-ID: LM4HbJD3D9w
2017-04-05 19:31:47 -07:00
Daniel Holbert 17ef2998db Bug 812687 part 5: Adjust nsFlexContainerFrame to use CSSOrderAwareFrameIterator instead of reordering its child frame list. r=mats
This patch shouldn't change our layout order or paint order for flex items
(though it will change our behavior for the better when an abspos child is
present, as discussed in bug 1345873).

This patch *will* change the tab-index behavior of flex items. Previously, the
default tab order would match the visual order (i.e. it would respect "order"),
because it depends on the frame tree, and we sorted the frame tree by
"order". Now, the tab-index will come from the DOM order (the unmodified frame
tree), as the spec requires.

MozReview-Commit-ID: 9OsqQX1sEn3
2017-04-05 19:31:47 -07:00
Daniel Holbert 047c5e7b26 Bug 812687 part 4: Add an optional parameter which can make CSSOrderAwareFrameIterator use the legacy "box-ordinal-group" property. r=mats
This patch just adds an optional codepath that isn't taken yet, so it shouldn't
affect our behavior. (The next patch in the series will make use of this new
codepath.)

Note: the large code-comment that this patch adds is taken mostly-verbatim from
some nsFlexContainerFrame.cpp code. (The original copy will be removed by the
next patch in this series, when we switch to take advantage of this new
mechanism.)

MozReview-Commit-ID: 9pkJ346rrXg
2017-04-05 19:31:47 -07:00
Daniel Holbert d6f3c58c61 Bug 812687 part 3: Move CSSOrderAwareFrameIterator code to its own .h/.cpp file. r=mats
This patch just moves code, so it should not affect our behavior at all.

MozReview-Commit-ID: 4yxSR5rWUV1
2017-04-05 19:31:47 -07:00
Daniel Holbert 9a4b6b6d74 Bug 812687 part 2: Rename GridItemCSSOrderIterator to CSSOrderAwareFrameIterator (& similar for its Reverse form). r=mats
This patch is purely type-renames, so it should not affect our behavior at all.

MozReview-Commit-ID: 51zRGFyVDtT
2017-04-05 19:31:47 -07:00
Daniel Holbert db6436ab45 Bug 812687 part 1: Rename GridItemCSSOrderIteratorT to CSSOrderAwareFrameIteratorT, and drop "Grid" from its method names. r=mats
This patch is purely type-renames & method-renames, so it should not affect our
behavior at all.

MozReview-Commit-ID: 5N7zru0uPfD
2017-04-05 19:31:47 -07: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
Emilio Cobos Álvarez f7cf08128a Bug 1325878: Pass the MediaList down to Servo, making <style media> work. r=xidorn
MozReview-Commit-ID: BUCSQJs2CNI
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-13 00:30:10 +08:00
Emilio Cobos Álvarez 6ec12dc4f5 Bug 1325878: Don't hardode nsMediaList in dom::StyleSheet. r=xidorn
MozReview-Commit-ID: IynF1NFUSLf
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-13 00:30:09 +08:00
Emilio Cobos Álvarez 75a86d5f3c Bug 1325878: Support deep-cloning of ServoMediaLists. r=xidorn
MozReview-Commit-ID: K7NFe1tKrAZ
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-13 00:30:07 +08:00
Emilio Cobos Álvarez ac4f44ca96 Bug 1325878: Don't use nsMediaList for loading imports. r=xidorn
MozReview-Commit-ID: HR23bqZcmcA
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-13 00:30:06 +08:00
Emilio Cobos Álvarez c0d9b6a9d7 Bug 1325878: Use dom::MediaList in the CSS Loader. r=xidorn
MozReview-Commit-ID: 8KcKYrkk3jI
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-13 00:30:05 +08:00
Emilio Cobos Álvarez 16cd642c17 Bug 1325878: Create less hardcoded nsMediaList instances. r=xidorn
MozReview-Commit-ID: K6T3MM1ZrFb
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-13 00:30:03 +08:00
Emilio Cobos Álvarez 3cb9f7d4fb Bug 1325878: Allow creating empty Servo MediaList. r=xidorn
MozReview-Commit-ID: H7owjPB8dRi
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-13 00:30:01 +08:00
Emilio Cobos Álvarez 09c3d2ae66 Bug 1354886: null-check parent in FrameConstructor::StyleNewChildren. r=heycam
MozReview-Commit-ID: DLZxQu8LI4o
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-13 00:30:00 +08:00
Xidorn Quan d16d2b8864 Bug 1341102 - Update test expectations.
MozReview-Commit-ID: 8keD8rcYFIa

--HG--
extra : rebase_source : a5a1433d1458e08136baabbd63ac59d291768bff
2017-04-13 00:27:25 +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
J. Ryan Stinnett 7f0b8b2dd6 Bug 1345206 - Wire up bindings for @page rule. r=xidorn
Connect the Servo types and functions for working with @page rules to Gecko.

This also adjusts the Stylo test expectations to match the current state with
@page support.

MozReview-Commit-ID: 513d05m51wK

--HG--
extra : rebase_source : aa92dc1ad4b3949418759b3893a918663ec6ee0c
2017-03-30 21:25:22 -05:00
J. Ryan Stinnett 7a5e0808ba Bug 1345206 - Create ServoPageRule. r=xidorn
Adds `ServoPageRule` for use as the CSSOM representation of @page rules parsed
by Servo.

MozReview-Commit-ID: 7AIErJmoZN

--HG--
extra : rebase_source : f47448b9053e6a49023799631ca1d36f058272f4
2017-03-31 16:13:12 -05:00
J. Ryan Stinnett 0ccdacdf3a Bug 1345206 - Extract CSSPageRule base class. r=xidorn
Extract a `CSSPageRule` base class from the existing Gecko `nsCSSPageRule`
class.  This will be used in the next commit as the parent of a new
`ServoPageRule` for the Servo variant.

MozReview-Commit-ID: 1F3FWfVKH29

--HG--
extra : rebase_source : 5186cf2e233f3a757676a0127752faa8cc748cd4
2017-03-31 19:14:49 -05:00
J. Ryan Stinnett ef7df34c21 Bug 1345206 - Correct faulty assertions in test_page_parser. r=xidorn
test_page_parser.html tried to check parser behavior with a property that's not
allowed in an @page context, such as `position: absolute`.  However, the test
forgot to apply the @page wrapper for this rule, so we weren't checking the
intended case after all.

MozReview-Commit-ID: LSd3aLwZAST

--HG--
extra : rebase_source : f841fcd1ae7e37eaa928e39e116cd9a6a5385f85
2017-04-03 18:17:09 -05:00
Wes Kocher 5eabc03c18 Merge m-c to autoland a=merge 2017-04-10 16:55:21 -07:00
Wes Kocher 05965b79a9 Merge inbound to central, a=merge 2017-04-10 16:32:45 -07:00
Mats Palmgren e0c482815a Bug 1353573 - Don't try to preserve frame state bits across the ReflowInput ctor. r=dbaron
MozReview-Commit-ID: CjaUQjlv3ll
2017-04-10 19:25:58 +02:00
Xidorn Quan ff8497b005 Bug 1341724 followup - Adjust reftest expectations. a=merge
MozReview-Commit-ID: KPZUOdERNEK

--HG--
extra : source : 1ab3c4b1b127f5e62d5607bf7151ea5997a57e75
2017-04-10 20:54:22 +08:00
Brad Werth 5220dc6f4f Bug 1346256 Part 3: Modify GetCSSStyleRules to collect ServoStyleRules. r=xidorn
MozReview-Commit-ID: IMQLykuXjfL

--HG--
extra : rebase_source : 0262e0a426e23dfb6935f1fed95e38393314c67c
2017-04-07 15:21:36 -07:00
Brad Werth 7c2789c8d2 Bug 1346256 Part 2: Define methods in ServoCSSRuleList to fill a hash of RawServoStyleRule to ServoStyleRule. r=heycam,xidorn
MozReview-Commit-ID: 4Swb9KwV0uO

--HG--
extra : rebase_source : 771ac051648526b2cef59acc8f700548762b73b6
2017-04-07 08:07:37 -07:00
Daniel Holbert 45f5064a95 Bug 1355179 part 2: Add comment about porting B2G checks to be Android checks in test_event_target_radius.html. r=kats
MozReview-Commit-ID: G0zCLxHzfYs

--HG--
extra : rebase_source : 7e70acbbe916ae63488a06bd7734ec541394ebee
2017-04-10 12:53:29 -07:00
Daniel Holbert d8b31ff1eb Bug 1355179 part 1: Remove always-true-now checks for !=B2G in test_reftests_with_caret.html. r=kats
MozReview-Commit-ID: CVizePCiI7W

--HG--
extra : rebase_source : 14a78b3c9be8551ea9b6040d60eac72ff6727255
2017-04-10 12:47:39 -07:00
Brad Werth 50b320d9d3 Bug 1346256 Part 1b: (Gecko) Add FFI interfaces for exposing style sources. r=heycam
MozReview-Commit-ID: FOQCgXD68E9

--HG--
extra : rebase_source : b393f646df3a4115bc9417c6b8a90b3be0d8dceb
2017-04-06 10:19:00 -07:00
Manish Goregaokar 6be22491bd Bug 1341724 - Part 4: stylo: Make font metrics usage threadsafe; r=heycam
MozReview-Commit-ID: 3EqpUy09UuI
2017-04-10 17:06:19 +08:00
Manish Goregaokar a53d1de023 Bug 1341724 - Part 3: stylo: Use gecko's font metrics; r=heycam
MozReview-Commit-ID: 6yYYauqCJHq
2017-04-10 17:06:17 +08:00
Manish Goregaokar 308b6ea838 Bug 1341724 - Part 2: stylo: Add bindings for fetching font metrics from Gecko; r=heycam
MozReview-Commit-ID: BkPNq22ruwU
2017-04-10 17:06:14 +08:00
Manish Goregaokar 0f5f58cb55 Bug 1341724 - Part 1: stylo: Refactor nsRuleNode::GetMetricsFor; r=heycam
MozReview-Commit-ID: G709Er7GXwe
2017-04-10 17:06:12 +08:00
Ting-Yu Lin 867c2263f2 Bug 1312328 - Remove CSS variables preference "layout.css.variables.enabled". r=xidorn
MozReview-Commit-ID: HwYpwbhQkZj

--HG--
extra : rebase_source : 245d116b1fef01fa1db11eef70aa0379e8a9c9e9
2017-04-07 00:29:39 +08:00
Xidorn Quan b7131eca1d Bug 1343964 followup - Add back code change which was incorrectly dropped when addressing review comment on a CLOSED TREE.
MozReview-Commit-ID: Kwehpac1Dia

--HG--
extra : source : dea1d96c2c4a60125fc4ffbfd2f24505ec79f3dd
2017-04-07 13:56:03 +10:00
Ting-Yu Lin 8e0273ab91 Bug 1351205 - Skip debug check for Stylo in nsComputedDOMStyle::UpdateCurrentStyleSources(). r=heycam
The debug code calls nsStyleContext::GetParent(), which is invalid in stylo.
Let's skip it.

MozReview-Commit-ID: 5opMaSuyoNr

--HG--
extra : rebase_source : e316b5d45ebe634a63ef0e44ed0b7183551551d4
2017-03-28 16:08:07 +08:00
Bobby Holley 04137c02ea Bug 1354358 - Assert main thread in NS_IMPL_FFI_REFCOUNTING. r=xidorn
MozReview-Commit-ID: 4J7yuJ8Thn0
2017-04-06 19:22:01 -07:00
Mike Hommey d6aaa996f4 Bug 1353990 - Stop exporting brotli headers. r=gps
They have generic names, and are potentially conflicting with
in-tree headers with the same name (which is true for at least port.h).

There aren't enough users of brotli to want to avoid LOCAL_INCLUDES
in the directories that use it.

--HG--
extra : rebase_source : 82531ac5961ad80e1b3d0c1484a2f146be194411
2017-04-06 13:44:47 +09:00
Xidorn Quan e27d2e7dbe Bug 1343964 part 8 - Update mochitest expectation. r=xidorn
MozReview-Commit-ID: 36zfle7hfOG

--HG--
extra : rebase_source : cdbdf68bcf7c0b232a7b86862ff97d9aab4ca94b
2017-04-04 17:16:45 +10:00
Xidorn Quan 987754e4dc Bug 1343964 part 7 - Use URLExtraData for declaration modification directly for Servo backend. r=heycam
MozReview-Commit-ID: 78JRYKk9hgV

--HG--
extra : rebase_source : 1a86db507451637379e35ea17d9dbd88e8dc6902
2017-04-04 16:09:20 +10:00
Xidorn Quan 3d5b648721 Bug 1343964 part 6 - Add a const Rule() method for ServoStyleRule. r=heycam
MozReview-Commit-ID: 1rvWrN3Biut

--HG--
extra : rebase_source : 174ccdeb847c8f3f0807690a0ab0fa2bc949a2f2
2017-04-04 16:07:44 +10:00
Xidorn Quan 04c1637bb1 Bug 1343964 part 5 - Factor out common part of nsDOMCSSDeclaration::Parse{,Custom}PropertyValue. r=heycam
MozReview-Commit-ID: 6IX8sWF4Vhn

--HG--
extra : rebase_source : 197c9ccf51e8bb86f7335a5a72b370c89a23d7ea
2017-04-04 15:28:07 +10:00
Xidorn Quan 4400d347a2 Bug 1343964 part 3 - Have ServoStyleSheet own a URLExtraData. r=heycam
MozReview-Commit-ID: CQyvrVtl0hr

--HG--
extra : rebase_source : 547fce2e9118bf9d6714775df847e8236aec74b6
2017-04-04 13:41:44 +10:00
Xidorn Quan 514feab11a Bug 1343964 part 2 - Move dummy url data to be a static member of URLExtraData. r=heycam
MozReview-Commit-ID: I6pc9WmrLW0

--HG--
extra : rebase_source : 9af2e97d22c58f480603eef97a833539bf69ced9
2017-04-04 13:21:16 +10:00
Xidorn Quan 2df49dbac2 Bug 1343964 part 1 - Move URLExtraData into its own header. r=heycam
This patch does the following in addition to a simple move:
* change the type of the pointers from RefPtr to nsCOMPtr
* move it from mozilla::css namespace to mozilla

MozReview-Commit-ID: 72MYq6kWm4s

--HG--
extra : rebase_source : 400fe0d7cc422f22592c302cfd4e457830b77e3e
2017-04-04 10:04:13 +10:00
Markus Stange 6bc4c8de32 Bug 1354255 - Remove ElementRestyler::ComputeStyleChangeFor profiler instrumentation due to overhead. r=Ehsan
This only has overhead if the profiler is running, but it means that it has
the potential to skew restyle times in profiles.
We haven't measured the overhead of this, but it's probably non-zero, and at
the moment our profiling efforts are more focused on getting accurate times
than on getting useful information about restyling cost sources.

MozReview-Commit-ID: 3KmiiyGrxZH

--HG--
extra : rebase_source : df7047f1af5f36f7a1b3a18498d8eb5508ee0b93
2017-04-06 17:20:40 -04:00
Jonathan Watt c42adf48d9 Bug 1358828, part 1 - Add some missing includes. r=longsonr
MozReview-Commit-ID: 3nDDATmCkJV
2017-03-27 12:49:21 +01:00
Shih-Chiang Chien 168d942879 Bug 1312771 - increase loading priority for images that are visible in viewport. r=tnikkel 2017-03-27 15:54:00 +08:00
Shih-Chiang Chien 980860cb2a Bug 1312770 - Slightly increase loading priority for images that need size information for layout. r=tnikkel
MozReview-Commit-ID: 3SHpPXyIdVB

--HG--
extra : rebase_source : 55c06dd175a957d7e976f7e03869784320e73d67
2017-03-27 15:53:49 +08:00
Morris Tseng 7eb27c99ad Bug 1358961 - IsPartOfOpaqueLayer should consider ColorLayer as well. r=mattwoodrow
MozReview-Commit-ID: 9PUKdz7m1uJ
2017-04-25 11:02:48 +08:00
Aryeh Gregor 1d730f1c5d Bug 1359371 - Update Selection.webidl to match spec r=smaug
Practical changes:

1) Some additional method arguments are nullable or optional, which
matches Chrome/WebKit.  They make more sense non-nullable and
non-optional, but Chrome is afraid of the compat impact of changing.

2) Added [CEReactions] to deleteFromDocument().

MozReview-Commit-ID: Kg9EDubnEui

--HG--
extra : rebase_source : 1d47ee0b12b0b719159c326f789dd6e6b6000c8e
2017-04-25 14:55:31 +03:00
Wes Kocher 0becaff588 Merge autoland to central, a=merge 2017-04-17 12:41:36 -07:00
Sebastian Hengst ca156179a9 merge mozilla-central to autoland. r=merge a=merge 2017-04-17 16:30:50 +02:00
Sebastian Hengst e7317789ad Backed out changeset 225683fed1d1 (bug 1294641) for breaking crashtests, reftests and Windows builds. r=backout on a CLOSED TREE 2017-04-17 16:29:52 +02:00
Alex Gaynor fd11319799 Bug 1294641 - whitelist reads from the .app directory in the macOS sandbox r=froydnj,haik
This patch does a few things:
a) Adds the resources location from the .app directory to the read whitelist
b) When it's a non-packaged build, mach run (and various mach tests) set an environment variable for the repo location which we allow reads from.

r=haik,froydnj

MozReview-Commit-ID: KNvAoUs5Ati

--HG--
extra : rebase_source : f637acff32fc8582732de932503dd696abc57877
2017-04-07 14:53:19 -04:00
Boris Chiou c5320aa985 Bug 1341372 - Part 6: Update css-transitions/reftest-stylo.list. r=hiro
All pass.

MozReview-Commit-ID: 99o8zcSKh1f

--HG--
extra : rebase_source : fd65c26ae18cb3cf1b5549f02d203fedaeed44a5
2017-04-07 15:01:07 +08: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
Ting-Yu Lin 4dfd125235 Bug 1356971 - Use StyleSetHandle::BackendType in PresShell::Init(). r=bholley
MozReview-Commit-ID: DCKafKa6SLt

--HG--
extra : rebase_source : 8b6b80df31e2c5c8f9dcb87fc775d66737d5a820
2017-04-17 14:52:17 +08:00
Jonathan Watt 74755b0df4 Bug 1358794, part 2 - Reftests to check SVG embedded by SVG <image> gets a synthetic viewBox if necessary. r=longsonr
MozReview-Commit-ID: FWCXcU0TUEz
2017-03-25 17:05:37 +00:00