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

11150 Коммитов

Автор SHA1 Сообщение Дата
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
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
Manish Goregaokar a8f8bfeb3e Bug 1339711 - Part 5: stylo: Support background presentation attribute; r=emilio
MozReview-Commit-ID: LU6ETeH8lxn
2017-04-12 23:05:57 +08:00
Manish Goregaokar 9d7550892d Bug 1339711 - Part 3: stylo: Support mathsize, width, and scriptminsize presentation attributes in MathML; r=emilio
MozReview-Commit-ID: GvHslYdBfXU
2017-04-12 23:05:44 +08:00
Manish Goregaokar ea86b671be Bug 1339711 - Part 1: stylo: Support -moz-script-size-multiplier, -moz-script-level, -moz-math-display; r=emilio
MozReview-Commit-ID: KzBDsmZK5w0
2017-04-12 23:05:29 +08:00
Boris Chiou 0aa774ef7e Bug 1343753 - Part 9: Early return for non-animatable properties for transitions. r=hiro,manishearth
MozReview-Commit-ID: HtNavkzyHvt

--HG--
extra : rebase_source : 410409a3005cb68da1266d3844c05c7c58123a75
2017-04-12 16:37:09 +08:00
Boris Chiou a553e2ec4c Bug 1343753 - Part 8: Rename and add new methods in nsTransitionManager. r=birtles
Rename UpdateTransitions as DoUpdateTransitions, and add a public
method, UpdateTransitions for stylo.

MozReview-Commit-ID: 7UiGzFsGZC4

--HG--
extra : rebase_source : a1e6a1efda9fc324ba50e5a17c122d6daf1b5b01
2017-04-12 16:33:44 +08:00
Boris Chiou 14c82e485a Bug 1343753 - Part 7: Use template for UpdateTransitions and ConsiderInitiatingTransition. r=birtles
We use the template to replace the type, nsStyleContext and
ServoComputedValuesWithParent.

MozReview-Commit-ID: JFPdODZAwX8

--HG--
extra : rebase_source : 781c7027f9b5f2f72ae4b4cd80e7952b938a6641
2017-03-09 15:37:17 +08:00
Boris Chiou 2317c8957e Bug 1343753 - Part 6: Move mAnimationGeneration into RestyleManager. r=birtles
So stylo can also use mAnimationGeneration.

MozReview-Commit-ID: KTc8vs2RKMm

--HG--
extra : rebase_source : 52aeb3bf91fa849cbddbedff28418736f96086bb
2017-03-09 17:15:08 +08:00
Boris Chiou a699413b9a Bug 1343753 - Part 5: Support ServoComputedValues in ExtractNonDiscreteComputedValue. r=birtles,hiro,manishearth
We use ServoComputedStyleValues as the argument here, instead of
ServoComputedValues, because I will use template for nsStyleContext and
ServoComputedValuesWithParent in UpdateTransitions() and
ConsiderInitiatingTransition(). Besides, add an FFI to check if a
proeprty is discrete animation type.

MozReview-Commit-ID: 7VtcMDtgl55

--HG--
extra : rebase_source : eeef2e634887b66bb6650d66fb2e3929a5ea1855
2017-04-12 16:31:12 +08:00
Boris Chiou fb53a02a99 Bug 1343753 - Part 4: Introduce AnimationValue::IsInterpolableWith. r=birtles,manishearth
We have different interpolation implementations on Gecko and Servo, so
wrap the "Can be Interpolated" in AnimationValue. This patch also introduces
the FFI, Servo_Animationvalues_IsInterpolable.

MozReview-Commit-ID: 92Yf1u84A3c

--HG--
extra : rebase_source : 544d9db1b0d377006ae42b1242dc064bd5fa65d2
2017-04-12 16:26:59 +08:00
Boris Chiou f4f6aed21d Bug 1343753 - Part 3: Use AnimationValue in ElementPropertyTransition and CSSTransition. r=birtles
We also need to update the interpolation code based on ServoAnimationValue in
ElementPropertyTransition::UpdateStartValueFromReplacedTransition().
Therefore, ElementPropertyTransition can be used by both Gecko and Servo.

MozReview-Commit-ID: BrIpvRR3te8

--HG--
extra : rebase_source : df49fdf39811dcd1661cc815dbf0b1bc192f9d81
2017-03-09 12:33:15 +08:00
Boris Chiou 6b6ab8a902 Bug 1343753 - Part 2: Update GetTransitionKeyframes for stylo. r=birtles,manishearth
Use AnimationValue as arguments, and add one FFI to uncompute the
value. Therefore, we can use GetTransitionKeyframes for both Gecko and
Servo backends. However, there are many "mGecko"s, which will be removed
later.

