Commit Graph

466 Commits

Author SHA1 Message Date
Timothy Guan-tin Chien
5515df7c99 Bug 1459646 - Always flip the resizer with CSS transform r=dao
Having the native theme widget to flip its own direction turned out to be
something not needed anymore, and it interfere with the CSS rule we set to
flip non-native SVG background.

This patch turned that off and always flips the resizer with CSS transform.

MozReview-Commit-ID: EbjTfFpJpZ0

--HG--
rename : layout/reftests/forms/textarea/resize-ref.html => layout/reftests/forms/textarea/resize-rtl-ref.html
rename : layout/reftests/forms/textarea/resize.html => layout/reftests/forms/textarea/resize-rtl.html
extra : rebase_source : a319698cea6c8460aaed23948e20b0757cec686e
2018-05-07 15:05:26 -07:00
Kartikaya Gupta
1eb717ccf5 Bug 1377187 - Rewrite the clipping code to use the new clipchain API. r=mstange
The clip chain API in webrender allows us to build the clip state in WR
so that it matches the gecko display list more closely. This patch throws
away ScrollingLayersHelper.* and introduces ClipManager.* which pushes
the clip state to WR using the new method. A quick summary of the new
method is below.

Each display item in gecko has a DisplayItemClipChain which is a chain
of individual clips. The individual clips are defined in WR, and the
clip ids for those clips are put into a WR clip chain using the new
define_clip_chain API. Furthermore, each clip chain can also have a
parent chain, which is used to link a DisplayItemClipChain to the parent
display item's DisplayItemClipChain. This allows the WR clip state to
closely match the structure of the gecko display list clip state,
resulting in more correct behaviour.

There are a few other major changes that are lumped into this patch and
that were tricky to separate into their own patches:
- The collapsing of WrScrollId and WrStickyId into WrClipId. On the WR
  side all the clip ids are treated the same anyway. Trying to preserve
  the arbitrary distinction on the gecko side was resulting in
  increasingly convoluted code, with different kinds of Variant<..>
  types in the method signatures. It was much simpler and resulted in a
  bunch of code deletion to just collapse the types.
- Moving the "override" mechanism from WebRenderAPI to ClipManager. The
  override mechanism (explained in ClipManager.h) was simplified by
  moving it into ClipManager, because it removed the need for tracking
  additional clip stack state in WebRenderAPI.

MozReview-Commit-ID: GGbdFyJGprK

--HG--
extra : rebase_source : baa56ff179e917b0ab5a5c186a3a415761f8050a
2018-05-08 09:08:39 -04:00
Timothy Guan-tin Chien
49faa579a0 Bug 1451576 - Set dir=auto on [Browse...] button of <input type=file> r=Ehsan
The label of the button comes from the UI; it's direction should be independent
of the web content directionality. As there is no access to :-moz-locale-dir()
selectors in HTML, we'll have to rely on auto-direction here.

The alternative (or, addition to the fix here) would be adding the value of
the dir attribute to HtmlForm.properties, allowing the localizers to set
the directionality explicitly. I however don't know if that's necessary.

MozReview-Commit-ID: 5NXeLtxLXVH

--HG--
extra : rebase_source : 724eb60ccd841d2355fc17ba31af3cf4792962ef
extra : source : 91d8903ab19812f36aa1732d35d0dc203b0f6281
2018-04-17 18:04:39 +08:00
Timothy Guan-tin Chien
c594214666 Bug 1450017 - Part IX, Move resizer style rules to minimal-xul.css and unify non-native resizer style r=dao
MozReview-Commit-ID: LEodr0aTPkM

--HG--
extra : rebase_source : 92c1b404ebbe64324f63ccbe1878575ae0309604
extra : source : a56127f3a7ed207da2a160362eb1bcf01bf31522
2018-04-10 21:31:25 +08:00
Hiroyuki Ikezoe
541443c523 Bug 1349646 - Don't overflow -moz-inner-focus border. r=wisniewskit+471096
MozReview-Commit-ID: FFSI6cKZBha

