Commit Graph

64271 Commits

Author SHA1 Message Date
Jonathan Kew
149819a764 Bug 1463020 - Don't allow letter-spacing or cursor placement within a merged group of glyph records in a transformed textrun. r=m_kato 2018-05-22 13:46:54 +01:00
Narcis Beleuzu
3fae2ab3f2 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-05-22 14:24:39 +03:00
Narcis Beleuzu
7bfb685bb2 Merge inbound to mozilla-central. a=merge 2018-05-22 12:49:47 +03:00
Kris Maglione
8340513b0c Bug 1463287: Add QueryInterface helper macro for concrete class types. r=bz
Using concrete class types with static IIDs in QueryInterface methods is a
pretty common pattern which isn't supported by any existing helper macros.
That's lead to separate ad-hoc implementations, with varying degrees of
dodginess, being scattered around the tree.

This patch adds a helper macro with a canonical (and safe) implementation, and
updates existing ad-hoc users to use it.

MozReview-Commit-ID: HaTGF7MN5Cv

--HG--
extra : rebase_source : ace930129d85960d22bc3048ca3bb19bbbd4a63e
extra : histedit_source : 03a87f746d957789d41381e4e1bfcc4fd7eebaf2%2C9c5bae9feeeef7721105db67be0f83e0ded66bb7
2018-05-21 16:33:18 -07:00
Xidorn Quan
5d887e07dc Followup of bug 1392106 backout to remove reftest_writing_modes.list. 2018-05-22 13:57:30 +10:00
Xidorn Quan
99537039c5 Bug 1458159 followup - Update reftest expectations in w3c-css/received/reftest.list on CLOSED TREE 2018-05-22 13:44:15 +10:00
Kris Maglione
6b12d08f7d Bug 1462937: Update callers to use nsIFile::GetDirectoryEntries as a nsIDirectoryEnumerator. r=froydnj
MozReview-Commit-ID: Iv4T1MVAF5

--HG--
extra : rebase_source : 1c518883d082884db7f9323a5acc20361228c26b
extra : histedit_source : 70a73c23d1199d3bfbb5379c78930401166c094b
2018-05-19 20:17:45 -07:00
Xidorn Quan
d9975fe508 Bug 1458159 - Use rounding instead of ceiling on max{Ascent,Descent} for DWriteFont. r=jfkthame
The ceiling was introduced in bug 549190 for improve the consistency of
underline positioning. However, removing ceiling now doesn't seem to
regress the testcases in that bug, probably thanks to improvement in
other part.

The ceiling here causes us to have different font metrics than other
browsers on Windows, and can lead to webcompat issue. We also don't do
this for other backends. So it's probably better removing it in favor
of rounding.

There are several test changes:

* min-intrinsic-with-percents-across-elements.html changes result due to
  height of wrapping div in reference page depends on line height, so a
  fixed line height is set to work around the issue.

* 368020-1.html changes result because a slightly different line-height
  triggers bug 1462514. It is changed to use fixed line-height to work
  around the issue.

* 456147.xul is disabled because it compares XUL against HTML page, but
  XUL has different approach to position text in its elements than HTML.
  Specifically, XUL elements don't seem to respect line height while
  HTML elements do. The original line height in the file was probably
  chosen to make the HTML match XUL, so it seems to be non-trivial to
  fix it in a platform-independent way.

* sizing-orthog-{vlr,vrl}-in-htb-{008,020}.xht fails due to text in <p>
  after the testing block shifts 1px up for unknown reason.

MozReview-Commit-ID: 2WJG1AigWl1

--HG--
extra : source : 653c6b7480997c4e1dbead5f0441bc06a0605b7a
2018-05-22 11:43:30 +10:00
Noemi Erli
e380c579e9 Backed out changeset 1be70a3d127f (bug 1458159) for reftest failures in sizing-orthog-vlr-in-htb-008.xht on a CLOSED TREE 2018-05-22 04:23:47 +03:00
Morgan Rae Reschenberg
5e74927f09 Bug 1461979 - change faulty assert to warning r=dholbert
MozReview-Commit-ID: 1cFN6Hk2Bdj

--HG--
extra : rebase_source : 0147a6e3932abc1d672bb269b3a0b56a62302104
2018-05-21 15:35:31 -07:00
Xidorn Quan
98bfde7521 Bug 1458159 - Use rounding instead of ceiling on max{Ascent,Descent} for DWriteFont. r=jfkthame
The ceiling was introduced in bug 549190 for improve the consistency of
underline positioning. However, removing ceiling now doesn't seem to
regress the testcases in that bug, probably thanks to improvement in
other part.

