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

56048 Коммитов

Автор SHA1 Сообщение Дата
Kartikaya Gupta 317d304694 Merge m-c to graphics
MozReview-Commit-ID: 9kxCUtDZT9J
2017-03-29 10:24:15 -04:00
Ryan VanderMeulen f4a0d77ffc Merge inbound to m-c. a=merge 2017-03-29 09:41:54 -04:00
Thinker K.F. Li 53cb8600b7 Bug 1343057 - Part 2: Disable AA for layers with animation in effect. r=mattwoodrow
--HG--
extra : rebase_source : 1de5a9f4a4e18ba8624433a43a22b8ac47a9cc91
2017-03-29 09:38:00 -04:00
Thinker K.F. Li c3c86f2b4d Bug 1343057 - Part 1: Recycle painted layers with AA in mind. r=mattwoodrow
--HG--
extra : rebase_source : 70c009c778e03ea96f430dd96fe2abc645addb7d
2017-03-29 09:37:00 -04:00
Sebastian Hengst 95d52e6546 Backed out changeset e4ecf720b3a1 (bug 713680) for crashing in dom/tests/mochitest/chrome/test_xray_event_constructor.xul on Windows 7 debug. r=backout 2017-03-29 21:51:05 +02:00
Mason Chang e08bd7cbdb Bug 1351114 Properly track display item layers in layer managers. r=mattwoodrow 2017-03-28 22:37:11 -07:00
Kartikaya Gupta 7f14241f6d Bug 1349692 - Adjust fuzziness of a couple of reftests with webrender. r=jrmuizel
The fuzziness was introduced by https://github.com/servo/webrender/pull/966 and
might be fixed in the future, see discussion starting at
https://github.com/servo/webrender/pull/966#issuecomment-289332927

MozReview-Commit-ID: AIx6FY8XAiK
2017-03-28 17:49:17 -04:00
Kartikaya Gupta cbf426c332 Merge m-c to graphics
MozReview-Commit-ID: GvQyuOvxr8o
2017-03-28 09:12:16 -04:00
Carsten "Tomcat" Book 5b9719c5fc merge mozilla-inbound to mozilla-central a=merge 2017-03-28 13:03:25 +02:00
Ethan Lin bb6943a029 Bug 1349497 - Add pref to create color layer for nsDisplayBackgroundColor. r=mchang 2017-03-28 16:48:14 +08:00
Mason Chang 3b2070933d Bug 1350182 - Enable button border display items by default. r=ethlin 2017-03-27 13:09:55 -07:00
Kartikaya Gupta ec69fdebcf Merge m-c to graphics
MozReview-Commit-ID: I4ehbSXNLmS
2017-03-27 09:18:34 -04:00
Carsten "Tomcat" Book 8fa2774978 merge mozilla-inbound to mozilla-central a=merge 2017-03-27 12:57:16 +02:00
Bobby Holley 491b0baa3d Bug 1350441 - Clear servo data when tearing down frames for DestroyFramesFor. r=heycam
MozReview-Commit-ID: DWwu8FqSjdj
2017-03-29 09:27:24 -07:00
Bobby Holley e76c016430 Bug 1350441 - Make ServoRestyleManager::ClearServoDataFromSubtree a bit smarter. r=heycam
There's no reason to traverse the entire subtree if we encounter an unstyled section.

MozReview-Commit-ID: 7WeMTI73wR9
2017-03-29 09:27:24 -07:00
Bobby Holley 2617d3c41a Bug 341102 - Update test expectations. r=me
MozReview-Commit-ID: 8FNOXog4duD
2017-03-29 09:27:24 -07:00
Ethan Lin adb68a37f8 Bug 1348755 - Part2. Turn the pref on by default and set fuzzy for some reftests. r=mattwoodrow 2017-03-27 16:17:45 +08:00
Ethan Lin caa395107a Bug 1348755 - Part1. Handle clipping region for nsDisplayOutline. r=mattwoodrow 2017-03-27 16:17:45 +08:00
Paul Bignier e2808177ef Bug 1350703 - Typo fixes in code-comments within layout/XUL. r=dholbert
DONTBUILD because comment-only.
2017-03-26 18:37:10 +02:00
Iris Hsiao 5bed2bfda5 Backed out changeset 6e4ccddb5c4b (bug 1350671) for build bustage 2017-03-28 15:23:59 +08:00
Kartikaya Gupta 3956a6bca3 Merge m-c to graphics
MozReview-Commit-ID: FT418lFT961
2017-03-24 10:10:11 -04:00
Carsten "Tomcat" Book 7419b36815 merge mozilla-inbound to mozilla-central a=merge 2017-03-24 14:24:21 +01:00
Cameron McCormack d140502cb4 Bug 1349487 - stylo: Eagerly style content appended in a ShadowRoot. r=bholley
MozReview-Commit-ID: FnTwSW8YF2p

