Commit Graph

10191 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
56df9575bc Bug 1499000 - Don't do CORS checks on CSS images with the resource:// scheme. r=bzbarsky
CORS only works on http channels, so anything else that tries to do a
CORS-enabled request fails catastrophically.

resource:// images are useful for extension developers, so don't perform CORS
checks on them. We may want to also do file:// and fix bug 1565509, while at it,
if we consider it's causing developer pain.

Differential Revision: https://phabricator.services.mozilla.com/D40651

--HG--
extra : moz-landing-system : lando
2019-08-09 18:09:55 +00:00
Emilio Cobos Álvarez
03209c7dd2 Bug 1569078 - Back out changeset 97e691afc504c62ba2295bb3e9c3d33204b15d60 (bug 1456052) for causing this bug.
MANUAL PUSH: Backout
2019-08-09 13:06:40 +02:00
L. David Baron
99fc596f62 Bug 1547759 - Ensure that we call ApplyRelativePositioning after the frame's new size has been set so it works correctly for RTL. r=jfkthame,dholbert
Differential Revision: https://phabricator.services.mozilla.com/D40568

--HG--
extra : moz-landing-system : lando
2019-08-08 20:04:40 +00:00
L. David Baron
d40bd66226 Bug 1547759 - Add reftest. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D40564

--HG--
extra : moz-landing-system : lando
2019-08-05 11:41:41 +00:00
L. David Baron
85cac89c70 Bug 1561792 - Rename the pref gfx.font_ahem_antialias_none to gfx.font_rendering.ahem_antialias_none to avoid the additional pref observer added in the previous patch. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D41068

--HG--
extra : moz-landing-system : lando
2019-08-07 20:46:04 +00:00
L. David Baron
7f14d882ae Bug 1561792 - Handle dynamic changes of gfx.font_ahem_antialias_none (and make FlushFontAndWordCaches stronger for other callers) and fix a few test failures/intermittents using it. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D41067

--HG--
extra : moz-landing-system : lando
2019-08-07 20:44:35 +00:00
Charlie Marlow
be2d349416 Bug 1555865: added text-decoration-thickness to the text-decoration shorthands r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D40335

--HG--
extra : moz-landing-system : lando
2019-08-07 17:42:15 +00:00
Ting-Yu Lin
83d9aa16f4 Bug 1571135 - Remove the preference that controls breaking floats inside columns. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D40587

--HG--
extra : moz-landing-system : lando
2019-08-05 17:39:19 +00:00
Emilio Cobos Álvarez
141334b620 Bug 1571222 - Fuzz a test on Android to keep central green. rpending=dbaron
This annotation matches the one in
layout/reftests/css-invalid/select/reftest.list for
select-disabled-fieldset-1.html (which should really produce the same
rendering, and have the same reference).

This is a one-pixel fuzz on the fieldset border near the bottom right corner.

It's unclear which patch of this pushlog, if any, caused this:

  https://hg.mozilla.org/mozilla-central/pushloghtml?changeset=4a49d88894d8d88f87760ac59ae35b2158fab7b2

Probably bug 1404868, which added reftests and tickled something. But it seems
this is not really that patches' fault, so to avoid speculatively backing it
out, with the chance of it not being the offender, let's mark it as fuzzy for
now.

I kept the exact same annotation as the other test, since this goes directly to
central, so it's less risky.

We could try to make it fuzzy-if(Android,9-9,1-1), maybe, though given it seems
to be affected to changes to adjacent reftests that may be unwise.
2019-08-03 19:36:29 +02:00
L. David Baron
20201d0cc7 Bug 1404868 - Always reflow float placeholders when they move to a different block fragment. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D40276

--HG--
extra : moz-landing-system : lando
2019-08-02 21:05:20 +00:00
L. David Baron
cf73a1c8cc Bug 1404868 - Add reftests. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D40273

--HG--
extra : moz-landing-system : lando
2019-08-02 23:44:13 +00:00
Emilio Cobos Álvarez
eb1de83a74 Bug 1450173 - Allow the datetime wrapper to grow so that you can e.g. align its contents using text-align. r=dholbert
Also drive-by remove some useless prefixes since user-select was unprefixed in
bug 1492739.

Differential Revision: https://phabricator.services.mozilla.com/D40456