--HG--
extra : rebase_source : 8b858372c528a7dd0b936f9edec1aa49f8ba8c23
2018-04-07 08:38:26 +09:00
Kevin Brosnan
645b842fbe Kevin Brosnan - Bug 1435988 disable border radius styling on the range element - r=snorp
MozReview-Commit-ID: G9Hy7hXvAKY

--HG--
extra : rebase_source : 7a602c7a3bba151f35939847fd352547f33283dd
2018-02-16 13:21:07 -08:00
Emilio Cobos Álvarez
9509cd7e32 Bug 1453789: Remove Element.createShadowRoot. r=smaug
MozReview-Commit-ID: Hgxbp1Icgvh
2018-04-13 20:51:55 +02:00
Cameron McCormack
9dfabd795c Bug 1317539 - Remove dom.forms.number pref. r=bz
MozReview-Commit-ID: EgeUfWMcE8D

--HG--
extra : rebase_source : 74cb7f69e21fd1a773259a53919fb04a82af2f5d
2018-04-10 11:02:28 +10: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
Emilio Cobos Álvarez
48957d62c0 Bug 1446954: Cleanup !stylo and styloVsGecko test expectations. r=xidorn
MozReview-Commit-ID: J2glxiCWBVn
2018-03-20 11:29:51 +01:00
Jonathan Kew
7ff4c1c33d Bug 1430446 - Prefer hinted glyph widths from FreeType, except when hinting is disabled or the font includes variations. r=lsalzman 2018-01-23 18:16:42 +00:00
Jessica Jong
4bee56a645 Bug 1428685 - Use dom.webcomponents.shadowdom.enabled pref for Shadow DOM. r=smaug
Most of the Shadow DOM related code are behind "dom.webcomponents.enabled" and
this pref is only used by Shadow DOM right now, so we should rename it to
"dom.webcomponents.shadowdom.enabled"

MozReview-Commit-ID: er1c7AsSSW
2018-01-16 17:16:30 +01:00
Noemi Erli
adbfbaab81 Merge inbound to mozilla-central r=merge a=merge 2018-01-11 23:54:07 +02:00
Sylvestre Ledru
4b189b7baf Bug 1278282 - Update of the tests to reflect the removal of the gtk2 r=lsalzman
MozReview-Commit-ID: Htgc44dCEjX

--HG--
extra : rebase_source : 55ce6a6a72c36cbfdbeef08fe58d11f2053dc35f
2018-01-10 08:55:38 +01:00
Ciure Andrei
f7400ad72e Merge inbound to mozilla-central r=merge a=merge 2018-01-11 11:54:56 +02:00
Kartikaya Gupta
c3c24da1c1 Bug 1429469 - Replace fails-if(webrender) annotations with fuzzy checks. r=jrmuizel
In these cases there is no human-visible difference in the WR renderings
of the test and reference images, so we can replace the failing
annotations with fuzzy ones instead.

MozReview-Commit-ID: Ioiem4ZwwI2

--HG--
extra : rebase_source : d2204d9674b4aba6eb78bc0d0007a40121564ac5
2018-01-10 13:34:15 -05:00
Mats Palmgren
30ae9d36e5 Bug 1246836 part 2 - Reftest. r=me 2018-01-10 20:09:18 +01:00
Jonathan Kew
80ebb3e8d9 Bug 1428826 - Don't rely on FT_Get_Advance for glyph widths, get the advance from the glyph slot instead for better consistency with cairo metrics & rendering; update test expectations for minor changes in rendering. r=lsalzman 2018-01-09 17:36:37 +00:00
Emilio Cobos Álvarez
2b97da363f Bug 1417200: Stop using -moz-border-*-colors in forms.css. r=xidorn
On a CLOSED TREE, since the servo patch got in.

This removes one px of "padding" in:

 <progress style="-moz-appearance: none"></progress>

But it'd be worse to not be able as an author to override those somehow.

