Commit Graph

63575 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
f39eaa5d48 Bug 1452080: Remove ComputedStyle::PresContext usage from layout and canvas code. r=xidorn
Couldn't find an easy way of splitting these up :(

MozReview-Commit-ID: 2kTZ5McREUT
2018-04-09 11:19:49 +02:00
Noemi Erli
5d9588e156 Backed out 3 changesets (bug 1452080) for bustage in /builds/worker/workspace/build/src/layout/base/nsCSSFrameConstructor.cpp on a CLOSED TREE
Backed out changeset 7f5104c7a242 (bug 1452080)
Backed out changeset 806a9c95a243 (bug 1452080)
Backed out changeset bffebe8aa254 (bug 1452080)
2018-04-09 11:18:12 +03:00
Emilio Cobos Álvarez
b6bb80b714 Bug 1452080: Rename ComputedStyle::PresContext to PresContextForFrame. r=xidorn
And make nsIFrame its only caller, modulo a safety assertion.

The safety assertion will be removed at the same time as the pres context
member, since the only purpose of it is to ensure we don't keep a pres context
reference for too long.

MozReview-Commit-ID: CD5zOHVO9ub
2018-04-09 09:57:57 +02:00
Emilio Cobos Álvarez
2a427429ff Bug 1452080: Remove ComputedStyle::PresContext usage from layout and canvas code. r=xidorn
Couldn't find an easy way of splitting these up :(

MozReview-Commit-ID: 2kTZ5McREUT
2018-04-09 09:57:55 +02:00
L. David Baron
e2d0b2c595 Bug 1439398 followup: remove trailing space to satisfy web-platform-tests lint. No review (trivial and test-only). 2018-04-08 12:20:29 +09:00
Emilio Cobos Álvarez
bf9afde936 Bug 1451874: Respect the -moz- gradient pref again. r=xidorn
MozReview-Commit-ID: 2MDRZLmLMM0
2018-04-07 18:18:09 +02:00
Emilio Cobos Álvarez
2cf945b0da Bug 1439398: Upstream a few more ib-split tests. r=dbaron
MozReview-Commit-ID: 3Ah1bb8dmwq


--HG--
rename : layout/reftests/ib-split/emptyspan-1-ref.html => layout/reftests/w3c-css/submitted/ib-split/emptyspan-1-ref.html
rename : layout/reftests/ib-split/emptyspan-1.html => layout/reftests/w3c-css/submitted/ib-split/emptyspan-1.html
rename : layout/reftests/ib-split/emptyspan-2-ref.html => layout/reftests/w3c-css/submitted/ib-split/emptyspan-2-ref.html
rename : layout/reftests/ib-split/emptyspan-2.html => layout/reftests/w3c-css/submitted/ib-split/emptyspan-2.html
rename : layout/reftests/ib-split/emptyspan-3-ref.html => layout/reftests/w3c-css/submitted/ib-split/emptyspan-3-ref.html
rename : layout/reftests/ib-split/emptyspan-3.html => layout/reftests/w3c-css/submitted/ib-split/emptyspan-3.html
rename : layout/reftests/ib-split/emptyspan-4-ref.html => layout/reftests/w3c-css/submitted/ib-split/emptyspan-4-ref.html
rename : layout/reftests/ib-split/emptyspan-4.html => layout/reftests/w3c-css/submitted/ib-split/emptyspan-4.html
rename : layout/reftests/ib-split/float-inside-inline-between-blocks-1-ref.html => layout/reftests/w3c-css/submitted/ib-split/float-inside-inline-between-blocks-1-ref.html
rename : layout/reftests/ib-split/float-inside-inline-between-blocks-1.html => layout/reftests/w3c-css/submitted/ib-split/float-inside-inline-between-blocks-1.html
rename : layout/reftests/ib-split/percent-height-1-ref.html => layout/reftests/w3c-css/submitted/ib-split/percent-height-1-ref.html
rename : layout/reftests/ib-split/percent-height-1.html => layout/reftests/w3c-css/submitted/ib-split/percent-height-1.html
rename : layout/reftests/ib-split/split-inner-inline-1-ref.html => layout/reftests/w3c-css/submitted/ib-split/split-inner-inline-1-ref.html
rename : layout/reftests/ib-split/split-inner-inline-1.html => layout/reftests/w3c-css/submitted/ib-split/split-inner-inline-1.html
rename : layout/reftests/ib-split/split-inner-inline-2-ref.html => layout/reftests/w3c-css/submitted/ib-split/split-inner-inline-2-ref.html
rename : layout/reftests/ib-split/split-inner-inline-2.html => layout/reftests/w3c-css/submitted/ib-split/split-inner-inline-2.html
rename : layout/reftests/ib-split/table-pseudo-in-part3-1-ref.html => layout/reftests/w3c-css/submitted/ib-split/table-pseudo-in-part3-1-ref.html
rename : layout/reftests/ib-split/table-pseudo-in-part3-1.html => layout/reftests/w3c-css/submitted/ib-split/table-pseudo-in-part3-1.html
rename : layout/reftests/ib-split/whitespace-present-1-ref.html => layout/reftests/w3c-css/submitted/ib-split/whitespace-present-1-ref.html
rename : layout/reftests/ib-split/whitespace-present-1a.html => layout/reftests/w3c-css/submitted/ib-split/whitespace-present-1a.html
rename : layout/reftests/ib-split/whitespace-present-1b.html => layout/reftests/w3c-css/submitted/ib-split/whitespace-present-1b.html
2018-04-07 16:18:06 +02:00
Emilio Cobos Álvarez
384cc13fa7 Bug 1439398: Tidy a few more tests in preparation to upstreaming. r=dbaron
MozReview-Commit-ID: 2QLhO7iu01e
2018-04-07 16:18:06 +02:00
Emilio Cobos Álvarez
89a200a966 Bug 1439055: Export the ib-split remove-* reftests. r=bz
MozReview-Commit-ID: Ey94P8sPyhp