--HG--
extra : moz-landing-system : lando
2019-08-02 17:31:09 +00:00
Ting-Yu Lin
b14d39764b Bug 1548100 Part 2 - Fix the block-size of the column-rule by consuming available block-size. r=dbaron
After enabling column-span, ColumnSet becomes an anonymous child under
ColumnSetWrapperFrame. It doesn't need to handle border and padding,
containment, and non-auto block-size. ColumnSet's final block-size is
simply the union of ::-moz-column-content frames' rects.

However, we should extend ColumnSet's block-size to consume the
available block-size if the ColumnSetWrapper's block-size is constrained
so that the column rules are drawn to the block-end edge of the multicol
container.

Differential Revision: https://phabricator.services.mozilla.com/D39060

--HG--
rename : testing/web-platform/meta/css/css-multicol/multicol-breaking-000.html.ini => testing/web-platform/meta/css/css-multicol/multicol-rule-nested-balancing-001.html.ini
rename : testing/web-platform/meta/css/css-multicol/multicol-breaking-000.html.ini => testing/web-platform/meta/css/css-multicol/multicol-rule-nested-balancing-002.html.ini
rename : testing/web-platform/meta/css/css-multicol/multicol-breaking-000.html.ini => testing/web-platform/meta/css/css-multicol/multicol-span-all-rule-001.html.ini
extra : moz-landing-system : lando
2019-08-01 22:48:55 +00:00
L. David Baron
0b4a5a5bc8 Bug 1420528 - As with constrained block-size, reflow lines with floats when block-size was *previously* constrained. r=TYLin
On its own (without the previous patch), this fixes bug 1406291.

