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

59722 Коммитов

Автор SHA1 Сообщение Дата
Sebastian Hengst 45cb996f32 merge mozilla-central to autoland. r=merge a=merge 2017-09-05 12:37:56 +02:00
Sebastian Hengst a17af05f6f merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: L5exd68pNSG
2017-09-05 11:40:49 +02:00
Hiroyuki Ikezoe 84aff91995 Bug 1336772 - Request any restyles required by changes to the cascade result. r=birtles
When an animation is newly created while the same property transition is
running, the transition style rule persists until we call RequestRestyle() for
transitions level. That means if user calls getComputedStyle for the property
right after creating animation, the style obtained by getComputedStyle still
included the transitions level rule. As a result, the transitions level style
overrides newly created animation style until the next normal restyling process
happens (i.e. process transition level restyle request). Vice versa, in the
case where an animation is removed, transitions level style does not appear
until the next normal restyling.

This patch fixes this problem by trigerring a resyle of the transitions level
when an animation is created or removed.

MozReview-Commit-ID: HY6amLmDHTi

--HG--
extra : rebase_source : 67e58dc9a6c695299c3eef684bf7357153c5168b
2017-09-05 16:34:24 +09:00
Ting-Yu Lin 748cb71860 Bug 1396700 - Add a method to ServoStyleSet for creating XBL style set. r=xidorn
The motivation of this patch is that clearing mPresContext should be an
implementation detail of XBL style set, so I create a method for that, and
remove ClearPresContext().

MozReview-Commit-ID: Ftta0rcAqu6

--HG--
extra : rebase_source : 0bdb1ac3e2c988e5a0220172f19ab4b006e883d7
2017-09-01 16:45:39 +08:00
Ting-Yu Lin 0facc17a51 Bug 1396700 - Remove ServoStyleSet::UpdateStyleSheet(). r=xidorn
This is no longer used.

MozReview-Commit-ID: G7cUcz9CKeQ

--HG--
extra : rebase_source : 3f13913863c8d8c4db14d02763781f3037d64d22
2017-09-01 17:12:58 +08:00
Henri Sivonen d74ace38f2 Bug 1396093 - Add a missing leading zero byte to a test case that uses UTF-16BE. r=emilio
The old style system uses nsUnicharStreamLoader, which never signals the end
of the stream to mozilla::Decoder, which caused the input to be truncated
instead of the error in the input being detected. Stylo uses
mozilla::css::StreamLoader, which correctly signals the end of the stream, so
the an odd number of bytes in UTF-16BE resulted in the output ending with
U+FFFD, which ran into the keyword "green" making it not a valid keyword.

MozReview-Commit-ID: uSaCIfrAOF

--HG--
extra : rebase_source : 2674c589012cd71e7bc2e8228c44aed26622b078
2017-09-04 16:50:39 +03:00
Phil Ringnalda e761d397b7 Backed out 3 changesets (bug 1396489) for unexpected assertion failures
Backed out changeset 75ffa3ed13d5 (bug 1396489)
Backed out changeset fc779b639aeb (bug 1396489)
Backed out changeset dcfd73044bba (bug 1396489)

MozReview-Commit-ID: DvGlDLZF2nO
2017-09-04 21:09:04 -07:00
cku afd9919b06 Bug 1396489 - Part 3. Use gfxContext::GetClipExtents(false) when clipped rect in device space is needed. r=mstange
MozReview-Commit-ID: YO4JACFK9O

--HG--
extra : rebase_source : afd9cb051e35856070e3451215e4bba79396af7e
2017-09-04 14:04:17 +08:00
Ting-Yu Lin 3b33ba27fb Bug 1382078 Part 4 - Avoid unneeded restyle when XBL styleset is utilized by different PresContext. r=emilio
This fixed layout/style/test/test_media_queries_dynamic.html after Part 3 is added.

MozReview-Commit-ID: 7ZpSunCnkIc

--HG--
extra : rebase_source : 6acab11ba784b801b90afc0558c32baabcc3f271
2017-09-04 17:57:00 +08:00
Ting-Yu Lin b6d71d0740 Bug 1382078 Part 3 - Support media changes for XBL stylesheets. r=emilio
MozReview-Commit-ID: EJp8EMyanBT

--HG--
extra : rebase_source : 0ea61ea1f649548158fa600e5e11190631ce447f
2017-09-02 15:25:45 +08:00
Ting-Yu Lin a61a1227e9 Bug 1382078 Part 2 - Make nsBindingManager::MediumFeaturesChanged() return bool directly. r=emilio
The method always returns NS_OK, and no other caller checks the nsresult.
Hence the patch.

