Commit Graph

59696 Commits

Author SHA1 Message Date
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
Boris Zbarsky
71d6942bcb Bug 1395650. Make anonymous column groups into non-inheriting anon boxes, to better match the behavior of other browsers. r=heycam 2017-09-01 00:53:33 -04:00
Boris Zbarsky
11a90dfbd9 Bug 1395591. When looking for our layout parent style, make sure to start with the placeholder if we're out of flow. r=emilio
MozReview-Commit-ID: 1M52bi3oQFX
2017-08-31 22:46:35 -04:00
Hiroyuki Ikezoe
6feeb8950f Bug 1394935 - A crash test. r=bholley
MozReview-Commit-ID: 1zSJPx2sVbi
2017-09-01 13:27:11 +09:00
Kartikaya Gupta
f5e6acfc7d Bug 1395237 - Update reftest fuzz values as a result of WR cset f1569c04. r=jrmuizel
MozReview-Commit-ID: RGvlA2lM8
2017-08-31 14:09:26 -04:00
Mats Palmgren
0735644b45 Bug 815077 - Make unicode ETHIOPIC WORDSPACE count as a space character. r=jfkthame
MozReview-Commit-ID: DhUayZurZ00
2017-08-31 19:08:20 +02:00
Phil Ringnalda
b8183bc0b4 Backed out 6 changesets (bug 1302470) for mochitest-chrome failures
CLOSED TREE

Backed out changeset 3aab8b1494ef (bug 1302470)
Backed out changeset fdd40abac611 (bug 1302470)
Backed out changeset a67bc2f1b624 (bug 1302470)
Backed out changeset 160522290018 (bug 1302470)
Backed out changeset 6b948c533944 (bug 1302470)
Backed out changeset 399011313b3c (bug 1302470)

MozReview-Commit-ID: 2B3uMAkzNGv
2017-08-31 20:04:24 -07:00
Boris Zbarsky
7f0ccc9510 Bug 1395312 part 2. Table backgrounds should be drawn or not based on the visibility of the relevant cell, not of the column/row/colgroup/rowgroup they come from. r=heycam
MozReview-Commit-ID: B863KFWjLLW
2017-08-31 09:12:35 -04:00
Boris Zbarsky
8216808d0e Bug 1395312 part 1. Add a method on nsTableCellFrame to determine whether it should paint borders and backgrounds. r=heycam
MozReview-Commit-ID: 7bLn4Fa3qP8
2017-08-31 09:12:14 -04:00
Boris Zbarsky
c7c1bed48a Bug 1390389. Fix anon box restyling assertions to correctly handle ib splits. r=xidorn
MozReview-Commit-ID: AtBFlvLyg6b
2017-08-31 09:12:13 -04:00
Xidorn Quan
58eb5ce434 Bug 1393189 part 6 - Add crashtest for this bug. r=heycam
MozReview-Commit-ID: 1DbP4Hs7tc2

--HG--
extra : rebase_source : 64e9c5bd849fc2f8be2b30829baa76f44f699d47
2017-08-29 17:13:34 +10:00
Xidorn Quan
f3c33019da Bug 1393189 part 5 - Rewrite CounterStyleOrNone::from_gecko_value to use fewer binding functions. r=heycam
MozReview-Commit-ID: 3EsExs0DzQr

--HG--
extra : rebase_source : b97cfeb82dcaf80eb91635e9094c55a264678865
2017-08-29 17:11:13 +10:00
Xidorn Quan
610d192c1b Bug 1393189 part 4 - Remove kListStyleKTable and CSS keywords only used in this table. r=dholbert
MozReview-Commit-ID: IM0cvCSV6tR

--HG--
extra : rebase_source : d5d60115f0774f4e31c5c93617d64534e9c89f3e
2017-08-29 15:41:37 +10:00
Xidorn Quan
ddf527e66d Bug 1393189 part 3 - Replace all uses of nsCSSProps::kListStyleKTable with gBuiltinStyleTable. r=dholbert
The change in CounterStyleManager::BuildCounterStyle converts a case-
insensitive comparison to a case-sensitive comparison by comparing atom
pointer directly. But this is fine because all names of builtin counter
styles should have been lowercased by the parser. For Gecko, it is done
in CSSParserImpl::ParseCounterStyleName, and for Servo, it is done in
counter_style::parse_counter_style_name.

MozReview-Commit-ID: JHHmzEaNIpn

--HG--
extra : rebase_source : aa43d45042c3cbd85e925596586a9a2ea51c6e4a
2017-08-29 15:36:32 +10:00
Xidorn Quan
06b5070af0 Bug 1393189 part 2 - Have CounterStyle::GetStyleName return nsIAtom and make it const. r=dholbert
MozReview-Commit-ID: KmnQSK7ZvND

--HG--
extra : rebase_source : e47fc3d41f16f18f7182bf561d8da7249fd27bc5
2017-08-29 15:21:36 +10:00
Xidorn Quan
d189e163c1 Bug 1393189 part 1 - Statically initialize builtin style table with their name atom included. r=dholbert
Doing this at compile time would save a bit of our startup time, which
I've promised to do since @counter-style was initially implemented, see
bug 966166 comment 103 (the paragraph with "constexpr").