--HG--
extra : rebase_source : c6b3fded16466bd140b01e57bb471630dd633ffc
2017-03-24 14:44:11 +08:00
Emilio Cobos Álvarez b6611188f1 Bug 1350140: more test expectation updates. r=heycam
MozReview-Commit-ID: 26ngAQoHC9T

--HG--
extra : rebase_source : 127b6a10f3f8e896cdf353305aa9d2ee8eab5ccb
2017-03-28 15:01:34 +02:00
Emilio Cobos Álvarez 4b0d6c2248 Bug 1350140: Flush the overflow changed tracker when done with restyles. r=heycam
MozReview-Commit-ID: 6ENzvvxCok5

--HG--
extra : rebase_source : 5145b2761258de58d208b1d958e83e324723faaf
2017-03-27 22:55:20 +02:00
Emilio Cobos Álvarez 138c319bc2 Bug 1350140: Avoid dumb copy-constructor. r=heycam
MozReview-Commit-ID: CoCbXXYTfH4

--HG--
extra : rebase_source : 080bda25b112094d1bf4c3915054c23aadcd35e5
2017-03-26 19:06:12 +02:00
Emilio Cobos Álvarez 1ac50d323b Bug 1350140: Fix computation of border and outline-width when the border or outline style change. r=heycam
MozReview-Commit-ID: FjMS47YNNX8

--HG--
extra : rebase_source : 2a90f20a838d151f3ff8fedc00843aa7956cdbbc
2017-03-24 20:19:14 +01:00
Emilio Cobos Álvarez 55e9a2ee3f Bug 1350140: Update test expectations. r=emilio
MozReview-Commit-ID: 4ZTM0r5KJfn

--HG--
extra : rebase_source : 139db22ea2b38d796c6d99707818a897104e091e
2017-03-24 09:25:12 +01:00
Emilio Cobos Álvarez 3ed9e13ba8 Bug 1350140: stylo: Implement all the remaining state pseudo-classes. r=heycam
Also implements :link, :visited, and :any-link more efficiently, and stops
matching :-moz-read-only in everything that is not read-write, which is kind of
dumb, and probably creates some artifacts.

MozReview-Commit-ID: 6BQqi7nAWdT

--HG--
extra : rebase_source : 39dc6b481b3a92942dc3732990d8b9040d8e6d84
2017-03-24 00:45:07 +01:00
Ryan VanderMeulen 7e1a57cfa4 Merge m-c to autoland. a=merge 2017-03-29 09:43:00 -04:00
Xidorn Quan 84b4f62fbc Bug 1341102 - Update mochitest expectation. 2017-03-29 23:48:02 +11:00
Cameron McCormack e945f00cd0 Bug 1350671 - stylo: Allow resolving out of date styles when explicitly reconstructing frames for an element. r=bholley
MozReview-Commit-ID: A7ssy7ygWLh

--HG--
extra : rebase_source : 7f8fa109f1a739b68525e3ff662024267189d93f
2017-03-28 13:46:59 +08:00
L. David Baron 7e875bb62c Bug 1350149 - Make display-reflow print reflow status in more cases. r=dholbert
This makes the display-reflow information for
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-4.html
more clear, since it means we include previously-omitted
inline-break-before statuses (not really inline in this case!), such as:
  status=[Complete=Y,NIF=N,Truncated=N,Break=B,FirstLetter=N]

It was useful when debugging various tests for bug 1308876.

MozReview-Commit-ID: AL38FH6wuOa