MozReview-Commit-ID: Dg5hrDdlIWb

--HG--
extra : rebase_source : 0ed36ee5a48e4d452ba812f912de6110a3139510
2017-04-12 15:51:55 +08:00
Boris Chiou bceeb51dd7 Bug 1343753 - Part 1: Make GetTransitionKeyframes as a local static function. r=birtles
GetTransitionKeyframes is a simple helper function, which is only used by
ConsiderInitiatingTransition, so let's make it static to reduce the time
to revise the header.

MozReview-Commit-ID: HlztPxz8sMJ

--HG--
extra : rebase_source : 37dd1dca3956fcdd89148b2b8c7a24413c0f9aac
2017-03-09 13:35:43 +08:00
KuoE0 0c5602e3fc Bug 1353994 - Part 2: Update test case result. r=heycam
MozReview-Commit-ID: 6DoBVGf0fs5

--HG--
extra : rebase_source : 2dab22b300baba9afdba0aeb5e1fe81743849804
2017-04-11 17:34:04 +08:00
Dan Banner cdf987089d Bug 1107904 - Remove packed.js and references to it as it is unused. r=standard8
MozReview-Commit-ID: K5TLF92pHq4

--HG--
extra : rebase_source : 295bf325a07fa8ec4c55a8babf5418588308dca6
2017-04-12 11:10:00 +01:00
Emilio Cobos Álvarez 1ba2ac9f16 Bug 1355823: Update reftest expectations for @page + length units. r=emilio
MozReview-Commit-ID: KerKHb8hKMa

--HG--
extra : rebase_source : a7727003df67a667d3e7f3bd2af06fbe55a160ab
2017-04-12 22:04:34 +08: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
Manish Goregaokar dbe0525057 Bug 1355674 - stylo: Use prefixed values in ExtremumLength ; r=xidorn
MozReview-Commit-ID: KEPFAngPNkh
2017-04-12 14:18:14 +08:00
cku 63b9917f24 Bug 1341667 - Part 2. Enable css-masking reftests in stylo. r=heycam
MozReview-Commit-ID: FjnYLtwY900

--HG--
extra : rebase_source : 760988606398f580f0c7e081640ea450ab93b1d4
extra : source : cce0a674842f8306358041ee13c599476c2913f1
2017-04-10 14:00:53 +08:00
cku 1a241baef2 Bug 1341667 - Part 1. Keep url in nsStyleImage for local-fragment url. r=heycam
MozReview-Commit-ID: KEbO4vZXBJo

--HG--
extra : rebase_source : 1dffe2649fa2a4b5872fd2b3194a8ab2c29be98e
extra : source : 3dce4bb207fd09273dfb37581644eda454aefab8
2017-04-11 22:56:41 +08:00
Iris Hsiao 123f422a92 Backed out changeset 979d89d569f2 (bug 1354000) for stylo tests bustage 2017-04-12 13:37:08 +08:00
Jeremy Chen 5ed93e0f0e Bug 1355001 - update mochitest expectations for initial-letter support.
MozReview-Commit-ID: Cf10s1T2wcv
2017-04-12 10:14:18 +08:00
Cameron McCormack 5c9081b2dc Bug 1345695 - stylo: Assert that we have computed style in Servo_ResolveStyle when lazy computation is forbidden. r=bholley
MozReview-Commit-ID: Bul00XOpfxA

--HG--
extra : rebase_source : b365b632ab4162800a2f4c304bc572c58ad1d397
2017-04-12 10:05:26 +08:00
KuoE0 5514aa1c8b Bug 1354000 - (Part 2) Update test result. r=heycam
MozReview-Commit-ID: CGNYT256Oph

--HG--
extra : rebase_source : 1d410d6e371956f2c03e0d7bdd17c7188e68fc52
2017-04-10 22:32:36 +08:00
Hiroyuki Ikezoe f0a3340857 Bug 1341102 - Update mochitest expectations. r=me 2017-04-12 05:08:26 +09:00
Jeremy Chen a9a8c0fceb Bug 1341758 - update mochitest expectations for image-orientation support. r=emilio
MozReview-Commit-ID: KuSsQPXczJn