Combined with the previous patch, this patch fixes this bug (bug
1420528) when column-span is not enabled (today's configuration), and
also fixes 1411799.

Differential Revision: https://phabricator.services.mozilla.com/D39818

--HG--
extra : moz-landing-system : lando
2019-08-01 06:57:07 +00:00
L. David Baron
10aa1b483d Bug 1420528 - When a frame that was incomplete doesn't fit, make sure we reflow it again. r=TYLin
This patch fixes bug 1420528 when column-span is enabled, and it also
fixes bug 1468654.

Differential Revision: https://phabricator.services.mozilla.com/D39582

--HG--
extra : moz-landing-system : lando
2019-08-01 00:48:05 +00:00
L. David Baron
2cccdeaf40 Bug 1420528 - Add reftests for other bugs fixed by this bug. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D40144

--HG--
extra : moz-landing-system : lando
2019-08-01 06:55:04 +00:00
L. David Baron
1abcde2948 Bug 1420528 - Add reftest. r=TYLin
Note that I introduced a blank line to make the intent of the NOTE
clearer, which I had to research.  I think it's clear it covers the
three tests below it based on
https://hg.mozilla.org/mozilla-central/rev/53489b3e14f1 and
https://bugzilla.mozilla.org/show_bug.cgi?id=967311#c0 .

I'm also running this test both with and without the column-span pref,
because those two states will be fixed by different patches.

Co-authored-by: L. David Baron <dbaron@dbaron.org>
Co-authored-by: Daniel Holbert <dholbert@cs.stanford.edu>

Differential Revision: https://phabricator.services.mozilla.com/D39581

--HG--
extra : moz-landing-system : lando
2019-08-01 00:48:00 +00:00
Jamie Nicol
b50b6a29c2 Bug 1570544 - Mark emoji reftests as failing for geckoview (regardless of webrender) r=lsalzman
These tests were marked as `fails-if(geckoview&&!webrender)`. They are
failing on geckoview because of bug 1558513: there is an offset
between the emojis in the test and reference images.

The reason that they were passing on webrender previously was because
the emojis weren't being drawn at all, so both the test and reference
images were blank. Bug 1562316 fixed the emojis being drawn with
webrender, but bug 1558513 remains (they are still offset).

Differential Revision: https://phabricator.services.mozilla.com/D40191

--HG--
extra : moz-landing-system : lando
2019-08-01 14:55:28 +00:00
Daniel Holbert
1a9a2f27ea Bug 1570550: Increase fuzzy threshold for webkit-text-stroke-property-001.html and -003.html on Android WebRender, to reflect reality. (no review, test-annotation-only)
Differential Revision: https://phabricator.services.mozilla.com/D40325

--HG--
extra : moz-landing-system : lando
2019-08-01 22:21:13 +00:00
Ciure Andrei
8a5a8ec27a Backed out 2 changesets (bug 1548100) for causing nsColumnSetFrame.cpp perma asertion failures CLOSED TREE
Backed out changeset a06a6a6e1c5e (bug 1548100)
Backed out changeset 03a11c109d07 (bug 1548100)
2019-08-02 00:44:55 +03:00
Ting-Yu Lin
d6aaf98bcd Bug 1565665 - Make ColumnSet and -moz-column-content frames always "display: block". r=dbaron
We expect ColumnSet and -moz-column-content to be block outside.

If ColumnSets' display style is inherit from ColumnSetWrapper, then a
multicol with "display: inline-block" is going to wrap ColumnSet in a
inline nsLineBox when ColumnSet is added to ColumnSetWrapper, which is
not what we want.

This change fixed [.multicol 4] and [.multicol 6] in
multicol-gap-percentage-001.html with column-span disable, but it can
also fix [.multicol 5] in multicol-gap-percentage-001.html when
column-span is enabled (bug 1489298), so I go ahead and enable the pref
in that test.

Differential Revision: https://phabricator.services.mozilla.com/D39997

--HG--
extra : moz-landing-system : lando
2019-07-31 21:44:07 +00:00
Ting-Yu Lin
e65d961df7 Bug 1548100 Part 2 - Fix the block-size of the column-rule by consuming available block-size. r=dbaron
After enabling column-span, ColumnSet becomes an anonymous child under
ColumnSetWrapperFrame. It doesn't need to handle border and padding,
containment, and non-auto block-size. ColumnSet's final block-size is
simply the union of ::-moz-column-content frames' rects.

However, we should extend ColumnSet's block-size to consume the
available block-size if the ColumnSetWrapper's block-size is constrained
so that the column rules are drawn to the block-end edge of the multicol
container.

Differential Revision: https://phabricator.services.mozilla.com/D39060

--HG--
rename : testing/web-platform/meta/css/css-multicol/multicol-breaking-000.html.ini => testing/web-platform/meta/css/css-multicol/multicol-rule-nested-balancing-001.html.ini
rename : testing/web-platform/meta/css/css-multicol/multicol-breaking-000.html.ini => testing/web-platform/meta/css/css-multicol/multicol-rule-nested-balancing-002.html.ini
rename : testing/web-platform/meta/css/css-multicol/multicol-breaking-000.html.ini => testing/web-platform/meta/css/css-multicol/multicol-span-all-rule-001.html.ini
extra : moz-landing-system : lando
2019-08-01 00:03:22 +00:00
Timothy Nikkel
7184148ba0 Bug 1569215. In StackingContextHelper constructor pass parent scale to ChooseScale. r=jrmuizel
This might seem like we are including the parent scale twice because it is also included in mInheritedTransform but FrameLayerBuilder::ChooseScale only incorporates the passed in scale when combining it with a scale computed purely based on the local transform induced by this stacking context item.

This also fixes bug 1564698 and doesn't regress bug 1495163 (the only testcase I can still find for the regressing bug, bug 1415987).

Differential Revision: https://phabricator.services.mozilla.com/D39867

--HG--
extra : moz-landing-system : lando
2019-08-01 02:03:19 +00:00
Daniel Holbert
76fa21ac46 Bug 1570520: Increase fuzzy threshold for reftests webkit-text-stroke-property-003.html and webkit-text-stroke-property-005.html. (no review, test-annotation-only)
Differential Revision: https://phabricator.services.mozilla.com/D40147

--HG--
extra : moz-landing-system : lando
2019-08-01 01:52:08 +00:00
Hiroyuki Ikezoe
2d61e340d1 Bug 1520096 - Enable reftests related to meta viewport tags on WebRender. r=botond
The reason of failures has been solved by bug 1563717.

Differential Revision: https://phabricator.services.mozilla.com/D39637

--HG--
extra : moz-landing-system : lando
2019-07-31 21:00:31 +00:00
Lee Salzman
08eecf9eae Bug 1568858 - always stretch box shadows except for Cairo. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D39412

--HG--
extra : moz-landing-system : lando
2019-07-26 16:31:21 +00:00
Andreea Pavel
e4263c00eb Merge mozilla-inbound to mozilla-central. a=merge 2019-07-25 08:59:39 +03:00
Emilio Cobos Álvarez
d81592dcc2 Bug 1456052 - Change overflow-clip-box of textarea to be consistent with text inputs and match other browsers. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D38794

--HG--
extra : moz-landing-system : lando
2019-07-24 14:56:13 +00:00
Emilio Cobos Álvarez
49478cea9a Bug 1567105 - Tests. r=jwatt
The reftest-paged tests don't trigger the document clone code-path (I realized
that after writing them), but I guess they don't hurt, the printpreview test
does fail without the previous patch.