--HG--
extra : transplant_source : 15%21%86%3C%1B%5C%C5s%7C9%26%FEo%B5%20%F7%E6%E4x
2017-03-23 23:36:53 -07:00
Hiroyuki Ikezoe 55c2a5ea95 Bug 1351145 - Enable reftest for CSS animation on pseudo element. r=boris
MozReview-Commit-ID: 102ccHdfLPh

--HG--
extra : rebase_source : 4461b7e7870ef4c0d9367405cbe0fb9e5474f383
2017-03-28 11:10:11 +09:00
Cameron McCormack ab48ee3d46 Bug 1350789 - Make CSSStyleSheet::SizeOfIncludingThis correctly check for shared inners. r=bradwerth
MozReview-Commit-ID: 3hsuiR5SwZT

--HG--
extra : rebase_source : db1a2eb4fd604655102fc031abb1e26e35f92bc1
2017-03-27 16:49:37 +08:00
Mason Chang 72173b1708 Bug 1348414 Always snapshot after no more paints are pending if WR is enabled. r=mattwoodrow 2017-03-22 12:20:00 -07:00
Kartikaya Gupta 0fee7584e7 Merge m-c to graphics
MozReview-Commit-ID: 1rTRVEHequ9
2017-03-23 10:01:31 -04:00
Carsten "Tomcat" Book 492970c342 merge mozilla-inbound to mozilla-central a=merge 2017-03-23 13:44:09 +01:00
Carsten "Tomcat" Book 9b6d088496 merge autoland to mozilla-central a=merge
--HG--
rename : browser/components/preferences/in-content/tests/browser_advanced_siteData.js => browser/components/preferences/in-content-old/tests/browser_advanced_siteData.js
rename : dom/media/mediasink/DecodedAudioDataSink.cpp => dom/media/mediasink/AudioSink.cpp
2017-03-23 13:42:40 +01:00
cku 38afa468c3 Bug 1349462 - Part 2. one line for static function. r=jwatt
MozReview-Commit-ID: 9jVkHtLouVN

--HG--
extra : rebase_source : 8a512a93e562129475c68feba1e50f6b28edd37e
2017-03-23 16:53:47 +08:00
cku a52259bf72 Bug 1349462 - Part 1. Rename IsSVGText as IsInSVGTextSubtree. r=heycam
MozReview-Commit-ID: LTo6c8tTtaf

--HG--
extra : rebase_source : bc6913c42cca141d7a3098fdd4dcc72fbf146b5a
2017-03-23 15:29:11 +08:00
Wes Kocher b31e9e6a39 Merge inbound to central, a=merge
MozReview-Commit-ID: EQ7w1Gld1K2
2017-03-22 17:10:01 -07:00
Kartikaya Gupta 622a049d19 Bug 1349675 - Update webrender annotations for tests that no longer crash or produce random results. r=rhunt
MozReview-Commit-ID: KZPbrqWsFtc
2017-03-22 15:47:39 -04:00
Jeff Muizelaar 49eb5ba0b6 Bug 1285533. Remove non-fontconfig platform fontlist codepath. r=lsalzman
This has been disabled for two years. It's time for it to die.
2017-03-22 14:58:19 -04:00
Kartikaya Gupta 47c42c47ea Bug 1322816 - Re-enable some skipped reftests now that WebRender handles them. r=rhunt
MozReview-Commit-ID: 1egwR8QAZ2O
2017-03-22 13:56:33 -04:00
Kartikaya Gupta 9608ac4946 Merge m-c to graphics
MozReview-Commit-ID: Ci50iHfzKbA
2017-03-22 09:55:38 -04:00
Carsten "Tomcat" Book 62f6c37109 merge mozilla-inbound to mozilla-central a=merge 2017-03-22 14:26:27 +01:00
Wes Kocher 8c7c009cdf Merge m-c to autoland, a=merge
MozReview-Commit-ID: 87ulQGa6DgN
2017-03-27 17:19:20 -07:00
Wes Kocher ed79d988f0 Merge autoland to central, a=merge
MozReview-Commit-ID: 4DDSNU4ABBB
2017-03-27 17:03:30 -07:00
Bobby Holley ffdc76986b Bug 1351026 - Followup build bustage fix. rpending=froydnj CLOSED TREE
MozReview-Commit-ID: FnzU7d5Emq1
2017-03-27 14:34:46 -07:00
Nazım Can Altınova f876204de1 Bug 1350714 - Increase expected assertion range to 8 for background-draw-nothing-malformed-images.html r=emilio
MozReview-Commit-ID: 3aCyMzvNqeT