--HG--
extra : rebase_source : f3e753819841e4c9e0a35e3052745a296800eb9c
2017-04-11 16:32:20 +08:00
Jeremy Chen 492da78abe Bug 1341758 - add image-orientation related binding functions. r=emilio
For image-orientation property, we use methods of nsStyleImageOrientation
struct to create/set its computed value. Adding these binding functions
could let us reuse these methods for transferring computed values from Servo
side to Gecko.

The actual changes for the calling these binding functions to do the glue things
for Stylo is in a separate following patch, which should be pure Servo changes.

MozReview-Commit-ID: 9MuICVgdxNw

--HG--
extra : rebase_source : e1fbcc3445b7a1d1deb18d204f4b8f60d7356b08
2017-04-11 16:32:20 +08:00
Gregory Szorc 28c1793e3b Backed out changeset f00f1ad996f7 (bug 1345695) for touching servo/
Autoland should have prevented this. A bug is on file so it hopefully
won't happen again.

MozReview-Commit-ID: 1tN1lAyTLyE

--HG--
extra : rebase_source : 9377f92151e481446481fec263c39e369dab5246
2017-04-11 09:36:48 -07:00
cku 2b2e6d122e Bug 1354772 - Part 3. Correct the comment in Layer::CalcDifference. r=heycam
MozReview-Commit-ID: 34p6qqGO5R0

--HG--
extra : rebase_source : 51f65ba1de8f744235fe6789b3005794410d6bcf
2017-04-11 15:38:07 +08:00
cku db1a6cab83 Bug 1354772 - Part 2. Compute URLValueData::mMightHaveRef when need. r=heycam
MozReview-Commit-ID: 8t5tKrjB1cz

--HG--
extra : rebase_source : cda9e15dcb51aeedf6bb532dd702247e60e59304
2017-04-10 16:41:51 +08:00
cku 3509778fd7 Bug 1354772 - Part 1. Compute URLValueData::mIsLocalRef when need. r=heycam
MozReview-Commit-ID: 77pcTcaScF0

--HG--
extra : rebase_source : 2c609464dd85334b8a7dc747b65d72a646fbebc0
2017-04-10 17:25:48 +08:00
Cameron McCormack 43e68fc196 Bug 1345695 - stylo: Assert that we have computed style in Servo_ResolveStyle when lazy computation is forbidden. r=bholley
MozReview-Commit-ID: Bul00XOpfxA

--HG--
extra : rebase_source : 485668d0a92c9407c9dfeb5cd569aa1b07569a14
2017-03-30 12:54:25 +08:00
Xidorn Quan 30211367ad No bug - Update stylo-failures.md.
MozReview-Commit-ID: 55S2uBPzZVa
2017-04-11 16:34:03 +08:00
Xidorn Quan e0a63fbefc No bug - Update stylo-failures.md.
MozReview-Commit-ID: LVzNm2jySj9

--HG--
extra : source : b46043a5b8bac565436c214f4f2f6f999d18aedf
2017-04-11 15:51:39 +08: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
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
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 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
Nazım Can Altınova cb7ce42ed7 Bug 1341761 - stylo: Update test expectations for -moz-element. r=bzbarsky
MozReview-Commit-ID: 3bKWDW2bJ9V
2017-04-08 17:40:18 +03:00
Nazım Can Altınova bfd17d61d4 Bug 1341761 - stylo: Add -moz-element support. r=xidorn
MozReview-Commit-ID: I9gxAoFJH9C
2017-04-09 17:02:35 +03:00
Nazım Can Altınova a99f2a36a0 Bug 1341761 - Convert nsStyleImage::mElementId to use nsIAtom. r=xidorn
MozReview-Commit-ID: 9YcbhMmXYoi
2017-04-09 16:44:36 +03: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
Manish Goregaokar 18dbf79af1 Bug 1341102 - Update stylo expectations; r=orange
MozReview-Commit-ID: BPnfd0ME7RH
2017-04-10 10:31:23 +08:00
Manish Goregaokar 42199474b9 Bug 1351200 - Part 3: stylo: Bypass cache when fetching font size prefs from Stylo; r=emilio
MozReview-Commit-ID: 7WBduQ6lBTC
2017-04-10 09:18:00 +08:00
Phil Ringnalda 98df36e955 Backed out 3 changesets (bug 1351200) for Windows and static-analysis build bustage
CLOSED TREE