Depends on D39053

Differential Revision: https://phabricator.services.mozilla.com/D39054

--HG--
extra : moz-landing-system : lando
2019-07-23 19:22:48 +00:00
Ciure Andrei
065e9a00d1 Backed out changeset 8514a3095fca (bug 1456052) for causing padding-scrollbar-placement.html to perma fail CLOSED TREE 2019-07-23 02:50:38 +03:00
Andrew Swan
194eb24d5d Bug 1563331 Fix obsolete use of <tabs> r=bdahl
After bug 1555060, <tabs> elements should not use dom accessors to get
to the <tab> elements inside a <tabs>.  This test was using lastChild,
this patch brings it up to date.

Differential Revision: https://phabricator.services.mozilla.com/D38526

--HG--
extra : moz-landing-system : lando
2019-07-22 22:01:40 +00:00
Emilio Cobos Álvarez
2db7de5c3d Bug 1456052 - Change overflow-clip-box of textarea to be consistent with text inputs and match other browsers. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D38794

--HG--
extra : moz-landing-system : lando
2019-07-22 21:17:18 +00:00
Boris Zbarsky
0f70d08ec8 Bug 1566595. Stop using [array] in nsIBinaryOutputStream. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D38387

--HG--
extra : moz-landing-system : lando
2019-07-22 20:27:39 +00:00
Ciure Andrei
98278afa46 Backed out changeset a858e4411532 (bug 1566595) for causing Windows MinGW builds bustages CLOSED TREE 2019-07-22 21:39:08 +03:00
Boris Zbarsky
9c74919340 Bug 1566595. Stop using [array] in nsIBinaryOutputStream. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D38387

--HG--
extra : moz-landing-system : lando
2019-07-22 14:52:04 +00:00
Daniel Holbert
088b7f4827 Bug 1568542: Adjust fuzzy annotation for reftest 1562733-rotated-nastaliq-2.html to allow a couple more pixels to be fuzzy. (no review, test-annotation-only) 2019-07-24 12:02:11 -07:00
longsonr
01547f5575 Bug 1474834 - fix transform-box for SVG shapes with fill: none r=dholbert 2019-07-24 09:13:18 +01:00
Hiroyuki Ikezoe
29364f973b Bug 1567108 - Test. r=hiro,emilio
Differential Revision: https://phabricator.services.mozilla.com/D38601
2019-07-20 17:43:49 +02:00
Emilio Cobos Álvarez
cf7beea50e Bug 1561794 - Do not crop display text of themed comboboxes due to padding. r=dbaron
This is a potential fix that I thought it was worth doing rather than
implementing Blink's platform-dependent silliness. This ensures that the display
frame always has enough space to display itself.

Note that it may still get clipped, if there's no room for both the display
frame and the button.

Differential Revision: https://phabricator.services.mozilla.com/D37922

--HG--
extra : moz-landing-system : lando
2019-07-20 14:54:33 +00:00
Jonathan Kew
f37f1040f9 Bug 1567397 - Adjust fuzzy annotations for minor subpixel changes in rotated nastaliq tests. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D38646

--HG--
extra : moz-landing-system : lando
2019-07-19 22:49:16 +00:00
Jeff Muizelaar
7004f6c590 Bug 1567265. Add test for visible rect changes not causing bounds changes. r=mstange
This tests triggers the problem that we ran into with bug 1565231. It
triggers the somewhat rare scenario where we update a blob and have a
new visible area.

Often changes in the visible area cause a bounds change which causes a
complete rebuild of the blob.

