Commit Graph

55929 Commits

Author SHA1 Message Date
Hiroyuki Ikezoe
a7825d3c98 Bug 1340958 - Add AnimationValueMap and expose it in FFI. r=heycam
Current Gecko composes all of effects in the composite order at once.
We can put each computed value into this AnimationValueMap every time composing
an effect.

MozReview-Commit-ID: EZdCYedva13

--HG--
extra : rebase_source : 0dc97045f2e5fd9088307fcd1588d9416907ba8e
2017-03-17 13:22:19 +09:00
Hiroyuki Ikezoe
a3c9c5051e Bug 1340958 - Do not call EffectCompositor::GetServoAnimationRule for print preview. r=heycam
The only one caller of GetServoAnimationRule is Gecko_GetAnimationRule.
There is no risk that pres context is destroyed in Gecko_GetAnimationRule.

MozReview-Commit-ID: 52pxbCiCNoJ

--HG--
extra : rebase_source : 8000e267d1d5706c709f807e11396dda3579c4dc
2017-03-17 12:48:34 +09:00
Hiroyuki Ikezoe
00ae32a7b2 Bug 1340958 - Do not call get_animation_rules for pseudo elements other than ::before and ::after. r=heycam
MozReview-Commit-ID: FlrT4hIst6U

--HG--
extra : rebase_source : 7cefba0f9353efd8128117f8596a01315937ef6c
2017-03-17 12:48:15 +09:00
Carsten "Tomcat" Book
925aa86f06 Backed out changeset 36a2230fbad6 (bug 1347164) for perma failures in own test
--HG--
extra : rebase_source : ecba88e92b862eecef94fb82b92594ba45fb1cbc
2017-03-17 08:45:54 +01:00
Carsten "Tomcat" Book
0891713c0d Backed out changeset 8af7daaf5f88 (bug 1347164)
--HG--
extra : rebase_source : b2000d3be64c6136db8a535a93920c68aff1feef
2017-03-17 08:45:07 +01:00
Carsten "Tomcat" Book
7cdd323044 Backed out changeset 18c70bc07c6d (bug 1347164)
--HG--
extra : rebase_source : 49986f9fe168e723a0763959e675db269110cb87
2017-03-17 08:45:05 +01:00
Carsten "Tomcat" Book
d9859973a7 Backed out changeset bb325d01c421 (bug 1347164)
--HG--
extra : rebase_source : f7888be4cd61272491b519271593788ab6c47916
2017-03-17 08:45:03 +01:00
Ethan Lin
e45cbc2dc8 Bug 1346702 - Part2. Add CanCreateWebrenderCommands for checking if the render should create WR commands. r=mchang 2017-03-15 14:37:50 +08:00
Ethan Lin
f892202a33 Bug 1346702 - Part1. Create border renderer in nsDisplayBorder::GetLayerState. r=mchang 2017-03-15 14:37:50 +08:00
Wes Kocher
5d7c0bee97 Merge m-c to inbound a=merge
MozReview-Commit-ID: 860fBgcgHiy
2017-03-20 18:28:24 -07:00
Wes Kocher
4f5262444c Merge inbound to central, a=merge
MozReview-Commit-ID: 2omKclRg40c
2017-03-20 18:19:52 -07:00
Mats Palmgren
b3478c6ec2 Bug 1343795 - Hold a strong ref on the Selection while calling ScrollIntoView with SCROLL_DO_FLUSH. r=smaug
MozReview-Commit-ID: 5C10dmT0bI9
2017-03-21 02:12:41 +01:00
Sebastian Hengst
af455321f5 Backed out changeset b4e95d147909 (bug 1343795) for bustage in layout/generic/nsSelection.cpp. r=backout 2017-03-20 23:41:44 +01:00
Mats Palmgren
69a981c64a Bug 1343795 - Hold a strong ref on the Selection while calling ScrollIntoView with SCROLL_DO_FLUSH. r=smaug
--HG--
extra : rebase_source : d2bd613d69ac59244818dbe2403e2f7b18deca35
2017-03-20 18:21:00 -04:00
Mats Palmgren
bf4cac95a4 Bug 1348665 part 5 - Remove the aFrame param to ReparentFrameViewTo and make it a member function instead. r=tnikkel
MozReview-Commit-ID: HStZiMcSOZa
2017-03-21 01:22:13 +01:00
Mats Palmgren
b0adfe4733 Bug 1348665 part 4 - Remove some params to SyncFrameViewProperties and make it a member function instead. Make the aView param optional, use the frame's view if none provided. r=tnikkel
MozReview-Commit-ID: KTUaiqr0cmT
2017-03-21 01:22:13 +01:00
Mats Palmgren
4b52d84cfa Bug 1348665 part 3 - Remove the aFlags param to SyncFrameViewProperties because all callers pass zero. r=tnikkel
MozReview-Commit-ID: 7zohl3bOsO1
2017-03-21 01:22:13 +01:00
Mats Palmgren
896c347cb8 Bug 1348665 part 2 - Remove the ViewProperty and store the nsView* in a field on the relevant frame classes instead. r=tnikkel
The relevant frame classes are:
SubDocumentFrame
ListControlFrame (only when used for (non-e10s?) comboboxes)
PluginFrame
ViewportFrame
MenuPopupFrame

The view is now created in the frame's Init() method, except for
ViewportFrame which has its view assigned by the frame constructor
via a SetView() call.

MozReview-Commit-ID: 4O7Hm1yqwIp
2017-03-21 01:22:13 +01:00
Mats Palmgren
48fe777dbb Bug 1348665 part 1 - Move a few nsView related methods from nsContainerFrame to nsIFrame/nsFrame (idempotent patch). r=dholbert
Views are used for PluginFrame which inherits nsFrame, not nsContainerFrame,
so it's more appropriate that these methods should live in nsIFrame/nsFrame.

MozReview-Commit-ID: 87EgCnkF5YT
2017-03-21 01:22:13 +01:00
Farmer Tseng
e5eabed3c9 Bug 1342872 - part2: Name the nsPagePrintTimer runnable and associate its nsITimers with a DocGroup r=jwatt
MozReview-Commit-ID: 3f3n0l1LgHO

--HG--
extra : rebase_source : 23abde74a90e989630e74fd17b3a1f42a2a4a0d2
2017-03-17 15:22:41 +08:00
Farmer Tseng
737c7bae80 Bug 1342872 - part1: Label the runnable dispatched by NS_DispatchToCurrentThread in nsPrintEngine r=jwatt
MozReview-Commit-ID: EfsfjZ73hhO