MozReview-Commit-ID: CnYCZ8VchG

--HG--
extra : rebase_source : 8626332e2774c1d6f42c7afa5e9679091a3aeaa2
2017-08-30 15:22:31 +08:00
Simon Sapin 23f9f1b466 Bug 1396665 - Temporarily disable bad-string subtests in test_parser_diagnostics_unprintables.html r=emilio
MozReview-Commit-ID: IUGy4uP6iRS

--HG--
extra : rebase_source : 2ba9dd060245141659bc1b0a357e9b62043be9e2
2017-09-04 23:14:26 +02:00
Simon Sapin eccbb7589b Bug 1396665 - Stylo serializes strings with double quotes r=emilio
MozReview-Commit-ID: 7uMAkhtjKCi

--HG--
extra : rebase_source : 8e0e30e95d16f7844238f7fbcf5c98788f7b4e82
2017-09-04 23:17:54 +02:00
Simon Sapin 13c0876f58 Bug 1396586 - Stop escaping U+0080 to U+009F in CSS serialization. r=emilio
… in the C++ style system, to align with Stylo and the CSSOM spec.

MozReview-Commit-ID: HaDUeNjumnY

--HG--
extra : rebase_source : 3a4d2856bb6b3702d0bc7ec9b7a8e472758ab9f0
2017-09-04 15:00:18 +02:00
Xidorn Quan 3110fdde9a Bug 1396147 - Update annotation for tests mentioned in this bug. r=xidorn
MozReview-Commit-ID: 2THlzWPgv2X

--HG--
extra : rebase_source : f91d1cff8f7c382810d004a00e38dd91a9ef6b5f
2017-09-04 13:14:13 +10:00
Xidorn Quan 372bd402fb Bug 1387905 part 2 - Use 10bit for specificity in Gecko as well. r=heycam
MozReview-Commit-ID: G5qq0FY0HQ8

--HG--
extra : rebase_source : 2572ad7845c4275d0f0a580204697e6ee87a4a5f
2017-09-04 12:07:24 +10:00
Xidorn Quan 441c9db551 Bug 1387905 part 1 - Count pseudo-element into specificity. r=heycam
MozReview-Commit-ID: IWlINaYAhql

--HG--
extra : rebase_source : f0d12277ecda1c7e498ba208cec0e0cde6fc5a25
2017-09-04 12:05:56 +10:00
Hiroyuki Ikezoe 76c1b26215 Bug 1396041 - Disassociate element from document before destroying animations in UnbindFromTree(). r=birtles
This allows us to avoid posting animation-related restyles when removing
elements from the document tree.

MozReview-Commit-ID: CzN4S0DTUMa

--HG--
extra : rebase_source : a5b94d9ad5b1b2243abd0a5b188eec2b334df74d
2017-09-04 12:24:07 +09:00
Hiroyuki Ikezoe 0b3afbde59 Bug 1396442 - Enable clipped-animated-transform-1.html for styloVsGecko. r=boris
MozReview-Commit-ID: Hg8cq3TXWre

--HG--
extra : rebase_source : ec43b4581693d0a16bc62a47678836933627ef75
2017-09-04 06:32:33 +09:00
Hiroyuki Ikezoe aa8f1c18e2 Bug 1396442 - Use longer duration and fill:forwards to keep the animations running on the compositor. r=boris
MozReview-Commit-ID: Dpfi00TmHGu

--HG--
extra : rebase_source : f146ed60c1bdcd177c3248f84b37c7d1192b8733
2017-09-04 06:32:33 +09:00
Brian Birtles 5f9e8575bc Bug 1394985 - Synchronize throbber animations; r=jaws
MozReview-Commit-ID: Gxgl8IJX6vZ

--HG--
extra : rebase_source : be163614147499c7f3c5632adf979e46e9adfd50
2017-09-01 09:32:35 +09:00
Sebastian Hengst 55fe61b6d6 Backed out changeset 06fd7e672abd (bug 1382078) 2017-09-02 20:43:42 +02:00
Sebastian Hengst 3764de542b Backed out changeset b49d8d47c3f1 (bug 1382078) 2017-09-02 20:43:36 +02:00
Nazım Can Altınova a86e524d57 Bug 1390339 - stylo: Adjust test expectations after removing calc support from media queries r=emilio
MozReview-Commit-ID: 3WX3HQBf175

--HG--
extra : rebase_source : fce1572342ae0194ff8db784e2da52fd86bcf473
2017-09-01 11:47:00 -07:00
Ting-Yu Lin d537ea001c Bug 1382078 Part 3 - Support media changes for XBL stylesheets. r=emilio
MozReview-Commit-ID: EJp8EMyanBT