Differential Revision: https://phabricator.services.mozilla.com/D38550

--HG--
extra : moz-landing-system : lando
2019-07-19 13:03:14 +00:00
Jonathan Kew
91ee22332b Bug 1513423 - Measure text by always laying out glyphs LTR. r=heycam
Depends on D38298

Differential Revision: https://phabricator.services.mozilla.com/D38299

--HG--
extra : moz-landing-system : lando
2019-07-18 04:55:05 +00:00
Jonathan Kew
07940ead4d Bug 1513423 - Additional testcases for correct bounding box of complex RTL text runs. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D38298

--HG--
rename : layout/reftests/bugs/1116480-1-fakeitalic-overflow-ref.html => layout/reftests/bugs/1513423-1-ref.html
rename : layout/reftests/bugs/1116480-1-fakeitalic-overflow.html => layout/reftests/bugs/1513423-1.html
rename : layout/reftests/bugs/1116480-1-fakeitalic-overflow-ref.html => layout/reftests/bugs/1513423-2-ref.html
rename : layout/reftests/bugs/1116480-1-fakeitalic-overflow.html => layout/reftests/bugs/1513423-2.html
extra : moz-landing-system : lando
2019-07-18 21:52:08 +00:00
L. David Baron
9b308e257b Bug 1567036 - Clear BidiParagraphData::mPrevFrame when ResolveParagraphWithinBlock creates a new continuation, which invalidates its relationship to the line iterator. r=jfkthame
This patch adds an assertion that documents the invariant that this code
needs to maintain to manage the line iterator correctly.  Failing to
meet that invariant would also cause additional assertions in my
work-in-progress on bug 1300293.

It then adds two assignments of mPrevFrame to null that make that
assertion hold.

The first assignment to null is tested by a number of tests already in
our test suite, including
layout/reftests/w3c-css/received/css-writing-modes/block-plaintext-004.html
and layout/reftests/bidi/unicode-bidi-plaintext.html , which would hit
the added assertion if that assignment to null were not present.

The second assignment to null was untested in our test suite (though it
showed up when doing view-source: of https://html.spec.whatwg.org/ ), so
I've added a reftest (1567036-1.html) that hits the added assertion if
that second assignment to null is not present.

Differential Revision: https://phabricator.services.mozilla.com/D38438

--HG--
extra : moz-landing-system : lando
2019-07-18 20:09:04 +00:00
Lee Salzman
fcb5ce241f Bug 1566449 - Don't reverse glyphs in GlyphBuffer for RTL. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D38190

--HG--
extra : moz-landing-system : lando
2019-07-17 16:20:25 +00:00
Daniel Varga
68d2d44e0e Backed out changeset d0c32e17c69f (bug 1566449) for wpt failure at /css/css-text/shaping/shaping_lig-000.html. On a CLOSED TREE 2019-07-17 13:48:59 +03:00
Lee Salzman
1492fa84f0 Bug 1566449 - Don't reverse glyphs in GlyphBuffer for RTL. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D38190

--HG--
extra : moz-landing-system : lando
2019-07-17 07:14:07 +00:00
Bogdan Tara
848c0f8b71 Backed out changeset 0948829b33b0 (bug 1566449) for boundary-shaping-010.html failures CLOSED TREE 2019-07-17 05:16:29 +03:00
Csoregi Natalia
5c50393ac1 Backed out changeset 05c5e4d30587 (bug 1561794) for multiple failures e.g. test_bug320799.html. CLOSED TREE 2019-07-17 04:24:52 +03:00
Daniel Holbert
c66b95d09e Bug 1565384 part 1: When an embedded SVG document has an aspect-ratio change, trigger a reflow if 'object-fit' is set on the embedding element. r=emilio
If the embedding element uses `object-fit`, then that indicates it's precisely
positioning and/or sizing the embedded SVG document's viewport to fit inside
the embedding element's content area.  So, when the internal SVG viewBox
changes, then the embedding element needs to redo that positioning/sizing.  For
now, this specifically requires a reflow (and in particular, the nsViewManager
adjustments at the end of nsSubDocumentFrame::Reflow).

Differential Revision: https://phabricator.services.mozilla.com/D37910

--HG--
extra : moz-landing-system : lando
2019-07-17 00:58:57 +00:00