--HG--
extra : rebase_source : fd66d6d86800e24442e9543250b65090666f55e0
2017-03-17 15:02:06 +08:00
Brian Birtles
4a53c81f51 Bug 1343589 - Add a test that reverse() updates animations on the compositor r=hiro
MozReview-Commit-ID: FR8kR7TMl33

--HG--
extra : rebase_source : 8cbe75de11323582567d184373f7025c2f133a74
2017-03-28 14:51:53 +09:00
cku
58a315752f Bug 877661 - Part 3. Enable mask-html-01-extref-02.xhtml. r=tnikkel
MozReview-Commit-ID: HhjxZTohrhv

--HG--
extra : rebase_source : cbc03eb7a63a4e9771c470cb3de153de25796f9b
2017-03-27 11:13:37 +08:00
cku
50ac4dd472 Bug 877661 - Part 2. Pass decode flag from outer-svg/ svg-container paint call to nsSVGUtils::PaintFrameWithEffects. r=tnikkel
MozReview-Commit-ID: 9VvzixdmRIt

--HG--
extra : rebase_source : 00a18c38016f86a244a14e36d427a2f2eacfdee4
2017-03-27 11:28:54 +08:00
cku
8abb48b629 Bug 877661 - Part 1. Pass decode flag down to GetMaskForMaskedFrame. r=tnikkel
MozReview-Commit-ID: 9KhIWp1rHzb

--HG--
extra : rebase_source : 8c3d3c95ba7ada05673ba637cd542f41e9ce9f90
2017-03-27 11:10:48 +08:00
cku
260dda5205 Bug 1345853 - Part 5. Reftest. r=tnikkel
MozReview-Commit-ID: 7mXjFSXH2pa

--HG--
extra : rebase_source : 006517e76068fdfdec028219edb6defda23b6ba3
2017-03-16 03:09:04 +08:00
cku
a55d02afd1 Bug 1345853 - Part 4. Pass sync decode flag down to nsSVGPatternFrame::PaintPattern. r=tnikkel
MozReview-Commit-ID: 1bHMINhs121

--HG--
extra : rebase_source : 8da9c0d77dd9a32be392f43d3be266d365894b3a
2017-03-25 03:19:18 +08:00
cku
ff10c4ce7b Bug 1345853 - Part 3. Pass sync docode flag down to nsSVGDisplayableFrame::PaintSVG. r=tnikkel
Add one paramater to nsSVGDisplayableFrame::PaintSVG, so that we can pass
sync-decode flag from nsXXXXDisplayItem::Paint function to SVG paint call.

MozReview-Commit-ID: 6VZbxnFaoUj

--HG--
extra : rebase_source : c55e457e0d7a81b4a574d970924e0af6f7a7db48
2017-03-24 16:49:37 +08:00
cku
251e635682 Bug 1345853 - Part 2. If the transform matrix is singular, return DrawResult::SUCCESS, instead of DrawResult::BAD_ARGS r=tnikkel
According to bug 1345853 comment 5, tn said:
You probably want to return whatever was drawn there regardless of the
DrawResult. SVGMaskFrame has the same problem. Keep in mind that DrawResult is
only reporting on how drawing of any images went, not the drawing of anything
else. Also looking over the patches from bug 1258510 I see a couple places where
BAD_ARGS is returned if the transform matrix is singular. We would want to
return SUCCESS in that case I think, because we drew what we were instructed to
draw.

MozReview-Commit-ID: 5XcDuKQwXTJ

--HG--
extra : rebase_source : 5c558d469148e0cb3cfe9365aed1a4a65c572532
2017-03-16 12:06:36 +08:00
cku
148bb081ca Bug 1345853 - Part 1. Pass DrawResult from nsSVGPatternFrame::PaintPattern back to nsDisplaySVGGeometry::Paint. r=mstange,tnikkel
I did many change in many files in this patch. But the goal is pretty simple: To
pass the return value of nsSVGPatternFrame::PaintPattern back to the caller
(nsDisplaySVGGeometry). My suggestion is to review this patch right from
nsSVGPatternFrame.cpp.

I made two mistakes in bug 1258510
1. We should not return directly at [1]. RemoveStateBits at l418 will be skip.
2. nsSVGPatternFrame::PaintPattern should return both SourceSurface and draw
result, so that we can update UpdateDrawResult in display item.

All the other changes are to
1. make sure the return value of nsSVGPatternFrame::PaintPattern goes back to
nsDisplaySVGGeometry::Paint correctly.
2. Since the return value of nsSVGPatternFrame::PaintPattern change, we need
modify all existed callers.

I also filed bug 1346124 for handle the returning value of PaintMarkers.

[1] https://hg.mozilla.org/mozilla-central/file/c0700bedb4f7/layout/svg/nsSVGPatternFrame.cpp#l415

MozReview-Commit-ID: Iq9RPQ6Omz0

--HG--
extra : rebase_source : ca7a35bb9f5e27880d5dc62e03feb91b6ac3435d
2017-03-21 10:12:23 +08:00
Kartikaya Gupta
2f22c78913 Merge m-c to graphics
MozReview-Commit-ID: 10errEhAlqw
2017-03-14 11:42:39 -04:00
Carsten "Tomcat" Book
dba578960e merge mozilla-inbound to mozilla-central a=merge 2017-03-14 14:23:03 +01:00
Ryan Hunt
860e7d0cdf Bug 1346982 - Fix static bustage and backwards condition r=me
--HG--
extra : amend_source : f5875a755bac3a7acb8e91d663a287989f66deca
2017-03-14 02:28:06 -04:00
cku
064e7ac757 Bug 1345946 - Part 1. Make SVG masks, gradients and patterns use the frame bounds when applied to outer-<svg>. r=jwatt
MozReview-Commit-ID: H6AravwRd2i

--HG--
extra : rebase_source : 6a11dbf529e37e343b06d0d7496789f3f7b17525
2017-03-14 13:26:05 +08:00
Mats Palmgren
20fceb3cb6 Bug 1333482 part 8 - [css-ui] Introduce '-webkit-appearance' as an alias for 'appearance' using the same pref. r=dholbert
MozReview-Commit-ID: 1snub78udDS
2017-03-23 22:11:28 -07:00
Mats Palmgren
2feec4025d Bug 1333482 part 5 - [css-ui] Enable '-moz-appearance' support for some tests. r=dholbert
* * *
[mq]: sssssssss