--HG--
extra : rebase_source : 524aaa95070c7708b3c24a0c9ee8a24344be2645
2017-09-02 15:25:45 +08:00
Ting-Yu Lin 6d69dabd0c Bug 1382078 Part 2 - Make nsBindingManager::MediumFeaturesChanged() return bool directly. r=emilio
The method always returns NS_OK, and no other caller checks the nsresult.
Hence the patch.

MozReview-Commit-ID: CnYCZ8VchG

--HG--
extra : rebase_source : 062d643308b309dfe442384301860ffeec2dff9f
2017-08-30 15:22:31 +08:00
Emilio Cobos Álvarez 70950bfcb1 Bug 1396048: Mark system-metrics-1.html as passing. r=me
MozReview-Commit-ID: Bg33Xa1GenR
2017-09-02 13:58:12 +02:00
Sebastian Hengst 4d0bad92dd merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Gsw48p934sI
2017-09-02 10:54:44 +02:00
Xidorn Quan d57b5bd646 Bug 1388911 - Update expectation for this bug after landing servo/servo#18336.
MozReview-Commit-ID: EMKg34csW4l
2017-09-02 11:02:19 +10:00
Xidorn Quan 1538ddc813 Bug 1395725 - Don't add children of <area> as servo restyle root. r=emilio
MozReview-Commit-ID: LI7Lv1aD3PJ