--HG--
extra : rebase_source : 8bb014a70b63e2543819675aec9d1303397f6c2b
2017-03-27 20:37:26 +03:00
Carsten "Tomcat" Book 534f3aebc6 Merge mozilla-central to mozilla-inbound 2017-03-22 16:13:03 +01:00
Kartikaya Gupta 7fc02188d8 Merge m-c to graphics
MozReview-Commit-ID: AxmKwI9dnre
2017-03-21 09:21:34 -04:00
Carsten "Tomcat" Book 6fd1303c2a merge mozilla-inbound to mozilla-central a=merge 2017-03-21 12:04:43 +01:00
Andrea Marchesini 507c00cb9f Bug 1343933 - Renaming Principal classes - part 4 - ContentPrincipal, r=qdot
--HG--
rename : caps/nsPrincipal.cpp => caps/ContentPrincipal.cpp
rename : caps/nsPrincipal.h => caps/ContentPrincipal.h
2017-03-22 11:39:31 +01:00
Andrea Marchesini f91cb666bb Bug 1343933 - Renaming Principal classes - part 3 - SystemPrincipal, r=qdot
--HG--
rename : caps/nsSystemPrincipal.cpp => caps/SystemPrincipal.cpp
rename : caps/nsSystemPrincipal.h => caps/SystemPrincipal.h
2017-03-22 11:39:08 +01:00
Andrea Marchesini 1fd1bc3935 Bug 1343933 - Renaming Principal classes - part 2 - NullPrincipal, r=qdot
--HG--
rename : caps/nsNullPrincipal.cpp => caps/NullPrincipal.cpp
rename : caps/nsNullPrincipal.h => caps/NullPrincipal.h
rename : caps/nsNullPrincipalURI.cpp => caps/NullPrincipalURI.cpp
rename : caps/nsNullPrincipalURI.h => caps/NullPrincipalURI.h
2017-03-22 11:38:40 +01:00
Timothy Nikkel 5587bb56c5 Bug 1346109. Set a displayport base rect in MobileViewportManager::UpdateDisplayPortMargins when we are setting displayport margins. r=botond
It's easy to calculate because it's always a root content document.
2017-03-21 00:16:41 -05:00
Bobby Holley cbcf9903c7 Bug 1351026 - Whitelist the compositor thread in DO_RESET. r=emilio
MozReview-Commit-ID: 3k6Rrq7mbWx
2017-03-27 13:11:10 -07:00
JerryShih e4e7794105 Bug 1347164 - set expected-fail for css-color-4 test with stylo. r=xidorn
Currently, stylo doesn't have css-color-4 implementation. Set expected-fail for these tests.

--HG--
extra : rebase_source : 7740e267deed0482a25289704868cadd30e35e0f
2017-03-20 17:26:06 +08:00
JerryShih bd940f844f Bug 1347164 - css-color specified style test. r=dholbert
MozReview-Commit-ID: 6RRhz8ftEVO

--HG--
extra : rebase_source : f9f2ce3b84384d3b265d4da7b965dce147165688
2017-03-20 17:26:06 +08:00
JerryShih 72a3987a48 Bug 1347164 - rewrite mochitest test_specified_value_serialization.html to look more like test_computed_style.html. r=dholbert
MozReview-Commit-ID: 4XSBQXtYSth

--HG--
extra : rebase_source : e412de66d6cafa3246036df19185b7be270fb026
2017-03-20 17:26:06 +08:00
JerryShih d54436c0d2 Bug 1347164 - css-color computed style test. r=dholbert
MozReview-Commit-ID: 36qT5LxhB9Z

--HG--
extra : rebase_source : b1bfc7113e93566b940449c4970f4a96cdc122e4
2017-03-20 17:26:06 +08:00
JerryShih 5094f3ce80 Bug 1347164 - serialize colors using "rgba()" as the color-function, if they have a non-opaque alpha channel. r=dholbert
MozReview-Commit-ID: 44T8gy7UWFJ