MozReview-Commit-ID: 4wgnjld1rDt
2017-03-23 22:11:23 -07:00
Mats Palmgren
00b74113a3 Bug 1333482 part 4 - [css-ui] Amend all uses of '-moz-appearance:none' in tests to also specify 'appearance:none' (automated change). r=dholbert
MozReview-Commit-ID: BNOR5VRpV2E
2017-03-23 22:11:22 -07:00
Mats Palmgren
590ab00036 Bug 1333482 part 3 - [css-ui] Put 'appearance' and '-moz-appearance' behind separate prefs. Enable both by default. r=dholbert
MozReview-Commit-ID: 7f5jqm8z3Vy
2017-03-23 22:11:20 -07:00
Mats Palmgren
79cff05243 Bug 1333482 part 2 - [css-ui] Change all consumers of StyleDisplay::mAppearance to use the accessor UsedAppearance() instead, and make mAppearance/mMozAppearance private. r=dholbert
MozReview-Commit-ID: 8JwLsY1CLDJ
2017-03-23 22:11:18 -07:00
Mats Palmgren
eeffa0c3eb Bug 1333482 part 1 - [css-ui] Introduce the 'appearance: auto | none' property. r=dholbert
MozReview-Commit-ID: 3itCDTKuYQ9
2017-03-23 22:11:17 -07:00
Kartikaya Gupta
b6566b9f0c Bug 1349949 - Turn some advanced layers prefs into override prefs. r=mchang
This allows us to remove the #ifdef MOZ_ENABLE_WEBRENDER for the advanced layers
prefs from all.js. As additional advanced layers are turned on for webrender (or
non-webrender) they can be converted into override prefs without affecting the
call sites.

MozReview-Commit-ID: F9tMc23ow8A

--HG--
extra : rebase_source : 2244cb000711496ce5b7f1b50ef0314e1c312d94
2017-03-23 16:29:54 -04:00
Carsten "Tomcat" Book
e08ad28f77 Backed out changeset 9e40bc33e620 (bug 1346623) for perma leak in chrome-style stylo tests 2017-03-17 08:19:20 +01:00
Carsten "Tomcat" Book
8a5101d371 Backed out changeset 1f9a6ce59a56 (bug 1346623) 2017-03-17 08:18:51 +01:00
Ryan Hunt
158ae4fb8e Bug 1346982 - Only build WebRender DisplayItems for BoxShadowOuter when supported r=mchang
--HG--
extra : amend_source : 13aeb58dfe5456684c0aa5960ec36a340613207c
2017-03-13 18:57:34 -04:00
Emilio Cobos Álvarez
3fad952356 Bug 1341102: Adjust expectations for servo/servo#15604 and servo/servo#16028. r=me
MozReview-Commit-ID: 9c8jmRqvVEz
2017-03-19 20:58:48 +01:00
Sebastian Hengst
557f236c19 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 3NxyjkZ2h59
2017-03-19 16:26:07 +01:00
Nazım Can Altınova
86953ca362 Bug 1341642 - Update test_selectors.html for better test coverage and update test expectations r=Manishearth
MozReview-Commit-ID: 54BtnYJ85PK
2017-03-18 15:07:24 -07:00
cku
99c7a15344 Bug 1346265 - Part 3. Test cases. r=mstange
Since -moz-element is moz only feature, the test case for -moz-element is
created under reftests/image-element folder.

MozReview-Commit-ID: G4V0G3cX7qr

--HG--
extra : rebase_source : f681d64fe4b9331a35fb082c7ed135f58c3f5a9d
2017-03-13 12:47:30 +08:00
cku
e17dd9d6ff Bug 1346265 - Part 2. Pass gfxContext to nsImageRenderer::DrawableForElement. r=mstange
It's ok to pass aRenderingContext to DrawableForElement, since DrawableForElement
only use aRenderingContext to create a similiar draw target. Replace
aRenderingContext by ctx make code more consistent since the draw call
bellow(nsLayoutUtils::DrawImage) use ctx.

MozReview-Commit-ID: 6n0nYfcFPui

--HG--
extra : rebase_source : 1374c8b5be9fe5351a5a126e39773c9493cf233d
2017-03-17 12:05:51 +08:00
cku
c984ad8338 Bug 1346265 - Part 1. Pass gfxContext to nsCSSRendering::PaintGradient. r=mstange
If mask-mode is luminace, we will create a temporary context at [1]. It's
obvious we do not use this gfxContext at all in PaintGradient path. This patch is
trying to fix this problem by pass gfxContext, instead of RenderingContext,
directly to PaintGraident.

[1] https://hg.mozilla.org/mozilla-central/file/991f5724e58f/layout/painting/nsCSSRendering.cpp#l5811
MozReview-Commit-ID: LLmg4k6IEm3

--HG--
extra : rebase_source : ed42e3f5ddf1314300259c3f74d43aac8b4683de
2017-03-13 12:26:21 +08:00
Xidorn Quan
358e765982 No bug - Update mochitest expectations.
MozReview-Commit-ID: FQtBpgfBtR3

--HG--
extra : source : aa16c1ecccb6e6bd6e16d6f2e72732c0bed845ab
2017-03-17 17:16:52 +11:00
cku
a6be5bcf9d Bug 1345853 - Part 3. Reftest. r=tnikkel
MozReview-Commit-ID: 7mXjFSXH2pa

--HG--
extra : rebase_source : bfa2f5013e93c8359933d457a5643528ca8e4aaf
2017-03-16 03:09:04 +08:00
cku
3d3a05d1ee Bug 1345853 - Part 2. If the transform matrix is singular, return DrawResult::SUCCESS, instead of DrawResult::BAD_ARGS r=tnikkel
According to bug 1345853 comment 5, tn said:
You probably want to return whatever was drawn there regardless of the
DrawResult. SVGMaskFrame has the same problem. Keep in mind that DrawResult is
only reporting on how drawing of any images went, not the drawing of anything
else. Also looking over the patches from bug 1258510 I see a couple places where
BAD_ARGS is returned if the transform matrix is singular. We would want to
return SUCCESS in that case I think, because we drew what we were instructed to
draw.

MozReview-Commit-ID: 5XcDuKQwXTJ