Also, having this implemented here makes using atom instead of string
on name of builtin counter styles easier, for later patches.

MozReview-Commit-ID: C9HYcuShBQv

--HG--
extra : rebase_source : 273eb3d23ee770722d27b26aafaa291d7375b8ee
2017-08-29 14:44:14 +10:00
Xidorn Quan
96c445bf1a Bug 1393189 part 0 - Reorder NS_STYLE_LIST_STYLE_* consts to match the order in nsCSSProps::kListStyleKTable. r=dholbert
MozReview-Commit-ID: 3RNqDbOjXyX

--HG--
extra : rebase_source : cda26fafbdc91328e2661025d60ea3c71952fcc1
2017-08-30 08:44:53 +10:00
Boris Chiou
5a4b83f24b Bug 1393605 - Fix gecko assertion and add one crashtest. r=birtles
MozReview-Commit-ID: 44QIZ8SipWX

--HG--
extra : rebase_source : 764a560a322b9945365929a7bba6eac77f47b554
2017-08-31 11:11:09 +08:00
Brian Birtles
670dfc03bf Bug 1395452 - Call HasAnimationController() before GetAnimationController(); r=hiro
nsDocument::GetAnimationController() will lazily create an animation controller
which, in some call sites, is unnecessary.

This patch first calls HasAnimationController() and only calls
GetAnimationController() if it returns true. This avoids creating an animation
controller in situations where one is not necessarily required.

MozReview-Commit-ID: 4cdpLRvMVJU

--HG--
extra : rebase_source : 125a59c0b0535d5df9a9964538b3784ddb1212c7
2017-08-31 15:00:39 +09:00
Nicholas Nethercote
9251ef42b7 Bug 1394729 - Measure memory usage of Stylo's Rule Tree. r=heycam.
This patch splits up the existing "layout/style-sets" measurement into
"layout/gecko-style-sets", or "layout/servo-style-sets/stylist/rule-tree" and
"layout/servo-style-sets/other". (Additional things will be measured under
"layout/servo-style-sets/" later, such as cascade data.)

This requires introducing a new type, ServoStyleSetSizes, for transferring the
multiple measurements from Rust code to C++ code.

MozReview-Commit-ID: FbmzpsjBpgI

--HG--
extra : rebase_source : f2d1441705139e6674d355792255302fcd89f748
2017-08-30 18:21:26 +10:00
Wei-Cheng Pan
83f77707b7 Bug 1373814 - Add new probe to measure start-up input latency. data-r=francois r=francois,smaug
For parent process, users may expect the UI is interactable after they saw the
first tab has restored/shown.
So this patch added a new topic "sessionstore-one-or-no-tab-restored" which
represents the parent process has finished a tab restoring. If there is nothing
to restore, it is effectively equal to "sessionstore-windows-restored".

For centent processes, users may expect web content is interactable when the
top-level-content-document has finished loading, which is different from the
parent case.

MozReview-Commit-ID: AtEUW80Ea6n

--HG--
extra : rebase_source : d920975bf95545ea9e3127d3f570b814fe301be9
2017-08-08 17:54:13 +08:00
cku
0baa0bf5c4 Bug 1395439 - Clean out useless flags to reuse cache FillGeometry in nsSVGUtils::GetBBox. r=longsonr+218550
In nsSVGUtils::GetBBox, we cache fill-gemorty's bbox in ObjectBoundingBoxProperty
of the given frame[1] so that we can just return the cache value without
recomputing bbox. Some new added flags, such as eUseFrameBoundsForOuterSVG,
prevent storing and reusing this cache value. This patch is trying to make this
cache mechanism work again.

[1]
https://hg.mozilla.org/mozilla-central/file/ef585ac7c476/layout/svg/nsSVGUtils.cpp#l1119

MozReview-Commit-ID: 8vWDzFi8qCw

--HG--
extra : rebase_source : 07725c856f77f95717f16e61a9838393b09f5789
2017-08-31 12:21:39 +08:00
Wes Kocher
cf93b6ca0d Merge m-c to autoland, a=merge
MozReview-Commit-ID: BlE0HFQUP9c
2017-08-31 16:56:58 -07:00
J. Ryan Stinnett
541bcd7f5f Bug 1395751 - Skip test_stylesheet_clone_import_rule.html with Stylo. r=manishearth
MozReview-Commit-ID: smEHAwxRP6

--HG--
extra : rebase_source : 7a959c8b6821e48749847da61764cd57aca884ba
2017-08-31 18:20:39 -05:00
Henri Sivonen
3c8567b60d Bug 1354989 - Avoid pivoting via UTF-16 when loading CSS in the Stylo mode. r=jdm,SimonSapin
MozReview-Commit-ID: Llt29dvB4Io

--HG--
extra : rebase_source : 3ae51dc8beff3fb19e9318a6c7c30c9ab08a5b57
2017-08-29 16:01:42 +03:00
Gian-Carlo Pascutto
e5c1135a58 Bug 1392640 - Only use preference based whitelisting for Linux. r=haik
MozReview-Commit-ID: IWNnRcLMreI

--HG--
extra : rebase_source : 9802f3e8c251aab58ef6f181d6066b5e020909a3
2017-08-30 13:40:10 +02:00