--HG--
extra : rebase_source : 58f8621c70e0acff99f95d3305ef7ef0cc11c870
2017-03-20 17:26:05 +08:00
Tooru Fujisawa c5a8c23dab Bug 1331092 - Part 4: Add release_or_beta variable to reftest condition. r=jmaher 2017-03-27 23:20:18 +09:00
Kris Maglione 29d2dd60eb Bug 1348442: Part 2a - Asynchronously load and cache content script CSS. r=aswan
MozReview-Commit-ID: 1BzLNbdXMfU

--HG--
extra : rebase_source : fbbf411098ad111056816e24f50c2e3e03ea80ae
2017-03-23 18:51:38 -07:00
Kris Maglione dabd327027 Bug 1348442: Part 1 - Allow loading preloaded stylesheets asynchronously. r=heycam
These changes allow us to asynchronously load pre-loaded stylesheets, in a way
that's similar to ChromeUtils.compileScript. The new method returns a Promise
which resolves to the preloaded sheet once it's finished loading.

This will allow us to remove the last remaining use of synchronous channels in
moz-extension: URLs.

MozReview-Commit-ID: 7J52ff93YKT

--HG--
extra : rebase_source : 20fa013cdc7f5fbedb5ce671ede17765a2abbac2
2017-03-19 19:33:49 -07:00
cku afe561f523 Bug 877661 - (followup) - disable mask-html-01-extref-02.xhtml for frequent intermittent failures. r=me
According to bug 877661 comment 327, mark mask-html-01-extref-02.xhtml as random
before root cause of failure addressed and fixed.

MozReview-Commit-ID: 2yaIcUKjTHm

--HG--
extra : amend_source : 6174fa69a057195ed45f1078b8f1b9b913f06520
2017-03-29 22:55:24 +08:00
Ryan VanderMeulen 1701c9f297 Backed out 2 changesets (bug 877661) for frequent intermittent failures.
Backed out changeset fe81b5475ea3 (bug 877661)
Backed out changeset 9a8e1601b493 (bug 877661)
2017-03-29 10:50:24 -04:00
cku 7734fd0b99 Bug 877661 - (followup -2) make mask-html-01-extref-02.xhtml be random. r=me
According to bug 877661 comment 327, mark mask-html-01-extref-02.xhtml as random before
root cause of failure addressed and fixed.
In previous followup, I put random on wrong test case. This patch correct the
error of previous commit(9a8e1601b493).

MozReview-Commit-ID: 7Q7TI9TtgRW

--HG--
extra : amend_source : fb1407e8ca5b1f8015fc3d85d3e0c6cdc4d1a33b
2017-03-29 22:33:47 +08:00
cku c43953e51b Bug 877661 - (followup) make mask-html-01-extref-02.xhtml be random. r=me
According to bug 877661 comment 327, mark this test as random before
root cause of failure fixed.

MozReview-Commit-ID: F55zff8OWD2

--HG--
extra : source : 8e0bb736453285a2e93870f99cf81dc869b9c94e
2017-03-29 22:11:23 +08:00
Bevis Tseng f18a29591e Backed out changeset 44eae28def02 (bug 1342872) for crash if printing from print preview. 2017-03-29 09:50:01 -04:00
Bevis Tseng 400c5650b3 Backed out changeset ee20d9c4b63c (bug 1342872) for crash if printing from print preview. 2017-03-29 09:48:57 -04:00
Ryan VanderMeulen cf8bee36b5 Merge m-c to inbound. a=merge 2017-03-29 09:44:13 -04:00
Mason Chang d1c245a2c8 Bug 1348408 - Only create inset box shadow WR layers for cases WR supports. r=rhunt 2017-03-15 13:40:00 -07:00
Kartikaya Gupta 0a0a696241 Merge m-c to graphics
MozReview-Commit-ID: 2CbNs260zlf
2017-03-20 10:07:29 -04:00
Ethan Lin 803515ec05 Bug 1347871 - Do not create webrender commands if the image renderer doesn't have image container. r=mattwoodrow
--HG--
extra : rebase_source : 4b796a83e76b0dc812208a408570a63618ef47a1
2017-03-20 16:27:55 +08:00
Cameron McCormack 52f712bba2 Bug 1338461 - Pass eRestyle_StyleAttribute through to Servo_NoteExplicitHints. r=bholley
MozReview-Commit-ID: C7HIOTs1SSY