--HG--
extra : rebase_source : ba764df599844c9eb179736f61d6c7f6ee46c9fc
2017-03-16 12:06:36 +08:00
cku
e2d44c26bf Bug 1345853 - Part 1. Pass DrawResult from nsSVGPatternFrame::PaintPattern back to nsDisplaySVGGeometry::Paint. r=mstange,tnikkel
I did many change in many files in this patch. But the goal is pretty simple: To
pass the return value of nsSVGPatternFrame::PaintPattern back to the caller
(nsDisplaySVGGeometry). My suggestion is to review this patch right from
nsSVGPatternFrame.cpp.

I made two mistakes in bug 1258510
1. We should not return directly at [1]. RemoveStateBits at l418 will be skip.
2. nsSVGPatternFrame::PaintPattern should return both SourceSurface and draw
result, so that we can update UpdateDrawResult in display item.

All the other changes are to
1. make sure the return value of nsSVGPatternFrame::PaintPattern goes back to
nsDisplaySVGGeometry::Paint correctly.
2. Since the return value of nsSVGPatternFrame::PaintPattern change, we need
modify all existed callers.

I also filed bug 1346124 for handle the returning value of PaintMarkers.

[1] https://hg.mozilla.org/mozilla-central/file/c0700bedb4f7/layout/svg/nsSVGPatternFrame.cpp#l415

MozReview-Commit-ID: Iq9RPQ6Omz0

--HG--
extra : rebase_source : bc338b1a33f1dbf209706577b2455315dfb855e2
2017-03-16 12:17:19 +08:00
Mason Chang
516a3654f4 Bug 1346451 - Delete WebRenderBorderLayer. r=ethlin 2017-03-11 10:04:26 -08:00
Kartikaya Gupta
916f12ed8f Merge m-c to graphics
MozReview-Commit-ID: GpqewOAwje8
2017-03-13 13:13:37 -04:00
Kartikaya Gupta
b1573d9a13 Bug 1344947 - Update reftest.list files with new webrender results. r=jrmuizel
MozReview-Commit-ID: 8F8ZetpBUUY
2017-03-13 13:03:24 -04:00
sotaro
90e35e2b18 Bug 1345712 - Fix rebasing failure part 2 r=jrmuizel 2017-03-13 23:55:39 +09:00
Carsten "Tomcat" Book
c1edc7067d merge mozilla-inbound to mozilla-central a=merge 2017-03-13 15:22:26 +01:00
Xidorn Quan
61c4d0467e Bug 1341102 - Mark the correct one random.
--HG--
extra : rebase_source : 8b7684046fbab5ad29dd76210bdd3c28c22bc5f8
2017-03-13 23:20:50 +11:00
Carsten "Tomcat" Book
94904a8409 Backed out changeset be602e750e39 (bug 1325940) for stylo build bustage 2017-03-13 11:39:12 +01:00
Carsten "Tomcat" Book
b8ac5ccfac Backed out changeset a035c2b6ae72 (bug 1325940) 2017-03-13 11:38:36 +01:00
Gajanan
ca8371df56 Bug 1325940 part 2 - Converted NS_STYLE_BORDER_IMAGE_REPEAT_* to an enum class. r=xidorn
MozReview-Commit-ID: 4Y30dMHsFgj

--HG--
extra : source : 1b6d6f5feb59f895f19ee51cad0e477ca568c168
2017-03-13 21:19:19 +11:00
Gajanan
dca4dbdc2b Bug 1325940 part 1 - Added a constructor for nsCSSValue to accept enumerations. r=xidorn
MozReview-Commit-ID: 5Vns9QGA8c5

--HG--
extra : source : 8de1423bee6b7ba9d584419650674a4d4a7ac7b0
2017-03-13 21:19:19 +11:00
Morris Tseng
fcc1cbacec Bug 1341156 - Add border image support. r=mattwoodrow
MozReview-Commit-ID: 146FCaqEoi1
2017-03-13 11:46:04 +08:00
Morris Tseng
895ffbd17f Bug 1341156 - Create nsCSSBorderImageRenderer. r=mattwoodrow
Basiclly refactor DrawBorderImage function for later re-use.

MozReview-Commit-ID: 9KIO6jp14M2
2017-03-13 11:46:04 +08:00
Morris Tseng
3756e950d3 Bug 1341156 - Move nsImageRenderer to a separate file. r=mattwoodrow
MozReview-Commit-ID: EIEl3Jbtcsi
2017-03-13 11:46:04 +08:00
Morris Tseng
11f13fedeb Bug 1341156 - Modify webrender_ffi and add OpDPPushBorderImage. r=kats r=ethlin
MozReview-Commit-ID: Ct63gy6nk3q
2017-03-13 11:46:03 +08:00
Xidorn Quan
bbb1003707 Bug 1341102 - Mark several intermittent failures random.
--HG--
extra : rebase_source : fc8a7defbaf0f492f93dd00f67c4016f2a5896bf
2017-03-13 22:15:26 +11:00
JerryShih
48125abbbe Bug 1347164 - css-color specified style test. r=dholbert
MozReview-Commit-ID: 6RRhz8ftEVO

--HG--
extra : rebase_source : 691b0d3bcdb3971875dce4ca9a65be40815687ac
2017-03-16 15:29:00 -04:00
JerryShih
83e3f7d249 Bug 1347164 - Rewrite mochitest test_specified_value_serialization.html to look more like test_computed_style.html. r=dholbert
MozReview-Commit-ID: 4XSBQXtYSth

--HG--
extra : rebase_source : ee293e7be3682a8f1be6264cfd48913e36c0c9ba
2017-03-16 15:29:00 -04:00
JerryShih
aa69b5450c Bug 1347164 - css-color computed style test. r=dholbert
MozReview-Commit-ID: 36qT5LxhB9Z

--HG--
extra : rebase_source : 4c6e9d22bb2594a3d2115d074566bfd145deb6a1
2017-03-16 14:55:00 -04:00
JerryShih
2cf70c5fd4 Bug 1347164 - Serialize colors using "rgba()" as the color-function, if they have a non-opaque alpha channel. r=dholbert
MozReview-Commit-ID: 44T8gy7UWFJ