MozReview-Commit-ID: EFZIBHaUskM
2017-12-01 23:25:17 +01:00
Emilio Cobos Álvarez
13a91fa9f6 Bug 1417200: Make -moz-border-colors chrome only. r=xidorn
On a CLOSED TREE, since the servo patch managed to get in.

This also makes the border longhand no longer reset them.

MozReview-Commit-ID: KNais1e5FnE
2017-12-01 23:25:01 +01:00
Olli Pettay
af3373dc1d Bug 1418002 - Remove HTMLContentElement, r=jessica 2017-11-30 10:57:15 +02:00
lochang
9214b56b5a Bug 1406268 - Use rect width/height instead of minimum width/height and clamp the rect on Linux. r=mats
MozReview-Commit-ID: B7KjnO9uaef

--HG--
extra : rebase_source : c4647b31b650dddd90df528ff1ac48f72d92fed5
2017-11-17 14:20:42 +08:00
Xidorn Quan
2797a4fa56 Bug 1408811 - Update test expectation for this bug. r=emilio
on a CLOSED TREE

MozReview-Commit-ID: H4glCWmL2vc
2017-10-24 21:16:52 +02:00
Jonathan Kew
3727305260 Bug 1318526 - pt 2 - Also remove unnecessary HTTP(../..) from reftest manifests now that tests run with relaxed file-URI origin restrictions. r=dbaron 2017-10-23 23:57:11 +01:00
Sebastian Hengst
c590e1443a merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-22 11:52:30 +02:00
Jonathan Kew
1a0fca4019 Bug 1318526 - Remove HTTP(..) from reftest manifests where this was only needed to work around file-URI origin restrictions. r=dbaron 2017-10-22 08:31:41 +01:00
Xidorn Quan
72eecf2abd Bug 1408235 part 3 - Update test expectation for this bug. r=heycam
MozReview-Commit-ID: 2p0BAlW9Asc

--HG--
extra : source : 7a9582ad6d089b8a1db112461efb43fed4a60dfa
2017-10-21 11:02:34 +11:00
Emilio Cobos Álvarez
b371f16b3f Bug 1404789: Update test expectations. r=bz
MozReview-Commit-ID: 6juwgWa4OVN

--HG--
extra : rebase_source : b87fa7013e6ca894f0b06e07e7778e6b5ba3ce88
2017-10-18 11:31:18 +02:00
Emilio Cobos Álvarez
02298bd8be Bug 1404789: Add a few layout flushes to legend/shadow-dom.html that would've caught the first attempt. r=bz
MozReview-Commit-ID: LsZSSXTMMK0

--HG--
extra : rebase_source : 0e5224c33ecc017ecd8cd04ab06440f397e8bac1
2017-10-18 13:56:23 +02:00
Alexis Beingessner
e4ec98a6a9 Bug 1407753 - Adjust test expectations for fieldset impl. r=kats
One fuzzyness decrease, and one failure because we're comparing wr to fallback.
The fallback is rendering worse than wr. The fallback should be removed when
we get proper legend support (requires upstream ClipMode api).

MozReview-Commit-ID: 2yETiZx2zxE

--HG--
extra : rebase_source : 33ee33604577d7e42d7f4ddbed2db1eb77ac54d3
2017-10-18 14:12:28 -04:00
Emilio Cobos Álvarez
c021ca02b5 Bug 1409079: Re-enable web components in stylo. r=heycam,smaug
MozReview-Commit-ID: DJZRO7j2pOJ

--HG--
extra : rebase_source : c6e39755b7dd324ca8ae77b6d8a8868d913c930b
2017-10-12 15:22:17 +02:00
Xidorn Quan
fd467033f9 Bug 1407847 - Enable stylo for XUL document without system principal and annotate failures accordingly. r=heycam
MozReview-Commit-ID: KcJxloT2rR8