The ceiling here causes us to have different font metrics than other
browsers on Windows, and can lead to webcompat issue. We also don't do
this for other backends. So it's probably better removing it in favor
of rounding.

There are several test changes:

* min-intrinsic-with-percents-across-elements.html changes result due to
  height of wrapping div in reference page depends on line height, so a
  fixed line height is set to work around the issue.

* 368020-1.html changes result because a slightly different line-height
  triggers bug 1462514. It is changed to use fixed line-height to work
  around the issue.

* 456147.xul is disabled because it compares XUL against HTML page, but
  XUL has different approach to position text in its elements than HTML.
  Specifically, XUL elements don't seem to respect line height while
  HTML elements do. The original line height in the file was probably
  chosen to make the HTML match XUL, so it seems to be non-trivial to
  fix it in a platform-independent way.

* sizing-orthog-{vlr,vrl}-in-htb-{008,020}.xht fails due to text in <p>
  after the testing block shifts 1px up for unknown reason.

MozReview-Commit-ID: 2WJG1AigWl1

--HG--
extra : rebase_source : 540e68ffff618a6dc3c14b3702b2c042988061a3
2018-05-01 15:18:55 +10:00
Emilio Cobos Álvarez
957fc20c6a Bug 1462829: followup: Re-disable the position-x / position-y tests since they're not correct. r=me to reopen the CLOSED TREE
They're not pairs, they're just either a length or a percentage.

MozReview-Commit-ID: AJK0tfC79Ue
2018-05-21 13:13:52 +02:00
Emilio Cobos Álvarez
c881bfab77 Bug 1462829: Test {background,mask}-{size,position} clamping. r=hiro
These properties no longer use calc() as an intermediate value as long as the
types of the values match.

But they don't resolve percentages to pixels in getComputedStyle as
transform-origin and perspective-origin.

MozReview-Commit-ID: 1CtN10ctGPF
2018-05-21 12:07:49 +02:00
Margareta Eliza Balazs
0bb5e5ba36 Merge inbound to mozilla-central. a=merge 2018-05-19 12:39:28 +03:00
Boris Zbarsky
a02a40bdb5 Bug 1462737. Make AsElement() not compile when called on Element or some subclass. r=mccr8
It's just noise if we already have an Element.
2018-05-18 23:37:56 -04:00
Boris Zbarsky
69f3dde06c Bug 894215 part 3. Make sure we don't bfcache pages that get mutated after we capture their state. r=smaug 2018-05-18 23:37:56 -04:00
Boris Zbarsky
6f273bf6d2 Bug 894215 part 2. Fix the document "disallow bfcaching" mechanism to work without asserting. r=smaug
There are two issues being fixed here.  First, if DisallowBFCaching is called
before CanSavePresentation, we should really return false from
CanSavePresentation.  Otherwise we'll end up doing a bunch of state-capturing
work for no reason.

Second, if DisallowBFCaching is called between CanSavePresentation and
nsDocumentViewer::Destroy, we need to actually tear down the viewer state.
What we do right now is avoid putting the viewer into the SHEntry, but still
not tear down its presshell and so forth, which leads to asserts in
~nsDocumentViewer when this case is hit.
2018-05-18 23:37:56 -04:00
Kartikaya Gupta
8e7e2dbdb4 Bug 1454042 - Allow missing pipeline information for cross-process iframes. r=sotaro
We should always have the pipeline information for in-process things like
async images, but for cross-process iframes we might not have the information
right away if the content process doesn't get around to sending it for a while.

MozReview-Commit-ID: 18F5nqilXoV

--HG--
extra : rebase_source : 610046cbaaefb38b8e11bda857fd64a00722df27
2018-05-18 10:31:18 -04:00
Ciure Andrei
25574392c0 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-05-19 01:10:35 +03:00
Ciure Andrei
2f509969e9 Merge inbound to mozilla-central. a=merge 2018-05-19 01:05:58 +03:00
Matt Woodrow
52baaee863 Bug 1462497 - Add assertions to try diagnose which wrapper item went away. r=mstange
MozReview-Commit-ID: BkU5tTlgFum

--HG--
extra : rebase_source : f376fb94a99adfe92ae61f6a06a79d872885a5b3
2018-05-18 20:50:04 +12:00
Matt Woodrow
58713b3583 Bug 1462477 - Always initialize the value of aOutIsTransformedFixed, even we don't have an image to paint. r=mstange
This value is used to determine whether we should create nsDisplayFixedPosition, and if the result changes without an invalidation, then retained-dl gets confused with the insertion/removal of a wrap list.