--HG--
extra : rebase_source : b51f85aa147ade186583ceb941f7e00f3038d2a7
2017-03-16 14:54:00 -04:00
Geoff Brown
d91ac89313 Bug 1340584 - Change reftest dm_trans default from sut to adb; r=bc 2017-03-16 20:29:57 -06:00
Kartikaya Gupta
315ad84b5d Bug 1347841 - Remove a fails-if(webrender) that was accidentally inserted. r=longsonr
MozReview-Commit-ID: 3T4M6Qb0lmI
2017-03-16 18:34:01 -04:00
Boris Zbarsky
a042125097 Bug 1343677 part 2. Assert in nsCSSprops::IsEnabled that we have received all preferences. r=dholbert,billm
This ensures that we don't read incorrect values out of the gPropertyEnabled
array simply because we haven't gotten preference values from the parent process
yet.

MozReview-Commit-ID: 59AgN3ecXQl
2017-03-16 17:43:17 -04:00
Wes Kocher
c5d1991d35 Merge m-c to inbound, a=merge
MozReview-Commit-ID: AuQEHTgSKcO
2017-03-16 14:07:10 -07:00
Wes Kocher
da9127842f Merge inbound to central, a=merge
MozReview-Commit-ID: IAdEn2C01ye
2017-03-16 13:47:50 -07:00
Bobby Holley
d1865bc01a Bug 1341102 - Adjust test expectations after merging #15983. r=me
The PR in question just added some pseudo-classes, and seems to have unearthed
some failures related to our lack of proper visited handling. Annotating.

MozReview-Commit-ID: GcbmWNDgwD0
2017-03-16 11:10:14 -07:00
Wes Kocher
efcef12931 Backed out changeset e73241bcb49a (bug 1340584) for Windows build failures a=backout CLOSED TREE
MozReview-Commit-ID: 22csfCgl7Wb
2017-03-16 10:25:15 -07:00
Geoff Brown
ecc9668072 Bug 1340584 - Remove devicemanagerSUT and references to sutagent; r=wlach
sutagent is no longer built or usedr; devicemanagerSUT is completely
unused. After this change, devicemanagerADB is the only implementation of
devicemanager, and the --dmTrans and similar options have been removed
from test harnesses and mach commands.
2017-03-16 10:44:44 -06:00
L. David Baron
86687429ea Bug 1347759 - Fix conditions under which we reflow absolutely positioned element due to size change of its container for everything other than horizontal LTR. r=jfkthame
I found this problem because I was debugging the failure of
layout/reftests/w3c-css/received/css-writing-modes-3/clearance-calculations-vrl-008.xht
with my patch for bug 1308876.  It was failing because the red reference
box that was intended to be covered up was being mispositioned leftwards
by the width of the scrollbar, since we were not reflowing it when we
decided that the viewport did not need scrollbars.  This patch fixes
that failure.

This led me to this bug, where
nsAbsoluteContainingBlock::FrameDependsOnContainer was incorrectly
testing conditions for when the values of 'top', 'right', 'bottom', and
'left' require reflow due to changes in the size of the containing
block.

The old code is incorrect in a number of cases, such as:
1. in RTL, with 'right: 100px', it will say that the frame does not
   depend on its container's width since 'right' (offset-inline-start)
   is a fixed offset and 'left' is 'auto'.  However, since the
   positioning is relative to the right edge, a change in container size
   does require that the absolutely positioned element be repositioned
   relative to the container's left edge.
2. In vertical-rl, again with 'right: 100px', it will make the same
   mistake, since 'right' (now offset-block-start) is a fixed offset.
   This is the case from the test I was debugging.
3. In vertical-rl with rtl direction and 'bottom: 100px', we will make
   the same mistake because 'bottom' (inline-start) is fixed and 'top'
   is 'auto', and we use 'bottom' rather than 'top'.

However, in cases (1) and (3) we actually avoid hitting the bug in these
simple-ish cases because ReflowInput::ShouldReflowAllKids() returns true
whenever IsIResize() is true, which means that
nsAbsoluteContainingBlock::Reflow doesn't even call
FrameDependsOnContainer.  However, FrameDependsOnContainer should still
do the right thing because it's needed for
nsAbsoluteContainingBlock::MarkSizeDependentFramesDirty, which is only
used (from nsBlockFrame) when we reflow again for clearance or for
interruptible reflow.  I haven't attempted to write a testcase for that
because it seems likely to require spending hours in the debugger trying
to trigger the right code.

This means that the only test that fails prior to the patch is
dynamic-offset-vrl-001.html, which exercises case (2), and also happens
to be the most similar to problem in clearance-calculations-vrl-008.xht.

This patch also makes the tests stricter so that we do optimize away
resizes in some cases where we're able to do so, such as
'left: 100px; right: auto' in RTL.  (Or, rather, we would if it weren't
for the IsIResize() in ShouldReflowAllKids().)

MozReview-Commit-ID: 8xm1AHC21oh

--HG--
extra : transplant_source : %06%B4%40%EB%A9%C8M%F3%99%80%A9%DE%1F%1E%90%D3%F1%04W.
2017-03-16 09:39:19 -07:00
Sebastian Hengst
e43c8a0ce7 Backed out changeset 8a1c36e9ba80 (bug 1341008) 2017-03-16 17:29:18 +01:00
Carsten "Tomcat" Book
023d5aecd1 Merge mozilla-central to mozilla-inbound 2017-03-16 15:39:58 +01:00
Carsten "Tomcat" Book
468f7d8e9f merge mozilla-inbound to mozilla-central a=merge 2017-03-16 15:35:50 +01:00
Mats Palmgren
5e17bf51d3 Bug 1335806 part 4 - [css-grid] Tweak reftests where 'align/justify-self:normal' now means 'start' for grid items with an intrinsic size / aspect ratio.
MozReview-Commit-ID: AztJxC2cBMR
2017-03-16 15:24:57 +01:00
Mats Palmgren
8052c29bdd Bug 1335806 part 3 - [css-grid] Make 'align/justify-self:normal' behave as 'start' for grid items that have an intrinsic size or aspect ratio. r=dholbert
MozReview-Commit-ID: CZpUEcOCoip
2017-03-16 15:24:57 +01:00
Mats Palmgren
26ed1865cd Bug 1335806 part 2 - Refactor the intrinsic size calculations a bit (idempotent patch). r=dholbert
MozReview-Commit-ID: JRYx7sWFcPA
2017-03-16 15:24:56 +01:00
Mats Palmgren
987c2fde4b Bug 1335806 part 1 - Move the intrinsic size/ratio calculations up a bit (idempotent patch). r=dholbert
MozReview-Commit-ID: 5FWpfyiN0Qa
2017-03-16 15:24:56 +01:00
Mats Palmgren
64e56a0d71 Bug 1346699 part 3 - [css-grid] Additional reftests for min/max-sizes affecting flexible track sizing.
MozReview-Commit-ID: 6NORO1Q7xOE
2017-03-16 13:24:50 +01:00
Mats Palmgren
d1da72310f Bug 1346699 part 2 - [css-grid] Don't require 'fr' to be non-zero to apply min/max-size. r=dholbert
The calculated 'fr' value might change in the second round (after
applying min/max-size) even if it's zero in the first round.