--HG--
extra : rebase_source : 638fe3e1c9ecf47dcd9b175ae03344450417c7da
2017-03-20 14:42:31 +08:00
Ethan Lin 58f9109c72 Bug 1343450 - Convert nsDisplayCanvasBackgroundColor to WebRenderDisplayItemLayer. r=mattwoodrow 2017-03-20 14:41:55 +08:00
Mason Chang f47b17cdff Bug 1347727. Detect box shadow outer cases that WR doesn't support and don't enable a layer for it in WR. r=rhunt 2017-03-17 15:06:57 -07:00
Kartikaya Gupta 99947c2a87 Merge m-c to graphics
MozReview-Commit-ID: 3MU0IxcKSwo
2017-03-17 15:37:52 -04:00
Wes Kocher ee28f4ee71 Merge inbound to central, a=merge
MozReview-Commit-ID: Fq7B78wD7Wv
2017-03-17 11:03:59 -07:00
Kartikaya Gupta 0485af4853 Merge m-c to graphics
MozReview-Commit-ID: 5m04vXUTlsy
2017-03-17 11:03:02 -04:00
Carsten "Tomcat" Book 3e0a5441c6 Merge mozilla-central to mozilla-inbound 2017-03-17 14:55:15 +01:00
Jeremy Chen 9a60f77d80 Bug 1343516 - clean up the mess of PropertyProvider and its implementations. r=jfkthame
The cleanup work includes:

part 1: make all methods 'const' for the abstract class of PropertyProvider.

part 2: make nsFontMetrics's StubPropertyProvider final.

part 3: make nsTextFrame's PropertyProvider final.

  Make some methods 'const' and some variables 'mutable', so we could let all the
  overridden methods stay const.

  We also need to make the pass-in parameter of gfxFontGroup's GetHyphenWidth const.
  Note that the comment of GetHyphenWidth seem outdated, so I fixed it as well.

part 4: make the member variables in nsTextFrame's PropertyProvider to be 'const'.

  Make all the member variables 'const' except mStart, mLength,
  mJustificationArrayStart, and mJustificationSpacings.

  The static function AdvanceToNextTab is fixed since we only use 2 of the 4 parameters.

part 5: coding style fix for nsTextFrame's PropertyProvider.

MozReview-Commit-ID: 1kbWPwx27aQ
2017-03-17 18:53:15 +08:00
Jeremy Chen 39b7492e90 Bug 1348615 - [stylo] update mochitest expections for text-size-adjust. r=xidorn
MozReview-Commit-ID: 1jgt9fE6lab

--HG--
extra : rebase_source : 7c51c6ff243cb64163ad2ad0bfcd2805c8c5acc2
2017-03-20 11:56:17 +08:00
Miko Mynttinen 6e4add711b Bug 1346777 - Transform layer geometry properly when intermediate surface is used r=mattwoodrow
MozReview-Commit-ID: H3YmadD8sFz

--HG--
extra : rebase_source : 8bd9f9b58d8e50fd925299fec6fc464ee50886c0
2017-03-16 21:51:54 +01:00
Ethan Lin 45be150fbd Bug 1347445 - Create border layer for non-QR case. r=mchang 2017-03-16 16:54:12 +08:00
Sebastian Hengst 0f9e0165a3 Bug 1341102: Adjust expectations for servo/servo#15604 and servo/servo#16028: Fix reftest expectation format. r=reftest-fix on a CLOSED TREE
--HG--
extra : amend_source : 673cc7490524789c15a9dca831c70b6cfe1fe8c4
2017-03-20 00:22:39 +01:00
Cameron McCormack 9f3f895b0e Bug 1349134 - stylo: Style newly appended children of an element with a binding through their flattened tree parents. r=bholley
MozReview-Commit-ID: 3fQouTm2bw4

--HG--
extra : rebase_source : 599fe1e790c9fb352eb0e81f8f9b08e4012541f2
2017-03-24 14:27:22 +08:00
Ting-Yu Lin 2e6fb1ff59 Bug 1322570 Part 9 - Print StyleContext parents in frame tree dump only if they're gecko rule nodes. r=bholley
MozReview-Commit-ID: 7BrvmTPJqhe