MozReview-Commit-ID: JuXwCzKOxec

--HG--
extra : rebase_source : a62a2ce003eb57582c8a11bffb6c0cb766c6db15
2018-05-18 13:16:42 +12:00
Mats Palmgren
2a64b931c6 Bug 1458902 - [css-grid] Update a few WPT / reftests to new percentage row-gap layout. r=dholbert
--HG--
rename : testing/web-platform/tests/css/css-grid/reference/grid-collapsed-row-gutters-ref.html => testing/web-platform/tests/css/css-grid/reference/grid-percentage-gap-ref.html
2018-05-18 21:09:23 +02:00
Mats Palmgren
32dff95bd8 Bug 1458902 - [css-grid] Re-resolve row-gap against the sum of row track sizes for auto-sized grid containers. r=dholbert
Per CSSWG resolution in:
https://github.com/w3c/csswg-drafts/issues/1921#issuecomment-342269371
2018-05-18 21:09:21 +02:00
Emilio Cobos Álvarez
3a031c33a3 Bug 1461070: Skip starting other transitions based on specified, not already-started transitions. r=birtles,dbaron
MozReview-Commit-ID: 3D5elrj2Ypi
2018-05-18 17:21:16 +02:00
Joel Maher
5b3afd93d3 backout 3 patches (1ee5b2531836, cac593a84f72, 95ccdb87f63f) from bug 1392106 for not fixing font rendering problems.
--HG--
extra : rebase_source : 30b2aa771eeaa978a8e3af18009f22562d764831
2018-05-18 06:40:00 +03:00
Dorel Luca
9769f2300a Merge mozilla-inbound to mozilla-central. a=merge 2018-05-18 12:56:07 +03:00
Ciure Andrei
26287d7c31 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-05-19 01:09:10 +03:00
Kartikaya Gupta
5cc1ce5338 Bug 1425565 - Add a reftest. r=mstange
MozReview-Commit-ID: 4LATDpITobv

--HG--
extra : rebase_source : 98d9cf068359bc2f58a06b45c7d37bbf13e1bda1
2018-05-18 15:19:47 -04:00
Kartikaya Gupta
63feb7051a Bug 1425565 - Use the container ASR for sticky items when building WebRender clips. r=mstange
Even if the sticky item has a fixed descendant, we want to use the
sticky container item's "real" ASR when computing the WR clips because
otherwise the WR item doesn't get attached to the correct scrolling
layer.

MozReview-Commit-ID: JVnzEIBeLKp

--HG--
extra : rebase_source : 806e43eb65d46eb5151e21b0a5eb09168b2df82d
2018-05-18 15:19:47 -04:00
Bogdan Tara
a59328d28f Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-05-18 01:07:35 +03:00
Bogdan Tara
3287e1104c Merge inbound to mozilla-central. a=merge 2018-05-18 01:04:08 +03:00
Mats Palmgren
6e331b1d1d Bug 1461222 part 2 - Make GetWidgetPadding return LayoutDeviceIntMargin. r=emilio 2018-05-17 17:30:35 +02:00
Mats Palmgren
bae2d6f225 Bug 1461222 part 1 - Make GetWidgetBorder return LayoutDeviceIntMargin. r=emilio 2018-05-17 17:30:35 +02:00
Mats Palmgren
e818007e69 Bug 1461039 - Inlinify display:list-item to display:inline for now, until we support 'display:inline list-item' properly. r=xidorn 2018-05-17 17:30:35 +02:00
Mats Palmgren
4fc82257aa Bug 1460158 - Ignore non-primary child frames when searching for the main <summary> frame. r=xidorn 2018-05-17 17:30:34 +02:00
Botond Ballo
9faccb4911 Bug 1462177 - Do not condition dumping of inactive layer trees on MOZ_DUMP_PAINTING. r=mstange
MozReview-Commit-ID: t38JkoVfQl

--HG--
extra : rebase_source : 37f9f9893519ccc5a59d5f2ce2c4409aca89ed7a
2018-05-16 19:02:27 -04:00
Kartikaya Gupta
f70c1bbb80 Bug 1461946 - Remove more unused code. r=mattwoodrow
MozReview-Commit-ID: Ji5L1Ce2utN

--HG--
extra : rebase_source : 31d1c82b51ecadeceb9e3974837458521882d397
2018-05-16 14:58:56 -04:00
Kartikaya Gupta
a251efe15a Bug 1461946 - Remove unused function and parameter. r=mattwoodrow
MozReview-Commit-ID: CJ9ObpuRJCD

