Commit Graph

55611 Commits

Author SHA1 Message Date
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
Emilio Cobos Álvarez
401a3ef429 Bug 1296516: Cleanup infallible or unchecked nsCSSFrameConstructor methods. r=heycam
MozReview-Commit-ID: IoMOQyAhadv
2017-03-20 22:28:16 +01:00
Emilio Cobos Álvarez
c8a5bc5165 Bug 1296516: Convert UndisplayedMap to a typed hashtable. r=heycam
MozReview-Commit-ID: g54ekayP2y
2017-03-20 22:28:15 +01:00
Emilio Cobos Álvarez
a079d79f65 Bug 1296516: Indentation nits in nsFrameManager. r=heycam
MozReview-Commit-ID: L98VVegeATX
2017-03-20 22:28:14 +01:00
Emilio Cobos Álvarez
6c40f8a40b Bug 1296516: Tidy RestyleManager::ContentStateChanged. r=heycam
MozReview-Commit-ID: 7iWc6JvljhT
2017-03-20 22:28:13 +01:00
Carsten "Tomcat" Book
43fb02d095 Merge mozilla-central to mozilla-inbound 2017-03-20 13:11:49 +01:00
Cameron McCormack
52f712bba2 Bug 1338461 - Pass eRestyle_StyleAttribute through to Servo_NoteExplicitHints. r=bholley
MozReview-Commit-ID: C7HIOTs1SSY

--HG--
extra : rebase_source : 638fe3e1c9ecf47dcd9b175ae03344450417c7da
2017-03-20 14:42:31 +08:00
Jeremy Chen
39b7492e90 Bug 1348615 - [stylo] update mochitest expections for text-size-adjust. r=xidorn
MozReview-Commit-ID: 1jgt9fE6lab

--HG--
extra : rebase_source : 7c51c6ff243cb64163ad2ad0bfcd2805c8c5acc2
2017-03-20 11:56:17 +08:00
Miko Mynttinen
6e4add711b Bug 1346777 - Transform layer geometry properly when intermediate surface is used r=mattwoodrow
MozReview-Commit-ID: H3YmadD8sFz

--HG--
extra : rebase_source : 8bd9f9b58d8e50fd925299fec6fc464ee50886c0
2017-03-16 21:51:54 +01:00
Sebastian Hengst
0f9e0165a3 Bug 1341102: Adjust expectations for servo/servo#15604 and servo/servo#16028: Fix reftest expectation format. r=reftest-fix on a CLOSED TREE
--HG--
extra : amend_source : 673cc7490524789c15a9dca831c70b6cfe1fe8c4
2017-03-20 00:22:39 +01: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
Timothy Nikkel
ec8cc6441b Bug 1346121. In ScrollFrameHelper::DecideScrollableLayer we should check for a displayport again after we call MaybeCreateDisplayPort. r=botond
Just like its name says, MaybeCreateDisplayPort might have created a displayport.
2017-03-18 16:22:11 -05:00
Sebastian Hengst
c9f5cc6b45 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 8nsStTZt40O
2017-03-18 16:24:53 +01:00
Cameron McCormack
3d324159b0 Bug 1347838 - stylo: Don't resolve images in nsStyleContentData objects twice. r=manishearth
MozReview-Commit-ID: 7KQykNEmZYp

--HG--
extra : rebase_source : 9a232112d5b377a59848e86657fca4d520e7bd2e
2017-03-18 15:10:51 +08:00
Cameron McCormack
19e2347587 Bug 1346623 - Part 3: Test. r=bholley
MozReview-Commit-ID: 8LOxAPDEuBW

--HG--
extra : rebase_source : 68d8a70210a346f184fb484fdd4f1d81e673c651
2017-03-16 22:47:05 +08:00
Cameron McCormack
2a59bf895d Bug 1346623 - Part 1: Prevent canvas custom content from becoming NAC when reframing the root element. r=bholley
MozReview-Commit-ID: K7jcUuz6KI4

--HG--
extra : rebase_source : 85c2939b020e7d4b401382c0d436f16c5af98b5e
2017-03-16 17:43:44 +08:00
Cameron McCormack
0bd2536940 Bug 1348493 - Clear ServoElementData from canvas custom content's during-PresShell-destruction clones. r=bholley
MozReview-Commit-ID: HqLgOuXsQuV