--HG--
rename : layout/reftests/ib-split/remove-from-split-inline-1-noib-ref.html => layout/reftests/w3c-css/submitted/ib-split/remove-from-split-inline-1-noib-ref.html
rename : layout/reftests/ib-split/remove-from-split-inline-1-ref.html => layout/reftests/w3c-css/submitted/ib-split/remove-from-split-inline-1-ref.html
rename : layout/reftests/ib-split/remove-from-split-inline-1.html => layout/reftests/w3c-css/submitted/ib-split/remove-from-split-inline-1.html
rename : layout/reftests/ib-split/remove-from-split-inline-2-ref.html => layout/reftests/w3c-css/submitted/ib-split/remove-from-split-inline-2-ref.html
rename : layout/reftests/ib-split/remove-from-split-inline-2.html => layout/reftests/w3c-css/submitted/ib-split/remove-from-split-inline-2.html
rename : layout/reftests/ib-split/remove-from-split-inline-3-noib-ref.html => layout/reftests/w3c-css/submitted/ib-split/remove-from-split-inline-3-noib-ref.html
rename : layout/reftests/ib-split/remove-from-split-inline-3-ref.html => layout/reftests/w3c-css/submitted/ib-split/remove-from-split-inline-3-ref.html
rename : layout/reftests/ib-split/remove-from-split-inline-3.html => layout/reftests/w3c-css/submitted/ib-split/remove-from-split-inline-3.html
rename : layout/reftests/ib-split/remove-from-split-inline-4-noib-ref.html => layout/reftests/w3c-css/submitted/ib-split/remove-from-split-inline-4-noib-ref.html
rename : layout/reftests/ib-split/remove-from-split-inline-4-ref.html => layout/reftests/w3c-css/submitted/ib-split/remove-from-split-inline-4-ref.html
rename : layout/reftests/ib-split/remove-from-split-inline-4.html => layout/reftests/w3c-css/submitted/ib-split/remove-from-split-inline-4.html
rename : layout/reftests/ib-split/remove-from-split-inline-5-noib-ref.html => layout/reftests/w3c-css/submitted/ib-split/remove-from-split-inline-5-noib-ref.html
rename : layout/reftests/ib-split/remove-from-split-inline-5-ref.html => layout/reftests/w3c-css/submitted/ib-split/remove-from-split-inline-5-ref.html
rename : layout/reftests/ib-split/remove-from-split-inline-5.html => layout/reftests/w3c-css/submitted/ib-split/remove-from-split-inline-5.html
rename : layout/reftests/ib-split/remove-from-split-inline-6-noib-ref.html => layout/reftests/w3c-css/submitted/ib-split/remove-from-split-inline-6-noib-ref.html
rename : layout/reftests/ib-split/remove-from-split-inline-6-ref.html => layout/reftests/w3c-css/submitted/ib-split/remove-from-split-inline-6-ref.html
rename : layout/reftests/ib-split/remove-from-split-inline-6.html => layout/reftests/w3c-css/submitted/ib-split/remove-from-split-inline-6.html
rename : layout/reftests/ib-split/remove-split-inline-1-ref.html => layout/reftests/w3c-css/submitted/ib-split/remove-split-inline-1-ref.html
rename : layout/reftests/ib-split/remove-split-inline-1.html => layout/reftests/w3c-css/submitted/ib-split/remove-split-inline-1.html
2018-04-07 16:04:05 +02:00
Emilio Cobos Álvarez
2e3a1ef397 Bug 1439055: Add a few <body> tags to match better test and references. r=bz
MozReview-Commit-ID: J7NYrh9gtK9
2018-04-07 16:04:03 +02:00
Emilio Cobos Álvarez
1bbda277e4 Bug 1439055: Tidy the ib-split remove-* tests. r=bz
Mostly removing some unneeded tags (<meta name=flags> is no longer needed, and
tagging it "dom" didn't seem appropriate to me). Also adding some tags that
match the WPT test template (charset / titles mostly). Also using consistent
indentation.

Finally, adding the needed

<link rel="match">

tags so that the exported tests work correctly upstream.

MozReview-Commit-ID: Lt83JmJE4pO
2018-04-07 16:03:59 +02:00
Emilio Cobos Álvarez
e1aec7cd95 Bug 1447827: Rename the reparenting stuff. r=xidorn
MozReview-Commit-ID: H7tl6O8Ju32
2018-04-07 15:51:19 +02:00
Emilio Cobos Álvarez
a2cb2d85cd Bug 1447827: Remove unused hover generation. r=xidorn
Not worth to keep the dead code, even if we may end up having to do something
about it in bug 1376082.

MozReview-Commit-ID: 8GG7O9ujtk0
2018-04-07 15:50:59 +02:00
Emilio Cobos Álvarez
e128bf7b1a Bug 1447827: Remove ServoRestyleManager. r=xidorn
MozReview-Commit-ID: CFafQsb4rQn
2018-04-07 15:50:06 +02:00
Emilio Cobos Álvarez
7839e70676 Bug 1447827: Move ServoRestyleManager.cpp into RestyleManager.cpp. r=xidorn
Only moving implementation files, and s/ServoRestyleManager/RestyleManager/,
plus some indentation fixes.

MozReview-Commit-ID: 2WZ7KJfTrPS
2018-04-07 15:49:03 +02:00
Emilio Cobos Álvarez
b508e66696 Bug 1447827: Move members from ServoRestyleManager to RestyleManager. r=xidorn
This leaves ServoRestyleManager as just a typedef.

MozReview-Commit-ID: 5wfTkiDc2Nr
2018-04-07 15:40:00 +02:00
Emilio Cobos Álvarez
0ea369c6a3 Bug 1450717: Remove unneeded / inconsistent arguments from nsCSSFrameConstructor. r=mats
Much in the spirit of bug 1442207.

They're not only unneeded, and cheap to get, but also we call them
inconsistently with the light DOM and flattened tree parent (like ContentRemoved
for display: contents), so they're really confusing, and kind of a footgun.

MozReview-Commit-ID: 9u3Kp8Kpp5i
2018-04-07 15:37:39 +02:00
Emilio Cobos Álvarez
93fa973783 Bug 1303605: Make LazyFC assertions actually hold. r=bz
The code was trying to assert that we had frames constructed for all the nodes
in the parent chain, but we don't bail out in the
!GetContentInsertionFrameFor(aContainer) in the case that it's a children
element, because they actually have no insertion frame, though their children
do.

Move the LazyFC check after the insertion point check. That makes the previous
check work on the insertion point of the child, which makes it sound.

This also fixes bug 1410020, and with it a Shadow DOM test-case that was failing
because we had two sibling assigned to two different <slot>s, and the second one
wasn't getting properly flagged, and thus the second sibling never got a frame.

The other two test failures in this test are an event dispatch failure, where
the position of the target is not what the test expects (we don't account for
margin and padding). Filed that as bug 1450027.

Also, added a test for which we have wrong layout without these patches, and
that crashes with "Called Servo_Element_IsDisplayNone" with the first patch of
this bug applied but not this one, due to the bogus check mentioned above.

MozReview-Commit-ID: 6OeaVrZhTDv
2018-04-07 15:22:06 +02:00
Emilio Cobos Álvarez
c0f2f96f66 Bug 1303605: Remove the undisplayed maps. r=bz,mats
This is mostly code removal, changing GetDisplayContentsStyle(..) checks by an
FFI call to Servo.

The tricky parts are:

 * MaybeCreateLazily, which I fixed to avoid setting bits under display: none
   stuff. This was a pre-existing problem, which was wallpapered by the
   sc->IsInDisplayNoneSubtree() check, which effectively made the whole
   assertion useless (see bug 1381017 for the only crashtest that hit this
   though).

 * ContentRemoved, where we can no longer know for sure whether the element is
   actually display: contents if we're removing it as a response to a style
   change. See the comment there. That kinda sucks, but that case is relatively
   weird, and it's better than adding tons of complexity to handle that.

 * GetParentComputedStyle, which also has a comment there. Also, this function
   has only one caller now, so we should maybe try to remove it.

The different assertions after DestroyFramesForAndRestyle are changed for a
single assertion in the function itself, and the node bit used as an
optimization to avoid hashtable lookups is taken back.

MozReview-Commit-ID: AZm822QnhF9
2018-04-07 15:21:56 +02:00
Brindusan Cristian
74a6eccce8 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-07 12:59:20 +03:00
Brindusan Cristian
c5ba0f0766 Merge inbound to mozilla-central. a=merge 2018-04-07 12:57:02 +03:00
Jonathan Watt
f8cb572b4e Bug 1452169 - Remove nsNthIndexCache.h. r=dholbert 2018-04-06 19:10:43 +01:00
Jonathan Watt
81ccf0c0e4 Bug 1452040 - Get rid of NS_STYLE_FONT_WEIGHT_NORMAL and NS_STYLE_FONT_WEIGHT_BOLD. r=emilio 2018-04-06 14:53:25 +01:00
Noemi Erli
eb61878455 Merge inbound to mozilla-central. a=merge 2018-04-07 00:55:15 +03:00
Adrian Wielgosik
2837c659de Bug 1170771 - Remove now-empty nsDOMClassInfo. r=bz
MozReview-Commit-ID: 7XsiPD1kTt9

--HG--
extra : rebase_source : 2935c0fe1a51083f37e113c3e0599760f40829e2
2018-04-05 14:20:44 +02:00
Kartikaya Gupta
57f2b51436 Bug 1452240 - Fuzz a high-frequency intermittent failure. r=kats
MozReview-Commit-ID: LrN1XACIefT
2018-04-06 20:07:19 -04:00
Bobby Holley
5c354190dc Bug 1451421 - Stop using Gecko namespace ids in servo. r=xidorn
MozReview-Commit-ID: 2532dHCGPXW
2018-04-06 15:30:58 -07:00
Noemi Erli
758bc8158f Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-07 01:02:43 +03:00
Cameron McCormack
80e0b61efb Bug 1079292 - Re-enable test 18 of test_font_loading_api.html. r=xidorn
MozReview-Commit-ID: IPcebw8CC4i

--HG--
extra : rebase_source : a80cd84bfc5c736d464d10eb9fc33d54b20f9883
2018-04-05 18:31:47 +10:00
Sebastian Hengst
adbdb76dd0 merge mozilla-central to mozilla-inbound 2018-04-06 18:38:19 +03:00
Andrew Halberstadt
2ce99e8054 Backout hunk from a9c5a53970bf (bug 1451384) which accidentally turned off reftest run-by-manifest, r=me 2018-04-06 11:30:07 -04:00
Emilio Cobos Álvarez
92232a9bc4 Bug 1451239: Remove resolved namespace id and tag from FCItems. r=bz
Tag is unused.

This changes how some mixes of MathML and html get wrapped in anonymous table
boxes (in particular, it changes whether it uses a MathML or an HTML table
frame). The main thing this affects is whether the frame responds to certain
attributes. Responding to mathml attributes on its mContent when that mContent
is not a MathML element is weird. So arguably this is also more correct.

However, that seems acceptable to me, and you can already get that mixing
manually. On a few (arguably simple) manual test-cases mixing MathML and HTML
tables I couldn't manage to get the patched build to render differently.

Plus, neither our reftests nor the WPT MathML test-suite upstreamed by Fred Wang
for WebKit rely on this.

MozReview-Commit-ID: 8IV3iF5xIs0
2018-04-06 11:51:47 +02:00
Ben Kelly
e8a484cfaa Bug 1451467 Check for nullptr mDocument->GetWindow() in a few more places in nsPresContext. r=smaug
--HG--
extra : rebase_source : a6ac4af614b261ec44162011daddfff0c8536f0c
2018-04-05 18:33:00 +03:00
Sebastian Hengst
5f003efbc6 merge mozilla-central to autoland. CLOSED TREE 2018-04-06 18:37:03 +03:00
Andreea Pavel
eed7d2803f Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-04-06 17:54:45 +03:00
Emilio Cobos Álvarez
f1145db772 Bug 1339656: [css-align] Upstream our shorthand serialization tests. r=mats
MozReview-Commit-ID: 2EYnkBavecs
2018-04-06 14:27:40 +02:00
Emilio Cobos Álvarez
2dbc4842b7 Bug 1339656: Make the shorthand serialization test account for 'unsafe' serialization. r=mats
This should make the test upstreamable.

MozReview-Commit-ID: DeJt5HzMJHE
2018-04-06 14:27:31 +02:00
Emilio Cobos Álvarez
fff326ce5c Bug 1339656: [css-align] Don't restrict shorthand parsing now that's not ambiguous. r=mats
MozReview-Commit-ID: AnYBt6zwnPl
2018-04-06 14:27:12 +02:00
Jonathan Watt
af9d95013e Bug 1452057 - Remove remaining AsGecko() cruft. r=emilio 2018-04-04 08:53:06 +01:00
Jonathan Watt
3a5bebcfbf Bug 1452052 - Remove nsCSSRules.h. r=emilio 2018-04-03 12:47:20 +01:00
Kartikaya Gupta
87c5ab8f3d Bug 1452236 - Follow-up to increase pre-existing fuzz slightly. r=kats
MozReview-Commit-ID: GwBtJHil0Ci

--HG--
extra : rebase_source : d6f91cd5eb93fd6657984743ff82e14bc72986ab
2018-04-06 17:30:08 -04:00
Kartikaya Gupta
2eefaf54ec Bug 1344350 - Mark reftests passing with webrender on Windows. r=jrmuizel
This covers all the reftests that have lower fuzz (or zero fuzz) and
were producing an UNEXPECTED-PASS result with webrender on windows. In
many cases I just adjusted the lower bound of the existing webrender
fuzz. In other cases existing fails-if conditions had to be tweaked to
exclude webrender.

MozReview-Commit-ID: 49LvS0vuYWR

--HG--
extra : rebase_source : d194e24affb87fe4560a127ff4016f9c38f414fd
2018-04-06 11:58:44 -04:00
Kartikaya Gupta
9a9c13a09f Bug 1344350 - Mark reftests failing with webrender on windows. r=jrmuizel
Many of these could probably be fuzzed but in the interests of getting
the reftest suite turned on sooner I'm doing a blanket fails-if. This
covers all the reftests where there is more fuzz with webrender on
windows than any of existing annotations account for. In some cases the
fuzz is only a few pixels more than the equivalent Linux fuzz already
annotated, but I'll clean that up in a future bug.

MozReview-Commit-ID: IaKarbnL46d

--HG--
extra : rebase_source : 71889340305b0b12fa8eace722e42bb3faf14419
2018-04-06 11:58:43 -04:00
Daniel Holbert
28f04532eb Bug 1451723: Annotate first load of reftest 'font-matching/1394311-ref.htm' as random on Win7.
This test started failing after a reftest rebucketing.  It's likely a
particularly-bad special case of known win7 intermittent bug 1392106.  For now,
let's mark it as random on Win7 and continue investigating the general issue in
bug 1392106.

MozReview-Commit-ID: KX707Y9ycIC
2018-04-05 21:57:49 -07:00
Ryan VanderMeulen
e4e015b51b Bug 1449976 - Add a pinch more fuzz on Windows. r=me 2018-04-05 20:40:54 -04:00
Daniel Holbert
479a00ac23 Bug 1441348: Add Win10 fuzzy annotation to reftest flexbox-resizeviewport-1.xhtml.
MozReview-Commit-ID: LdSjKPWBAR0
2018-04-04 10:20:47 -07:00
Bas Schouten
994ab9fbd6 Bug 1440753: Replace pixman regions with our own region code. r=mattwoodrow
MozReview-Commit-ID: KPsTAw3Uwa2
2018-03-09 05:27:15 +01:00
Ryan VanderMeulen
91454f0b4c Bug 1449976 - Add fuzz for OSX and Windows. r=me 2018-04-05 15:06:44 -04:00
Geoff Brown
146ff5998a Bug 1440714 - Convert Android mach commands to adb.py; r=bc 2018-04-05 12:50:29 -06:00
Lee Salzman
ff2a78845b Bug 1448667 - use ColorMatrix effect instead of LuminanceToAlpha effect for DrawTargetD2D1::IntoLuminanceSource. r=bas
MozReview-Commit-ID: LHbSiFBx6HK
2018-04-05 14:07:18 -04:00