--HG--
extra : rebase_source : 8943efaa7afbf1bc74ac85ca103a52e2f4d1b1a4
2017-10-12 10:43:38 +11:00
Jim Chen
8bfda16485 Bug 1357191 - 2. Fix form tests for new mobile date/time controls; r=jessica
Fix some test failures on mobile for the new date/time controls,

* Because mobile does not use the built-in reset button, tests
  involving the reset button are skipped.

* The mobile-only date/time tests in test_input_typing_sanitization.html
  do not apply to the new date/time controls, so they are removed to make
  mobile match desktop.

* test_input_sanitization.html now takes a lot longer to run on Android
  debug and frequently times out, so it's disabled for debug Android builds.

* time-content-left-aligned.html may fail because of different drawing
  behavior on Android, so the test is made fuzzy on Android.

MozReview-Commit-ID: FTzwHTJgVJe
2017-10-12 12:20:14 -04:00
Louis Chang
7bb5332a1c Bug 1405986 - Add test cases for clamping checkbox/radio. r=mats
MozReview-Commit-ID: EIWvJFqdpP3

--HG--
rename : layout/reftests/forms/input/checkbox/checkbox-clamp-ref.html => layout/reftests/forms/input/checkbox/checkbox-clamp-01-ref.html
rename : layout/reftests/forms/input/checkbox/checkbox-clamp.html => layout/reftests/forms/input/checkbox/checkbox-clamp-01.html
rename : layout/reftests/forms/input/radio/radio-clamp-ref.html => layout/reftests/forms/input/radio/radio-clamp-01-ref.html
rename : layout/reftests/forms/input/radio/radio-clamp.html => layout/reftests/forms/input/radio/radio-clamp-01.html
extra : rebase_source : 0a82987f2a5073e65e60368cf59571cbcfa21e63
2017-10-10 01:02:19 +08:00
Emilio Cobos Álvarez
a4bdbace00 Bug 1406631: Update reftest expectations. r=xidorn
All the input[type="color"] reftests pass now. Only exception is the
writing-mode reftest, which has the padding hard-coded, and in Android that
padding is 7px instead of 8px.

There's a similar test for button skipped on Android, so I'm doing the same and
leaving a comment.

MozReview-Commit-ID: JvGHnhPklUs

--HG--
extra : rebase_source : 8e4f89c6e2963f0bb5e8c23ca6f20878d0712f3f
2017-10-10 16:03:18 +02:00
Louis Chang
033835901f Bug 1404770 Part 3 - Remove test case checkbox-radio-auto-sized-ref.html. r=mats
MozReview-Commit-ID: 6np49zh2u1l

--HG--
extra : rebase_source : bfaba9c5803ee048b190c1969b22c724222506e8
2017-10-06 11:08:58 +08:00
Louis Chang
9257089c9c Bug 1404770 Part 2 - Add test case for testing minimum size of checkbox/radio. r=mats
MozReview-Commit-ID: ElnFKUCuCrK

--HG--
extra : rebase_source : 26bd8d7aa2b6c3355b4af675d0e61e0be3ff3d3b
2017-10-05 16:49:09 +08:00
Geoff Brown
7ddd283350 Bug 1363945 - Follow-up: really mark text-control-baseline-1.html as fuzzy on Android, r=me,test-only
skiaContent is true on Android, so the previous change was a no-op.
2017-10-04 13:03:24 -06:00
Geoff Brown
182eccad55 Bug 1363945 - Mark text-control-baseline-1.html as fuzzy on Android; r=me,test-only
As recommended by dholbert - thanks!
2017-10-04 11:19:41 -06:00
Louis Chang
d9d121a677 Bug 1400050 Part 2 - Add test case for testing clamping issue of checkbox/radio. r=mats
MozReview-Commit-ID: BJgK4E3dOsi

--HG--
extra : rebase_source : 52aae08c37c89a8fbdcf0d40d5d37fe21c50271b
2017-10-02 16:04:32 +08:00
Markus Stange
8e7d24a02d Bug 1403697 - When restricting background colors to the background region, only use clips if we have rounded corners. r=mattwoodrow
MozReview-Commit-ID: F1ked65OBxA

