Commit Graph

15038 Commits

Author SHA1 Message Date
Matt Woodrow
44fcf86181 Bug 1462497 - Part 3: Don't condition useOpacity on values that might change silently between paints (HasAnimationsForCompositor, and the will-change budget). r=hiro
MozReview-Commit-ID: Kry5YIAIAHt

--HG--
extra : rebase_source : ccc1085ad534da882a9f5ef03a5b7675bc39ed08
2018-05-23 11:03:42 +12:00
Matt Woodrow
c77fe6d1bd Bug 1462497 - Part 2: Invalidate the new caret frame in subdocuments, since it will result in a new nsDisplayWrapList being created. r=miko,mstange
nsDisplayListBuilder::DisplayCaret returning true means that we set canSkipWrapList to true, and then we build an nsDisplayWrapList.
We need to make sure we're invalidated for this changing in nesting level to be handled.

MozReview-Commit-ID: 4j3WIJDcHtI

--HG--
extra : rebase_source : b64d0af756c297de42aa2e164ee32ccbe01890d1
2018-05-23 10:59:53 +12:00
Narcis Beleuzu
7bfb685bb2 Merge inbound to mozilla-central. a=merge 2018-05-22 12:49: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
Margareta Eliza Balazs
0bb5e5ba36 Merge inbound to mozilla-central. a=merge 2018-05-19 12:39:28 +03: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
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
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
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
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
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
Andreea Pavel
9badaa53d2 Backed out changeset ff93cd94b7c5 (bug 1459997) for assertion failures at builds/worker/workspace/build/src/layout/painting/nsDisplayList.cpp:141 on a CLOSED TREE 2018-05-16 09:48:56 +03:00
Matt Woodrow
0d65266918 Bug 1460491 - Part 1: Split nsDisplayItem::mVisibleRect into two members, one for each stated purpose. Gets rid of the save/restore since we no longer modify the building rect. r=jnicol
MozReview-Commit-ID: 5wcsSoZRN44

--HG--
extra : rebase_source : 1bf7d655b048a972e392514542aee171e20afe82
2018-05-16 15:56:32 +12:00
Matt Woodrow
840b789b4b 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 : rebase_source : 49da303965d63258f4c6023a0b09ef0de7553724
2018-05-01 11:56:40 -04:00
Emilio Cobos Álvarez
0406fe1464 Bug 1463138: Remove unused nsIFrame::GetPseudoElement. r=mats
MozReview-Commit-ID: 4LFZibUS9DP
2018-05-21 20:03:36 +02:00
Csoregi Natalia
334f27e152 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-05-15 12:56:29 +03:00
Emilio Cobos Álvarez
14f2acc019 Bug 1461299: Make ESM not point to unbound NAC in the hover / active chain. r=smaug
MozReview-Commit-ID: 8mL7Yv3TwQM
2018-05-15 10:43:46 +02:00
Brindusan Cristian
1ff93ba361 Backed out 3 changesets (bug 1461299, bug 1460101) for reftest failures on events/EventStateManager.cpp CLOSED TREE
Backed out changeset fe2b8fcd7a47 (bug 1461299)
Backed out changeset 9a0ca81ddbce (bug 1461299)
Backed out changeset 783cf8b58ba4 (bug 1460101)
2018-05-15 03:13:29 +03:00
Emilio Cobos Álvarez
ad6bf63946 Bug 1461299: Make ESM not point to unbound NAC in the hover / active chain. r=smaug
MozReview-Commit-ID: 8mL7Yv3TwQM
2018-05-15 01:17:34 +02:00
Brindusan Cristian
9fc8262d75 Backed out 2 changesets (bug 1461299) for debug crashtest failures on crashtests/626014.xhtml CLOSED TREE
Backed out changeset 699e9816b7ff (bug 1461299)
Backed out changeset 48f01ac94137 (bug 1461299)
2018-05-15 01:31:13 +03:00
Narcis Beleuzu
d7f7ec03a3 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-05-15 00:41:06 +03:00
Narcis Beleuzu
932adad93d Merge inbound to mozilla-central. a=merge 2018-05-15 00:36:35 +03:00
Emilio Cobos Álvarez
cf0ce82b71 Bug 1461299: Make ESM not point to unbound NAC in the hover / active chain. r=smaug
MozReview-Commit-ID: 8mL7Yv3TwQM
2018-05-14 21:55:09 +02:00
Adrian Wielgosik
f1457c6874 Bug 1460940 - Remove nsIDOMDocument uses in layout/. r=bz
MozReview-Commit-ID: KixJ5edlCjl