--HG--
extra : rebase_source : 0da1b02c0675fc93303cedf3d8dfb73d413670a2
2017-03-18 14:15:09 +08:00
Mats Palmgren
0f05af4ad2 Bug 1339062 - Wallpaper an orange failure by delaying the snapshot for 1s. r=me
--HG--
extra : rebase_source : 5fa2af7055f0363c74f7e29bb59c364aed23f677
2017-03-14 07:18:00 -04:00
Mats Palmgren
4ef842400f Bug 1348222 - Assign 'mScrollEvent' while 'ev' still has a non-null value. r=smaug
MozReview-Commit-ID: 3OsNlgHFEzM
2017-03-17 20:55:24 +01:00
Bobby Holley
6a3b1005d1 Bug 1341102 - Update expectations after merge of #16006. r=me
MozReview-Commit-ID: eV0noy7qe6
2017-03-17 17:32:52 -07:00
Sebastian Hengst
e4de847b3c Backed out changeset 836d16519edf (bug 1345853) for frequently failing its own test pattern-big-image.html. r=backout 2017-03-17 21:54:01 +01:00
Sebastian Hengst
e35416592f Backed out changeset a46f3da8aba6 (bug 1345853) 2017-03-17 21:53:24 +01:00
Sebastian Hengst
17f72f2991 Backed out changeset fd5e7c8cbb6d (bug 1345853) 2017-03-17 21:53:19 +01:00
Wes Kocher
b58db2c9cb Merge m-c to autoland, a=merge
MozReview-Commit-ID: Ccc8rDMJMfn
2017-03-17 11:13:53 -07:00
Wes Kocher
ee28f4ee71 Merge inbound to central, a=merge
MozReview-Commit-ID: Fq7B78wD7Wv
2017-03-17 11:03:59 -07:00
Carsten "Tomcat" Book
3e0a5441c6 Merge mozilla-central to mozilla-inbound 2017-03-17 14:55:15 +01:00
Jeremy Chen
9a60f77d80 Bug 1343516 - clean up the mess of PropertyProvider and its implementations. r=jfkthame
The cleanup work includes:

part 1: make all methods 'const' for the abstract class of PropertyProvider.

part 2: make nsFontMetrics's StubPropertyProvider final.

part 3: make nsTextFrame's PropertyProvider final.

  Make some methods 'const' and some variables 'mutable', so we could let all the
  overridden methods stay const.

  We also need to make the pass-in parameter of gfxFontGroup's GetHyphenWidth const.
  Note that the comment of GetHyphenWidth seem outdated, so I fixed it as well.

part 4: make the member variables in nsTextFrame's PropertyProvider to be 'const'.

  Make all the member variables 'const' except mStart, mLength,
  mJustificationArrayStart, and mJustificationSpacings.

  The static function AdvanceToNextTab is fixed since we only use 2 of the 4 parameters.

part 5: coding style fix for nsTextFrame's PropertyProvider.

MozReview-Commit-ID: 1kbWPwx27aQ
2017-03-17 18:53:15 +08:00
Xidorn Quan
d7bfa06d83 Bug 1346353 - Disable test_hover.html for stylo because of intermittent issue. 2017-03-17 23:05:58 +11:00
Carsten "Tomcat" Book
953eb6ee5e Backed out changeset c7df34767efb (bug 1344132) for stylo test failures 2017-03-17 12:37:07 +01:00
Hiroyuki Ikezoe
53cd62387d Bug 1340958 - Drop Servo_AnimationValues_Uncompute. r=boris
MozReview-Commit-ID: 4CMzaCOnY7z

--HG--
extra : rebase_source : a0e988af6cdde93f47ee2089a281a49c815d953a
2017-03-17 13:24:42 +09:00
Hiroyuki Ikezoe
cb4ce7109c Bug 1340958 - Drop AnimationRule and ServoAnimationRule. r=boris
MozReview-Commit-ID: ClnvyShHpsN

--HG--
extra : rebase_source : c554550264bfedafbf91ed2ed754603fb5c3e4c6
2017-03-17 13:24:42 +09:00
Hiroyuki Ikezoe
3b9f585232 Bug 1340958 - Put computed values into AnimationValueMap instead of hashtable in gecko. r=heycam
Before this patch, we store each computed values in a hashtable,
nsRefPtrHashtable<nsUint32HashKey, RawServoAnimationValue>, for all
KeyframeEffectReadOnly on an element, and convert the ServoAnimationValues of
the hashtable into an nsTArray<ServoAnimationValue*> and then convert
the ServoAnimationValues of the nsTArray into PropertyDeclarationBlock
in rust.  This way was really inefficient.
In this patch, we store the computed values into AnimationValueMap and
convert all AnimationValue in the map into PropertyDeclarationBlock
after EffectCompositor::GetAnimationRule.

MozReview-Commit-ID: EJ2Kl65fVeF

--HG--
extra : rebase_source : e30a9d440dc9855e21b94501b07a3501d31bc345
2017-03-17 13:23:21 +09:00
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
cku
c486e7014c Bug 1340044 - Part 2. Rename value in StyleGeometryBox. r=heycam
This change is to use gecko_enum_prefix in helpers.mako.rs, so that we do not
need to manually write code for nsStyleDisplay::mTransformBox.

MozReview-Commit-ID: 7UAL0iUcSIO

--HG--
extra : rebase_source : e99b7c163991df7ef3e7c0404fcef1832718a150
2017-03-16 15:18:10 +08:00
cku
85448394ac Bug 1340044 - Part 1. Declare mTransformBox as StyleGeometryBox. r=heycam
MozReview-Commit-ID: 9fcHkDtNHhL

--HG--
extra : rebase_source : 61cdec71eea4f80e2e1e702bf6a03132287545a3
2017-03-15 12:21:07 +08: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
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