--HG--
extra : rebase_source : 3ba3859da65d6be929821a7c13d47fd7c090b54e
2017-09-29 17:39:21 -04:00
Wes Kocher
9345eb3842 Backed out changeset fbc75bbbebc1 (bug 1403697) for wptlint issues a=backout
MozReview-Commit-ID: 5gaaqSD7sUa
2017-09-29 11:20:24 -07:00
Markus Stange
d70957bd08 Bug 1403697 - When restricting background colors to the background region, only use clips if we have rounded corners. r=mattwoodrow
MozReview-Commit-ID: F1ked65OBxA

--HG--
extra : rebase_source : a3fe97d550755f4a469bec923991f63becf5daed
2017-09-29 13:30:58 -04:00
Kartikaya Gupta
818cfd7499 Bug 1389000 - Update reftest annotations for layers-free results. r=jrmuizel
This patch:
- adds fails-if annotations for all the reftests that were consistently failing
  with layers-free turned on.
- removes fails-if or reduces the range on fuzzy-if annotations for all
  the reftests that were producing UNEXPECTED-PASS results with
  layers-free turned on.
- adds skip-if, random-if, or fuzzy-if annotations to the reftests that
  were intermittently failing due to timeout, obvious incorrectness, or
  slight pixel differences, respectively.

MozReview-Commit-ID: A0Aknn6rnjj

--HG--
extra : rebase_source : 420d9cf43f23a5d654fa36eec69138937d13c173
2017-09-26 14:49:19 -04:00
Boris Zbarsky
86db2ae4fd Bug 1386530. Fix handling of type changes that affect validity state to properly notify state changes. r=jessica
MozReview-Commit-ID: Khhzi1HyCpt
2017-09-22 15:47:16 -04:00
Joel Maher
f4b8f26ddb Bug 1398910 - make reftest-no-accel run on windows 10 (hardware) instead of windows 8. r=ahal,jet 2017-09-19 11:44:07 -04:00
Chris Peterson
ce7edc4de1 Bug 1394603 - Replace fails-if(!styloVsGecko) to fails. r=jryans
Skip tests that are expected to fail in both Stylo and Gecko modes. They would unexpectedly "pass" in styloVsGecko mode when comparing the two failures, which is not a useful result.

MozReview-Commit-ID: 3mOpjU225Q1

--HG--
extra : rebase_source : 22bb5d4e3c5138ef832995eaf5716824f4707ffe
extra : source : d40fb20c9a49d0797c0eeae613a04912b12a28f7
2017-09-01 20:39:44 -07:00
Phil Ringnalda
75f9cdbd7e Backed out 3 changesets (bug 1394603) for reftest syntax error
CLOSED TREE

Backed out changeset 44117208f321 (bug 1394603)
Backed out changeset 31088c59d895 (bug 1394603)
Backed out changeset 20551d68f602 (bug 1394603)

MozReview-Commit-ID: 4F4jSQ8GyfG
2017-09-06 22:48:55 -07:00
Chris Peterson
2d629378b2 Bug 1394603 - Replace fails-if(!styloVsGecko) to fails. r=jryans
Skip tests that are expected to fail in both Stylo and Gecko modes. They would unexpectedly "pass" in styloVsGecko mode when comparing the two failures, which is not a useful result.

MozReview-Commit-ID: 3mOpjU225Q1

--HG--
extra : rebase_source : 0c307639c3626af3b6b43e05d3ee73d08b3f47ce
2017-09-01 20:39:44 -07:00
Xidorn Quan
ca7b1d12d2 Bug 1396136 part 2 - Re-enable reftests in forms. r=xidorn
MozReview-Commit-ID: HTVY3HwkuFR

--HG--
extra : rebase_source : c2eb7488bdf75c758ce5f638a4ac87253558f4bc
2017-09-05 12:07:46 +10:00