MozReview-Commit-ID: 60moiyoWwuo
2017-03-16 13:24:50 +01:00
Mats Palmgren
0f9743bbe7 Bug 1346699 part 1 - [css-grid] Don't require that some (flexible) track size changed to apply min/max-size. r=dholbert
The "origSizes.isSome()" condition on the outer if-block was
a logical mistake.  We should check it before re-assigning
mSizes though (this was the optimization originally intended).

MozReview-Commit-ID: AooUHYKG3jB
2017-03-16 13:24:50 +01:00
Gabor Krizsanits
2fc4ec4086 Bug 1341008 - Use the preallocated process manager by default. r=billm, r=kmag 2017-03-16 11:22:37 +01:00
Ethan Lin
8b0fa844a8 Bug 1346110 - Use BorderRenderer to generate wr commands for nsDisplayButtonBorder. r=mchang
---
 layout/forms/nsButtonFrameRenderer.cpp | 37 +---------------------------------
 1 file changed, 1 insertion(+), 36 deletions(-)
2017-03-10 12:45:20 -08:00
Kartikaya Gupta
0ea7443517 Merge m-c to graphics
MozReview-Commit-ID: 3GcCKcscfkz
2017-03-10 09:58:01 -05:00
Carsten "Tomcat" Book
1a363b7fe3 merge mozilla-inbound to mozilla-central a=merge 2017-03-10 11:38:18 +01:00
sotaro
68f1724050 Bug 1345712 - Add ScaleMode handling to WebRenderImageLaye r=jrmuizel 2017-03-10 17:48:22 +09:00
sotaro
7277c12244 Backout Bug 1345712 2017-03-10 15:56:26 +09:00
sotaro
61dd0b4f9c Bug 1345712 - Add ScaleMode handling to WebRenderImageLayer r=jrmuizel 2017-03-10 14:14:43 +09:00
Ethan Lin
9b04b94de9 Bug 1345053 - Add webrender support for nsDisplayImage. r=mattwoodrow
--HG--
extra : rebase_source : 347513138d518b6f331ae6130c74bc250ccda4be
2017-03-10 09:57:07 +08:00
Wes Kocher
65140a44e3 Merge inbound to central, a=merge CLOSED TREE
MozReview-Commit-ID: Gj4s6DtqKmw
2017-03-09 16:33:31 -08:00
Wes Kocher
f7f40f39ec Backed out 19 changesets (bug 1343037) for OSX failures in test_form_autocomplete.html a=backout CLOSED TREE
Backed out changeset 45f9d9f47222 (bug 1343037)
Backed out changeset 77c26865ce8e (bug 1343037)
Backed out changeset 4c4ec6e6b168 (bug 1343037)
Backed out changeset 1d0da4f3c82b (bug 1343037)
Backed out changeset 67d29abbbd53 (bug 1343037)
Backed out changeset a6833ad9712f (bug 1343037)
Backed out changeset 202a7b464808 (bug 1343037)
Backed out changeset 271e63cd7bfa (bug 1343037)
Backed out changeset 77c3b36269a4 (bug 1343037)
Backed out changeset 73198c9c3975 (bug 1343037)
Backed out changeset 5fc2e304113b (bug 1343037)
Backed out changeset b7de9c9c1c31 (bug 1343037)
Backed out changeset 08b01e3c03f8 (bug 1343037)
Backed out changeset de068e5a963b (bug 1343037)
Backed out changeset 23164576aaf5 (bug 1343037)
Backed out changeset 1034463cb379 (bug 1343037)
Backed out changeset 7fb2aacfc644 (bug 1343037)
Backed out changeset 6dcb7090fd33 (bug 1343037)
Backed out changeset cad4522cee16 (bug 1343037)

MozReview-Commit-ID: I37k9bJBwsw
2017-03-09 15:29:05 -08:00
Wes Kocher
4d040e69b1 Backed out changeset ea659450b0da (bug 1345237)
MozReview-Commit-ID: JQ2dsysX25w
2017-03-09 15:27:15 -08:00
Wes Kocher
9bf077a4c7 Merge m-c to autoland, a=merge CLOSED TREE
MozReview-Commit-ID: BG12zoWP3dQ
2017-03-09 14:12:34 -08:00
Wes Kocher
395f8ef03d Merge m-c to inbound, a=merge CLOSED TREE
MozReview-Commit-ID: 9rWj5LVFZMq
2017-03-09 14:11:57 -08:00
sotaro
202715bd8b Bug 1345749 - Apply RelativeToVisible r=jrmuizel 2017-03-10 07:49:53 +09:00
Ryan Hunt
4450cd3bae Bug 1345907 - Use clip region instead of clip rect r=kats
--HG--
extra : rebase_source : 23506430d8aa7b2097de208a3415d8597a1e13cd
2017-03-09 11:57:06 -05:00
Kartikaya Gupta
8f54e2114e Merge m-c to graphics
MozReview-Commit-ID: QN682uyISF
2017-03-09 10:42:57 -05:00
Kartikaya Gupta
18f8da69d2 Back out cset 3a0760865f8b (bug 1345053) for causing much linux64-qr reftest failure. r=me a=Tomcat 2017-03-09 09:42:51 -05:00
Samael Wang
dbb9457981 Bug 1283947 - Clear pending transactions when ClientLayerManager is assigning to a different refresh driver. r=mattwoodrow 2017-03-09 18:35:50 +08:00
Kan-Ru Chen
43776b9a4d Bug 1346161 - Remove HANDLE_UNLOAD_MS and HANDLE_BEFOREUNLOAD_MS telemetry probes. r=smaug
MozReview-Commit-ID: 91WAGDKAAMu
2017-03-13 14:47:29 +08:00
Jeremy Chen
8dfebfb116 Bug 1056516 - submit Hyphenation Control reftests to CSSWG. r=jfkthame
MozReview-Commit-ID: DfBwSmlyGRu
2017-03-13 12:54:05 +08:00
Jeremy Chen
c3f809d573 Bug 1056516 - add tests to our local reftests folder. r=jfkthame
MozReview-Commit-ID: EBKLIH9H0hf
2017-03-13 12:54:05 +08:00
Jeremy Chen
0316fede8c Bug 1056516 - let auto hyphen honor manual hyphen when hyphens:auto is set. r=jfkthame
MozReview-Commit-ID: F3ALAJRHned
2017-03-13 12:54:05 +08:00
Jeremy Chen
2e09040e6e Bug 1056516 - use HyphenType to store different types of hyphenations. r=jfkthame
MozReview-Commit-ID: AX3NNDS4hxP
2017-03-13 12:54:05 +08:00
Jeremy Chen
17dca35346 Bug 1056516 - use AutoTArray for hyphenBuffer in BreakAndMeasureText. r=jfkthame
MozReview-Commit-ID: 2sFqlGdoCcm
2017-03-13 12:54:04 +08:00
Ting-Yu Lin
1ab8a867a4 Bug 1326409 Part 6 - Convert aBasicShape to a pointer to a const value. r=dholbert
To address reviewer's comments in bug 1326409 comment 13 and comment 14.