--HG--
extra : rebase_source : 677049bc7eb131dc86ed468eb8a6b06085f2c17d
2018-05-11 19:46:15 +02:00
Kristen Wright
5b0c2d18cb Bug 1460682 - nsSelectionStyle::mUnderlineStyle should be compared against NS_STYLE_TEXT_DECORATION_STYLE_NONE r=dbaron
Removed comparison to NS_STYLE_BORDER_STYLE_NONE and replaced with NS_STYLE_TEXT_DECORATION_STYLE_NONE

--HG--
extra : rebase_source : 559d47c0379229c169c5da75d38db6850ff3d60b
2018-05-10 10:55:47 -07:00
Robert Longson
1baf4cf80c Bug 1422226 - Don't build display lists for NONDISPLAY content. r=jwatt 2018-05-13 19:16:26 +01:00
Matt Woodrow
085d0bbe3b Bug 1459441 - Make sure we build the full display list when we have blend containers in order to get the correct sorting for them. r=mstange
MozReview-Commit-ID: ECTU7enMb1r

--HG--
extra : rebase_source : 70f1b6187c152e770c4e19539645174c62198dc0
2018-05-10 11:39:12 +12:00
Margareta Eliza Balazs
b51d5aed5d Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-05-11 12:44:53 +03:00
Margareta Eliza Balazs
4f9a2ba08e Merge inbound to mozilla-central. a=merge 2018-05-11 12:36:02 +03:00
Jonathan Kew
288d62fe84 Bug 1427660 - patch 1 - Make gfxTextRange::MatchType an enum class for stronger type checking (no functional change). r=lsalzman 2018-05-11 08:56:12 +01:00
Dorel Luca
956b982878 Merge mozilla-central to mozilla-inbound 2018-05-11 01:04:57 +03:00
Dorel Luca
d32e085275 Merge mozilla-inbound to mozilla-central. a=merge 2018-05-11 00:59:14 +03:00
Emilio Cobos Álvarez
a5e7a3aec3 Bug 509958: Unprefix :-moz-selection. r=dbaron,xidorn
Our implementation is totally not what the spec says, but totally what other
UAs do, see https://github.com/w3c/csswg-drafts/issues/2474.

So given this is causing webcompat pain, I think we should be pragmatic and just
unprefix this.

We could keep serialization and getComputedStyle with ::selection working with a
bit more effort, like we do for :-moz-placeholder, but I'd prefer not doing at
least the serialization bit, and just alias in nsCSSPseudoElements
:-moz-selection to selection too.

MozReview-Commit-ID: 6lxctozRDqv
2018-05-10 17:19:25 +02:00
Kristen Wright
031610cc8e Bug 1459367 - Convert NS_STYLE_IMAGELAYER_ATTACHMENT_* to enum class. r=manishearth
Converted NS_STYLE_IMAGELAYER_ATTATCHMENT_* vals to enum class, StyleImageLayerAttachment.
2018-05-08 15:05:33 -07:00
Brad Werth
b2b1e332cd Bug 1459697 Part 3: Add a crashtest. r=dbaron
MozReview-Commit-ID: GrUrVIdzO6

--HG--
extra : rebase_source : a683cb8f24dee4814ed2dfd2c491de9a2f060d2b
2018-05-08 09:15:43 -07:00
Brad Werth
1ac1d8fd0d Bug 1459697 Part 2: Account for the possibility that EllipseShapeInfo may not generate an interval for the entire BStart() to BEnd() range, due to rounding error in the distance field calculation. r=dbaron
MozReview-Commit-ID: CYeBKhDYD1F