Backed out changeset 1cce9249b4a2 (bug 1351200)
Backed out changeset 792fb55377f5 (bug 1351200)
Backed out changeset 767bee78574c (bug 1351200)
2017-04-09 08:24:54 -07:00
Manish Goregaokar 8bfdb295a6 Bug 1351200 - Part 3: stylo: Bypass cache when fetching font size prefs from Stylo; r=emilio
MozReview-Commit-ID: 7WBduQ6lBTC

--HG--
extra : rebase_source : f3bee21a7d105cad96231aa5bec5660cdbface06
2017-04-04 11:11:27 -07:00
Jeremy Chen 6a5f9a417c Bug 1347815 - part3: label RuleProcessorCache::mExpirationTracker. r=heycam
RuleProcessorCache::mExpirationTracker.NotifyExpired() will be invoked by
nsExpirationTracker::TimerCallback() from an unlabeled runnable.
Since RuleProcessorCache is a browser-wide cache, we provide a SystemGroup
EventTarget for the invocation of this callback.

MozReview-Commit-ID: KQATsLu6bdc

--HG--
extra : rebase_source : b64c93d335b86fb518981134d25de27fc067c8cc
2017-04-09 16:53:57 +08:00
Ravi Shankar 83ad365ff7 Bug 1354775 - Gecko_CopyStyleGridTemplateValues function for Servo-side copying; r=bholley,heycam
MozReview-Commit-ID: 4Hz82MWZlB0
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-09 17:42:20 +08:00
Cameron McCormack 6c8f6a70b6 Bug 1351286 - stylo: Make Servo mapped attributes mechanism cope with the document being in the bfcache. r=dbaron
MozReview-Commit-ID: H8tpBVKf3xo

--HG--
extra : rebase_source : 698a30deb1ab8ac4840dc6791e4cf12b3be6c5df
2017-04-08 22:42:43 +08:00
Wes Kocher b689c79de1 Backed out changeset 17650db2f478 (bug 1354775) for stylo bustage at developer's request a=backout 2017-04-08 23:52:25 -07:00
Cameron McCormack 12cc9ae143 Bug 1351535 - Part 6: Add ServoStyleSet::StyleSubtreeForReconstruct. r=bholley
MozReview-Commit-ID: CovU36o4lAV

--HG--
extra : rebase_source : d1b990032dcf5438823316f2934bf59a1babd337
2017-04-04 19:34:30 +08:00
Cameron McCormack 9ce0d4d3d2 Bug 1351535 - Part 4: Add a TraversalRestyleBehavior argument to traversal functions. r=bholley
This argument will be used to control whether we are restyling in preparation
for reframing a subtree, which can avoid generating any change hints, as we
aren't preserving the frames that they would otherwise apply to.

MozReview-Commit-ID: DkLVCUnNGt

--HG--
extra : rebase_source : cb3537cea26cb9805b2ec1556cf5ca6eb9d38ab8
2017-04-08 22:57:08 +08:00
Ravi Shankar 7bb1323a66 Bug 1354775 - Prefer '=' for setting TrackList values in eCSSUnit_Inherit; r=heycam
MozReview-Commit-ID: 16dHlgrA9OZ

--HG--
extra : rebase_source : 5f04433931b4cbf6f0a0c7ec2b7fd2f810d62187
2017-04-08 12:47:44 +05:30
Ravi Shankar 1d70fcbd3c Bug 1354775 - Gecko_CopyStyleGridTemplateValues function for Servo-side copying; r=bholley,heycam
MozReview-Commit-ID: 4Hz82MWZlB0

--HG--
extra : rebase_source : 962b60f9a67a157395f0f11aadfc95bad4a1d554
2017-04-08 12:47:34 +05:30
Sebastian Hengst 87744c4253 Backed out changeset 2687cb9cb4de (bug 1351535) 2017-04-08 16:52:56 +02:00
Sebastian Hengst 8bfc118fde Backed out changeset bff89114412c (bug 1351535) 2017-04-08 16:52:38 +02:00
Cameron McCormack 3d17c09c00 Bug 1351535 - Part 8: Add ServoStyleSet::StyleSubtreeForReconstruct. r=bholley
MozReview-Commit-ID: CovU36o4lAV

--HG--
extra : rebase_source : d827260d084625ff652059e8128b3736505f3903
2017-04-04 19:34:30 +08:00
Cameron McCormack d52f48a6c4 Bug 1351535 - Part 5: Add a TraversalRestyleBehavior argument to traversal functions. r=bholley
This argument will be used to control whether we are restyling in preparation
for reframing a subtree, which can avoid generating any change hints, as we
aren't preserving the frames that they would otherwise apply to.