--HG--
extra : rebase_source : d8014372b7c6c17f7a34c6dc50b8df1a4a443460
2018-05-16 08:32:18 -04:00
Botond Ballo
d3215239ec Bug 1459890 - Do not clip mask for clip path to bbox of clipped content. r=mstange
MozReview-Commit-ID: 9yZ1ziiDAKa

--HG--
extra : rebase_source : 945b2048b31843c27cd21c19374cb7f61ea62be5
2018-05-11 18:55:30 -04:00
Ciure Andrei
3b611bc04f Backed out changeset 51cd668c0e87 (bug 1459890) dev request a=backout CLOSED TREE 2018-05-17 01:29:54 +03:00
Botond Ballo
c44bf295e5 Bug 1459890 - Do not clip mask for clip path to bbox of clipped content. r=mstange
MozReview-Commit-ID: 9yZ1ziiDAKa

--HG--
extra : rebase_source : 59ef1bc77e869a1b157f2ddb79a3c3bf674bb9a9
2018-05-11 18:55:30 -04:00
Brad Werth
674c5d9778 Bug 1454694: Re-enable the timing-sensitive part of the CORS mode test. r=bz
MozReview-Commit-ID: JEmas6ZVr6Z

--HG--
extra : rebase_source : 8d55157b863f4fe0394668fe967c935570a89def
2018-04-24 11:38:34 -07:00
Andrew Halberstadt
57cafcba8c Bug 1460912 - [reftest] Use base profiles in reftest r=gbrown
This moves reftest-preferences.js to:
testing/profiles/reftest/user.js

Developers can also now add extensions to:
testing/profiles/reftest/extensions

MozReview-Commit-ID: IVLsT5MWtcJ

--HG--
rename : layout/tools/reftest/reftest-preferences.js => testing/profiles/reftest/user.js
extra : rebase_source : 1725627d439998d92545e0d4693fbb76a266945f
2018-05-07 16:10:29 -04:00
Geoff Brown
02e2a58e26 Bug 1462182 - Dump less device info during Android test-verify; r=jmaher 2018-05-17 16:19:02 -06:00
Matt Woodrow
6d94d6c09f Bug 1459997 - Add much more rigorous assertions for retained-dl assumptions. r=miko
This adds an assertion checking for duplicate items whenever we create an item, and when we merge an item into the final list.

I had to disable tracking for the anonymous inner list for nsDisplayPerspective and nsDisplayTransform (and manually forward RemoveFrame to them), as well as skipping the assertion for multi-page (since we can end up duplicating wrap lists, but isn't a problem, since we don't retain these).

MozReview-Commit-ID: 4n6rx9bQNan

--HG--
extra : source : ff93cd94b7c548ef57fa13b7eaf85992a0a60587
2018-05-01 11:56:40 -04:00
Brad Werth
5c9353c14c Bug 1457532 Part 2: Change ImageLoader::AssociateRequestToFrame to kickoff decode for images that block onload. r=tnikkel
MozReview-Commit-ID: DpBqTzMLQXo

--HG--
extra : rebase_source : 521ee05ee20db9f88d68bca898f0b213f94c2e72
2018-05-08 14:13:56 -07:00
Brad Werth
ada534c10a Bug 1457532 Part 1: Narrow ImageLoader::OnLoadComplete to only unblock onload in response to an error status on the image request. r=tnikkel
MozReview-Commit-ID: 929PTrT9iP1

--HG--
extra : rebase_source : 062efe4ab3aae5bc85ae696d85ab1cc4081a13e2
2018-04-27 12:00:35 -07:00
Matt Woodrow
b4687fa515 Bug 1460526 - Don't attempt to do a partial rebuild when a sublist DAG gets too complex, always rebuild the whole display list. r=miko
MozReview-Commit-ID: 5u3sBSepgJa

--HG--
extra : rebase_source : f08034d384cac0353017ff6dd6fe4f152d77d48d
extra : source : 21ab7bb3b993f2b2778f9dde10ff16c3c20f320f
2018-05-15 14:21:05 +12:00
Xidorn Quan
5896b33074 Bug 1461933 - Remove ServoBindings.h from ComputedStyleInline.h. r=emilio
For doing this, ServoComputedData is split into separate files, so that
files don't need to include ServoBindings.h just for accessing style
structs from ComputedStyles.

MozReview-Commit-ID: DPAd7PUUCl9

--HG--
extra : rebase_source : 7d6f739b7fb58a46e1624ba62e717412057ea9c1
2018-05-16 15:35:59 +10:00