MozReview-Commit-ID: FiUXXk4O8N7
2017-03-13 12:03:40 +08:00
Ting-Yu Lin
620f7841b7 Bug 1326409 Part 5 - Implement shape-outside: polygon(). r=dholbert
The <fill-rule> in the polygon() syntax is not handled because it doesn't
matter to shape-outside at all.

The reftests are numbered from 018 to avoid conflict with the w3c upstream
ones according to this list.
https://test.csswg.org/harness/results/css-shapes-1_dev/grouped/

Reftest 018 to 025 are under various writing-modes, 026 to 029 are testing
empty float area, 030 to 031 are testing polygon containing horizontal
lines.

MozReview-Commit-ID: FPUbMdZsvu6
2017-03-13 12:03:40 +08:00
Ting-Yu Lin
1923f5a65b Bug 1326409 Part 4 - Extract a function to compute polygon vertices. r=dholbert
MozReview-Commit-ID: B4BzBHjLHxW
2017-03-13 12:03:40 +08:00
Ting-Yu Lin
aa5bf0b087 Bug 1326409 Part 3 - Remove unneeded WritingMode parameter. r=dholbert
Remove WritingMode parameter from LineRight() and LineLeft() in both
FloatInfo and ShapeInfo.

Bug 1316549 Part 3 added the parameter to compute the border radii under
writing-modes correctly. However, bug 1326407 Part 6 later made us cache
border radii, so the WritingMode parameter is no longer needed.

MozReview-Commit-ID: DFhm5d51OXJ
2017-03-13 12:03:39 +08:00
Ting-Yu Lin
0896f4f2e5 Bug 1326409 Part 2 - Rewrite the return expression of ComputeCircleOrEllipseCenter(). r=dholbert
MozReview-Commit-ID: 60gvYceeNiP
2017-03-13 12:03:39 +08:00
Ting-Yu Lin
45e26b7d07 Bug 1326409 Part 1 - Annotate EllipseShapeInfo as 'final'. r=dholbert
MozReview-Commit-ID: IReCWO8JRSQ
2017-03-13 12:03:39 +08:00
Ethan Lin
1928c02454 Bug 1344622 - Part2. Add webrender support for nsDisplayButtonForeground. r=mattwoodrow 2017-03-09 16:58:39 +08:00
Ethan Lin
4bc1178051 Bug 1344622 - Part1. Create WR commands in BorderRenderer. r=mattwoodrow 2017-03-09 16:58:38 +08:00
Carsten "Tomcat" Book
6d06361383 merge mozilla-inbound to mozilal-central a=merge 2017-03-09 11:23:25 +01:00
Ethan Lin
d73549a9d8 Bug 1345053 - Add webrender support for nsDisplayImage. r=mattwoodrow 2017-03-09 14:24:41 +08:00
Boris Zbarsky
2c7f4763df Bug 1345362 part 6. Make ::-moz-pagebreak a non-inheriting anon box. r=heycam
MozReview-Commit-ID: ClqKv8HOFj4

--HG--
extra : rebase_source : 33785fdf7c14cf401d7c5a519ed2927db13c3077
2017-03-08 23:50:59 -05:00
Boris Zbarsky
f531c39d2d Bug 1345362 part 5. Assert that we don't have a non-inheriting anon box in nsFrame::UpdateStyleOfChildAnonBox. r=heycam
MozReview-Commit-ID: E6EZakXIExQ

--HG--
extra : rebase_source : a829f2d8bb22a12c0a086473c98e3933427a8444
2017-03-08 23:50:31 -05:00
Boris Zbarsky
964a12c306 Bug 1345362 part 4. Rename ResolveAnonymousBoxStyle to ResolveInheritingAnonymousBoxStyle. r=heycam
MozReview-Commit-ID: GVA1fTh0RDv

--HG--
extra : rebase_source : 4333baf6764f346d68836e387fa002705684bfdd
2017-03-08 23:50:28 -05:00
Boris Zbarsky
b537f110e2 Bug 1345362 part 3. Introduce CSSPseudoElementType::NonInheritingAnonBox to represent non-inheriting anon boxes. r=heycam
The idea is to be able to call the right function during style resolution time
without doing a linear walk via nsCSSAnonBoxes::IsNonInheritingAnonBox.

MozReview-Commit-ID: JKt33GggTjz

--HG--
extra : rebase_source : fcf477dcef8529c803bf97b1d3a16f8f4fcea39f
2017-03-08 23:41:04 -05:00
Boris Zbarsky
7b18078c9e Bug 1345362 part 2. Introduce nsCSSAnonBoxes::NonInheritingTypeForPseudoTag for looking up the type of non-inheriting anonymous box for a given pseudo tag. r=heycam
MozReview-Commit-ID: 4quZagNd5yo