MozReview-Commit-ID: DkLVCUnNGt

--HG--
extra : rebase_source : 086a1d71a2e6c706cdd25193ec0592fad897f147
2017-04-04 19:31:23 +08:00
Gregory Szorc 4d56c2a609 Backout changesets 20bd44c62c89, 7fbc0a154eaa, and b8cfaab9ac09 (bug 1346256)
For touching servo/. (This is Autoland's fault for landing it.)

--HG--
extra : amend_source : a31555ab2a959af8e57f78f4f8b1d5e9700c0fb7
extra : histedit_source : 73e44d941d04553b9766ca75d3ad33618fe4f3f5%2C8f568b83aec10dc07a1e9c6cf2b32797cb9236e3
2017-04-07 18:09:02 -07:00
Brad Werth ddb66e070e 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 : 496b33bfdeaa4c4715796df6a8baa3fe1b4a9531
2017-04-07 08:07:37 -07:00
Brad Werth d4cc3a3790 Bug 1346256 Part 1: Add FFI interfaces for exposing style sources. r=heycam
MozReview-Commit-ID: FOQCgXD68E9

--HG--
extra : rebase_source : 3b1266cdd5dd9d432ac75e28a17d3e873bc45618
2017-04-06 10:19:00 -07:00
Sebastian Hengst 548852b3a4 merge mozilla-central to autoland. r=merge a=merge 2017-04-07 22:16:26 +02:00
Nathan Froyd c430f999dd Bug 1322656 - add servo bindings for profiler thread registration; r=xidorn
We need these to be able to register parallel traversal threads with the
profiler.
2017-04-07 10:44:41 -04:00
Carsten "Tomcat" Book 3a762886de Merge mozilla-central to mozilla-inbound 2017-04-07 15:33:03 +02:00
Carsten "Tomcat" Book 7eac1bb720 Backed out changeset d24b3983c4c2 (bug 1322656) for causing merge conflict with m-c
--HG--
extra : rebase_source : 2a5ec1a8ad6115b79edad5276d69cde3cf3a346e
2017-04-07 15:09:55 +02:00
Daniel Holbert 88cfb5bbcf Bug 1353992: Re-enable test_flexbox_focus_order.html on mac, with pref-tweak to allow links to be focused with 'tab' there. (no review, test-only)
MozReview-Commit-ID: B6J2QUoMdyx
2017-04-06 22:01:03 -07:00
Nathan Froyd 7de981c17f Bug 1322656 - add servo bindings for profiler thread registration; r=xidorn
We need these to be able to register parallel traversal threads with the
profiler.
2017-04-06 21:01:05 -04:00
cku 21a1b43445 Bug 1352096 - Part 2. Remove Layer::mSourceURI. r=heycam
Now, remove Layer::mSourceURI, there are several benefit of doing this:
1. Reduce the size of nsStyleImage::Layer.
2. By storing style image and url information in nsStyleImage, we can remove
many verbose comments. That is becasue there is no need to explain why we use
mSourceURI here, or why we use nsStyleImage there anymore.
3. Since all inforamtion is stored in on place, nsStyleImage, we can setup image
request or URLs by one single Gecko_SetUrlImageValue call.

MozReview-Commit-ID: 7aTQobddTB1

--HG--
extra : rebase_source : 247e3b66c727a9116c58d3d6ff3ae0f7a58f2338
2017-03-31 01:50:21 +08:00
cku 0a71f961c5 Bug 1352096 - Part 1. Implement nsStyleImage::SetURL and GetURLValueData. r=heycam
This patch implements two things:
1. Add one extra type, nsStyleImageType::eStyleImageType_Url, and puts data of
this type in nsStyleImage::mUrlData.
2. Export SetURLValueData and GetURLValueData from nsStyleImage

With these chnages, we can simply use nsStyleImage::mUrlData to replace
Layer::mSourceURI in the next patch.

MozReview-Commit-ID: E20MEzXv8cg

--HG--
extra : rebase_source : 5461edacb28676e9d3a12068f330b5db7b9fe32c
2017-03-30 23:16:46 +08:00
Emilio Cobos Álvarez 0d3f5c2f95 Bug 1341102: Update expectations for servo/servo#16300. r=me
MozReview-Commit-ID: ErduNdgJ2CW
2017-04-07 14:25:56 +02: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
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
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
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