--HG--
extra : rebase_source : 386897e5d82543f94f5de3696c7d613a242a5f1d
2017-03-22 17:43:40 +08:00
Ting-Yu Lin 9e0bdb7f1e Bug 1322570 Part 8 - Run debug code only if the style source is a gecko rule node. r=bholley
Per bug 1322570 comment 27, the debug code is only useful in Gecko-backed
style system. To prevent the assertion in nsStyleContext::GetParent() when
running stylo, run them only in gecko.

MozReview-Commit-ID: DOcJ3T7vS1J

--HG--
extra : rebase_source : 33fd6caaa4ada9530fe8d874b827d91ac355e0c1
2017-03-20 17:05:16 +08:00
Ting-Yu Lin fd01a09628 Bug 1322570 Part 7 - Use GetParentAllowServo() in nsMathMLChar. r=bz
The nsMathMLChar has SetStyleContext() that can change nsStyleContext. It's
not obvious how to get parent style context other than calling GetParent().
So white-list this case for now.

Fixed tests like layout/reftests/bugs/347348-1.xhtml.

MozReview-Commit-ID: JZU1IzcMxs8

--HG--
extra : rebase_source : 41880ffdc6064dd06e1cee6046a4cf64535d77b2
2017-03-20 14:14:30 +08:00
Ting-Yu Lin 0a2de7f987 Bug 1322570 Part 6 - Use GetParentAllowServo() in RestyleManager. r=bz
Fixed tests like layout/reftests/bidi/670226-1.html.

MozReview-Commit-ID: DuEXNZhFC7M

--HG--
extra : rebase_source : c738d3457a2e1caac6a09df90ec29d6337deae56
2017-03-20 14:14:01 +08:00
Ting-Yu Lin b8a643b87e Bug 1322570 Part 5 - Use GetParentAllowServo() related to first letter frame. r=bz
::first-letter is not support by stylo yet. (bug 1324618)

MozReview-Commit-ID: KwQk2jhn53c

--HG--
extra : rebase_source : 9bafad53a38fd11aae7be09780ee7680d9a40e1c
2017-03-20 14:13:32 +08:00
Ting-Yu Lin 954acaddd0 Bug 1322570 Part 3 - Get StyleContext from parent frame in nsFlexContainerFrame::Init(). r=dholbert
In stylo, nsStyleContext::GetParent() is not valid.

MozReview-Commit-ID: 5FbgUwobG3U

--HG--
extra : rebase_source : 47910f056eaf59af4e68276dd8e48b2a86634874
2017-03-20 14:12:28 +08:00
Ting-Yu Lin 5696ee9603 Bug 1322570 Part 2 - Resolve {align,justify}-self using StyleContext from alignment container frame in ReflowInput::InitConstraints(). r=dholbert
Per bug 1322570 comment 46, it's not easy to replace ComputedJustifyItems()
and UsedJustifySelf()'s internal nsStyleContext::GetParent() without
correctness penalty, so we use GetParentAllowServo() for now.

Also, fix the reftest.list added in bug 1334403 which incorrectly wrote test
page as reference page.

MozReview-Commit-ID: 6kAAWSFojd5

--HG--
extra : rebase_source : 2d03302115dd40281cec27bc18750b6933682855
2017-03-20 14:12:08 +08:00
Ting-Yu Lin b71ec494d5 Bug 1322570 Part 1 - Add MOZ_ASSERT in nsStyleContext::GetParent() to disallow usage by stylo. r=bz
Also, add GetParentAllowServo() to whitelist the usage in servo-backed style
system in subsequent parts so that we could revisit them later.

MozReview-Commit-ID: JthU18Ftx02

--HG--
extra : rebase_source : b8840adcc4959f96cd429db65584f3e83c09c597
2017-03-20 14:11:06 +08:00
cku 41457fd44b Bug 1345946 - Part 2. Test that an SVG mask applied to an outer-<svg> uses its frame bounds. r=jwatt
MozReview-Commit-ID: 6wFsawrHqWi

--HG--
extra : rebase_source : 4c25b93136bc7b72fef060a0258010ace6756d31
2017-03-24 10:43:17 +08:00
Kartikaya Gupta 5041aa0404 Merge m-c to graphics
MozReview-Commit-ID: 6JFx7MHUHgW
2017-03-15 08:55:17 -04:00