--HG--
extra : rebase_source : 84df4e5ba6493e0db69f6e11e2fee428af427252
extra : source : 099a87c95a58d141f393f17ff27ae8f06a89d413
2017-09-02 09:56:36 +10:00
Wes Kocher 8b84853ed6 Merge m-c to autoland, a=merge
MozReview-Commit-ID: GcHZLNPPNnI
2017-09-01 16:34:14 -07:00
Wes Kocher 5f157c17dc Merge inbound to central, a=merge
MozReview-Commit-ID: 3JxUEFuinHY
2017-09-01 16:29:10 -07:00
Boris Zbarsky 264b2245fd Bug 1395715. When recovering letter frames, only do first-line fixup when we have a first-line parent. r=emilio
It turns out, this is the only case in which we need to do the fixup at all.
And this way we don't have to guess based on first-line styles, which may not
match the frame tree (for example if we have a pending style change that we
haven't processed yet).
2017-09-01 11:09:02 -04:00
Nazım Can Altınova 69ff16619e Bug 1395189 - Add reftest for default directions of prefixed linear gradients r=manishearth
MozReview-Commit-ID: 1LM49ROX3E9

--HG--
extra : rebase_source : 6e7f77d231bf3f3b13d9f9080dacdaa2852a4fc3
2017-08-30 12:21:55 -07:00
Emilio Cobos Álvarez 80541449d2 Bug 1374235: style: Remove the for reconstruction traversals. r=bholley
One less hack, a few more to go.

MozReview-Commit-ID: 6katL1EGn2U
2017-09-01 18:46:23 +02:00
Kartikaya Gupta 48a8b02ddd Bug 1395713 - Run async-scrolling reftests in layers-free mode for webrender. r=jrmuizel
MozReview-Commit-ID: A2Fhw3gfzOi

--HG--
extra : rebase_source : 9ecfef10cb7b8bc536b40ff7ac8a21974a2509ae
2017-08-31 17:36:41 -04:00
Kartikaya Gupta f397e9054a Bug 1395670 - In webrender layers-free mode, don't add a root scroll metadata if we already have it elsewhere in the tree. r=mstange
MozReview-Commit-ID: B9LY4v9t11Y

--HG--
extra : rebase_source : e6ffb4c7a54e0584a3a4939a3bca34276b69478b
2017-08-31 17:07:41 -04:00
Chung-Sheng Fu c978a96e84 Bug 1395486 - Move resource://gre-resource/plaintext.css to resource://content-accessible/plaintext.css. r=heycam
MozReview-Commit-ID: Efz2Z78W2ix

--HG--
extra : rebase_source : 0522f382acd14372c6fea0a695f1d09300810912
2017-08-31 17:06:22 +08:00
Milan Sreckovic 15f0b9e537 Bug 1388892: TableArea doesn't really need to own the rectangle, except for the union call. Especially since we're exposing the addresses of the members. r=xidorn
MozReview-Commit-ID: BAjQ20ngkIM

--HG--
extra : rebase_source : 8ed144bf053dc5c7c26201ec023aac3a00a2c7e5
2017-08-31 16:00:44 -04:00
Emilio Cobos Álvarez baf5604537 Bug 1384232: Reduce expected assertions in test_bug381167.xhtml. r=me
MozReview-Commit-ID: Ehl9yfo8EOX
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-09-01 15:31:46 +02:00
Daniel Holbert b137f93e10 Bug 1387152 part 2: Don't let unrelated property "flex-basis" influence the sizing inside of -webkit-box containers. r=mats
We use nsFlexContainerFrame (our modern flexbox implementation) to emulate
-webkit-box, and we use a frame state bit to tell us whether to use
modern-flexbox properties vs. legacy properties.  Up until this patch, we
neglected to check that state bit when determining whether to use the modern
"flex-basis" property for sizing.  This patch makes us *not* use that property
(and just use the axis-appropriate width/height property instead) for legacy
-webkit-box containers.

MozReview-Commit-ID: 14bzOCPCtUY

--HG--
extra : rebase_source : 0091761ba3aff64030a3301d9b60fb9401aa77b3
2017-08-03 11:18:13 -07:00
Daniel Holbert c787965805 Bug 1387152 part 1: Adjust indentation and use HasAnyStateBits() instead of manual bitwise arithmetic, in nsFrame size-computation code. r=mats
* HasAnyStateBits is slightly more foolproof and readable -- in particular, you
  can put the logical "!" directly alongside the expression, rather than
  needing to separate it with a layer of logical-grouping-parens.

* The deindentation here isn't super-important, but it conforms better to our
  coding style, and it'll make this code consistent with a new chunk that I'm
  adding in the next patch (and that chunk will *have* to be deindented like
  this, to avoid going over 80 characters).

MozReview-Commit-ID: FWfqrKjHedP

--HG--
extra : rebase_source : e556f9789e9e153d57df07a38b10c21963e50978
2017-08-03 11:04:08 -07:00
Nazım Can Altınova 09ef54645d Bug 1391534 - Fix computed prefixed linear gradient direction serialization r=dholbert
Prefixed linear gradients use direction keyword to indicate starting point of the
gradient but modern syntax uses this keyword to indicate ending point of the gradient.
Top-to-bottom direction is the default value for gradients. Therefore `top` is default
value of prefixed linear gradients and `to bottom` is default one for unprefixed one.
For brevity, we omit the direction keyword from our serialization when it matches the
default direction, but we were incorrectly trying to remove `bottom` keyword from
prefixed computed values.

MozReview-Commit-ID: 8UCsFE44LRX

--HG--
extra : rebase_source : 6185aec4c3c1b0647015d00d31e0120c9448867e
2017-08-30 14:39:44 -07:00
Emilio Cobos Álvarez b7dceb9fbd Bug 1354989: Mark layout/reftests/bugs/485012-1.html as failing in stylo pending investigation in bug 1396093. r=hsivonen
MozReview-Commit-ID: F6nGZJ8LiBG
2017-09-01 22:40:41 +02:00
Emilio Cobos Álvarez dcdc508e66 Bug 1395351: Use the parallel traversal flag more often. r=bholley
MozReview-Commit-ID: JF6i0HDniR2

--HG--
extra : rebase_source : e917a604cf01d2fdafee5d52eb9878971e217cfe
2017-09-01 19:28:57 +02:00
Emilio Cobos Álvarez 7a147d3d24 Bug 1395351: Assert the root element is styled in StyleDocument. r=bholley
MozReview-Commit-ID: 6KncJ5IqLbt

--HG--
extra : rebase_source : d9c455e9e567d4647157192cc386403c2b343cba
2017-09-01 19:31:45 +02:00
Emilio Cobos Álvarez 6c5e58f954 Bug 1395351: Don't clobber restyle root flags from frame construction. r=bholley
MozReview-Commit-ID: EsXKiLbYQsY

--HG--
extra : rebase_source : ef87462e8495670b6e0fcfbdfc9f3b511f5f57bc
2017-08-31 21:37:50 +02:00
Sebastian Hengst eee61902f8 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-01 10:45:14 +02:00
Sebastian Hengst 43bc951ac7 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: ES9rKhiQo10
2017-09-01 10:38:51 +02:00
Nicholas Nethercote 78adeaf317 Bug 1393384 (attempt 2) - Take advantage of new support for measuring heap blocks via interior pointers. r=erahm.
We now have jemalloc_ptr_info() and moz_malloc_enclosing_size_of(), which can
be used to measure heap blocks via interior pointers. This patch does the
following.

- Adds MOZ_DEFINE_MALLOC_ENCLOSING_SIZE_OF, for defining
  measure-via-interior-pointer functions.

- Uses these functions to replace some horrid pointer arithmetic in functions
  measuring Rust types.

--HG--
extra : rebase_source : 5128408256c128222025153ae3e0f924b2499a2a
2017-09-01 17:25:52 +10:00