The distance field does not calculate a true Euclidean distance, so it is
unreasonable to require that the intervals span all of the BStart() to BEnd()
float area. The final block pixel may not generate an interval at all due to
rounding errors. This change makes accomodation for the rounding errors and
adds asserts to ensure we aren't tolerating errors outside the area of the
last block pixel.

--HG--
extra : rebase_source : 114c1667861c90a055295f9bd40a3991cbb5dc88
2018-05-07 14:02:03 -07:00
Brad Werth
4624dc95ff Bug 1459697 Part 1: In EllipseShapeInfo distance field calculation, remove a warning that might trigger due to rounding error, and shorten the iteration of each block pixel row, when possible. r=dbaron
MozReview-Commit-ID: 6itpj3HBSRy

--HG--
extra : rebase_source : 2285e1b0c136f6fe8c057f7bdb0a8566146cd443
2018-05-08 11:11:47 -07:00
Matt Woodrow
cb53646377 Bug 1460482 - Force root scroll frame overlay scroll bars to be always on top. r=mstange
MozReview-Commit-ID: 3zeykuDgEHc

--HG--
extra : rebase_source : 56515ba09442c49cb5c9cbbfdc3be258279ccb37
2018-05-10 16:52:12 +12:00
Brad Werth
140f9cb9f9 Bug 1460041 Part 1: Correct PolygonShapeInfo constructor to measure its start and end block extents in margin rect space. r=jfkthame
MozReview-Commit-ID: 5pxiK1oH7sn

--HG--
extra : rebase_source : f6ad9f0e66a0ce5fe7c487a0cd9a05e74bbd201f
2018-05-08 15:56:49 -07:00
Dan Glastonbury
ee3d63760a Bug 1457810: Move CalcComplexColor to StyleComplexColor. r=xidorn
Move from nsStyleColor::CalcComplexColor to StyleComplexColor::CalcColor.

MozReview-Commit-ID: FkYovvPZLc8

--HG--
extra : rebase_source : 54f1966e0ef9258f20e954cd6250774008eca04c
2018-05-09 17:03:02 +10:00
Brad Werth
e70fdc35ef Bug 1457602 Part 2: Correct shape-outside: image interval creation to correctly handle sideways-lr (with or without positive shape-margin.) r=jfkthame
MozReview-Commit-ID: F4fsRPajJfR

--HG--
extra : rebase_source : 217c18eee3b5ea1ba145752ed39d27ef80d208e4
2018-05-03 15:51:06 -07:00
Brad Werth
8eda60256e Bug 1457602 Part 1: Correct shape-outside: image shape-margin calculation for vertical writing modes. r=jfkthame
MozReview-Commit-ID: ChUL66vUkHu

--HG--
extra : rebase_source : beadd474d6022b1f8672c39cb841da8590ffde51
2018-04-30 17:01:24 -07:00
Xidorn Quan
4ddb42237d Bug 1460116 - Remove ShouldHideScrollbars. r=jimm
MozReview-Commit-ID: 7v6Eylefk4t

--HG--
extra : rebase_source : f37e94e205e7e589c3a47f282c57b725d65914d9
2018-05-09 11:40:58 +10:00
Coroiu Cristina
8d9a2fdf05 Backed out 2 changesets (bug 1460041) for lint failure at /builds/worker/checkouts/gecko/tools/lint/wpt.yml on a CLOSED TREE
Backed out changeset 25c0ace5ecb4 (bug 1460041)
Backed out changeset 8f13ab5de9be (bug 1460041)
2018-05-11 01:25:08 +03:00
Brad Werth
0e6a1cf4aa Bug 1460041 Part 1: Correct PolygonShapeInfo constructor to measure its start and end block extents in margin rect space. r=jfkthame
MozReview-Commit-ID: 5pxiK1oH7sn

--HG--
extra : rebase_source : f6ad9f0e66a0ce5fe7c487a0cd9a05e74bbd201f
2018-05-08 15:56:49 -07:00