--HG--
extra : rebase_source : da001f2f99a939a29174e1e16f06f8ed122f60f3
2017-03-08 23:39:47 -05:00
Boris Zbarsky
767339fbd8 Bug 1345362 part 1. Use mozilla::EnumeratedArray for mNonInheritingStyleContexts. r=heycam
MozReview-Commit-ID: EddWYLSmfGL

--HG--
extra : rebase_source : c2cd37964b60c25ae2176098addfcbf94cad61a3
2017-03-08 23:39:45 -05:00
Boris Zbarsky
f6f7b64e6f Bug 1341705. Reenable some stylo tests that involve urls with anchors. r=heycam
MozReview-Commit-ID: KYQTaW7WZOS
2017-03-08 22:29:57 -05:00
Boris Zbarsky
b73c71861b Bug 1345237. Propagate uint32_t deeper into the editor state and text control frame code. r=mystor
MozReview-Commit-ID: KeUo8My6eBJ
2017-03-09 14:44:45 -05:00
Boris Zbarsky
083facd7b2 Bug 1343037 part 10. Remove the unused SetSelectionStart/SetSelectionEnd bits on text control frame. r=ehsan
MozReview-Commit-ID: G7ODMdAjzxV
2017-03-09 14:44:05 -05:00
Boris Zbarsky
77e7a5575a Bug 1343037 part 6. Simplify the setup around the editor state's GetSelectionRange function. r=ehsan
Really, there are only two cases we need to worry about.  Either
IsSelectionCached(), and then our SelectionProperties has the data we want, or
not and then we have a non-null mSelCon which has the data we want.

Since we are now using cached selection state a lot more (instead of
initializing the editor whenever someone asks for selection state), we need to
actually update it more correctly when .value is set.

And since we now update the cached selection state for the case when .value has
been set (to point to the end of the text), we need to change
HTMLInputElement::HasCachedSelection to return false for that case.  Otherwise
we will always do eager editor init on value set.  We handle that by not doing
eager init if the cached selection is collapsed.

The web platform test changes test the "update on .value set" behavior.  They
fail without this patch, pass with it.

MozReview-Commit-ID: DDU8U4MGb23
2017-03-09 14:44:04 -05:00
Mason Chang
2289ed06ba Bug 1343979 - Add webrender support for ButtonBorderBackground. r=ethlin 2017-03-08 08:31:46 -08:00
Kartikaya Gupta
a45bb3a916 Merge m-c to graphics
MozReview-Commit-ID: AzRIytAgP96
2017-03-08 10:08:57 -05:00
Boris Chiou
d98106cdd2 Bug 1248340 - Part 9: Update stylo-failures.md. r=xidorn
We have more tests failed in test_value_storage after introducing
Frames timing functions. I put it together with `animation` pattern because
part of the error messages of `frames` pattern are put in the `animation`
pattern.

MozReview-Commit-ID: KP5Y6HEH90D

--HG--
extra : rebase_source : df50def9736b813ee7428bb22b9cd191bcaa6ae9
2017-03-08 13:15:21 +08:00
Wes Kocher
1e99d508d7 Merge m-c to inbound, a=merge
MozReview-Commit-ID: DaPlT30qXzs
2017-03-08 17:15:46 -08:00
Wes Kocher
3842d8fcef Merge inbound to central, a=merge
MozReview-Commit-ID: 62e9XDudUlc
2017-03-08 17:07:55 -08:00
Hiroyuki Ikezoe
11c8680e9d Bug 1344619 - Part 7: Drop EffectCompositor::ClearElementsToRestyle. r=birtles
MozReview-Commit-ID: DlTj2OR0wI0

--HG--
extra : rebase_source : 33307226315e6fb3facb000214e27d5582279dd6
2017-03-09 05:20:17 +09:00
Hiroyuki Ikezoe
d547683e53 Bug 1344619 - Part 6: Kick EffectCompositor::PreTraverse() for an element. r=heycam
MozReview-Commit-ID: Fs3DlkfeBCT

--HG--
extra : rebase_source : 5375ddbf94a5dcc3420880a08fbb369b91e3c363
2017-03-09 05:20:17 +09:00
Hiroyuki Ikezoe
1761aeb22e Bug 1344619 - Part 4: Add ServoStyleSet::ResolveStyleLazily(). r=heycam
MozReview-Commit-ID: GvlD6lQYBQ6

--HG--
extra : rebase_source : 73baac118a3de04d88b565c61f853ec145d3d1e7
2017-03-09 05:20:17 +09:00
Hiroyuki Ikezoe
394a4a9b12 Bug 1344619 - Part 3: Kick EffectCompositor::PreTraverse(). r=heycam
MozReview-Commit-ID: HbBrQ7HZ8gf

--HG--
extra : rebase_source : 764ca245bd03ef5bc943c5814f53198141ad5b89
2017-03-09 05:20:17 +09:00
Emilio Cobos Álvarez
e2f5ea371a Bug 1341102: Skip some timing-dependent tests due to bug 1338982. r=emilio
MozReview-Commit-ID: 9VfSUA7kYux
2017-03-20 18:22:39 +01:00
Matt Brubeck
65bc3f39b7 Bug 1348487 - stylo: Update test expectations. r=orange-fix 2017-03-20 18:19:46 +01:00
Nazım Can Altınova
6d7bb2e928 Bug 1341642 - Add a reftest for :-moz-broken r=emilio
MozReview-Commit-ID: FiWwxDq47W1

--HG--
extra : rebase_source : fae032d6a4d060cacb2c8b2069cfa4368dc59b07
2017-03-20 17:47:59 +03:00
Ting-Yu Lin
44a41925d3 Bug 1338446 Part 6 - Label LoadTimer in nsFontFaceLoader::StartedLoading. r=heycam
Delete #include "mozilla/Logging.h" because it has been included.

Add FontFaceSet::Document() to get valid document for nsFontFaceLoader.

MozReview-Commit-ID: IAXM9UgvjOE

--HG--
extra : rebase_source : e5aa8aadea5e2f9f2e5d73cc718318cf97471d3f
2017-03-14 21:57:34 +08:00
Ting-Yu Lin
e27cc69d63 Bug 1338446 Part 5 - Label runnable in Gecko_DropElementSnapshot by using SystemGroup. r=heycam
This runnable is to delete object only, so using system group should be
fine.

MozReview-Commit-ID: 8uMxMO3yERG

--HG--
extra : rebase_source : 75ae4953d4c91fa0ab9a0c598a1989fa122f8f5a
2017-03-14 21:34:57 +08:00