Commit Graph

54445 Commits

Author SHA1 Message Date
Mats Palmgren
b2ac374a02 Bug 1330962 part 6 - Start this test using MozReftestInvalidate rather than onload.
The test fails when using onload if it's the first test to run in its
reftest chunk.
2017-01-30 00:37:00 +01:00
Mats Palmgren
84fc7f3624 Bug 1330962 part 5 - Reftests for baseline alignment of various form controls. 2017-01-30 00:36:59 +01:00
Mats Palmgren
9fb7c1b523 Bug 1330962 part 4 - Cleanup some #includes and make nsLegendFrame 'final'. r=dholbert 2017-01-28 02:34:14 +01:00
Mats Palmgren
6e53f8fdf0 Bug 1330962 part 3 - Add baseline methods to nsFieldSetFrame. r=dholbert 2017-01-28 02:34:14 +01:00
Mats Palmgren
a44216adfb Bug 1330962 part 2 - Add baseline methods to nsHTMLButtonControlFrame. r=dholbert 2017-01-28 02:34:13 +01:00
Mats Palmgren
4d79cc0b8c Bug 1330962 part 1 - Add baseline methods to nsTextControlFrame. r=dholbert 2017-01-28 02:34:13 +01:00
Cameron McCormack
7805d4716e Bug 1334768 - stylo: Test expectation adjustments for 2017-01-29 merge.
MozReview-Commit-ID: FFmvs6SHIwW
2017-01-29 15:31:56 +08:00
Hiroyuki Ikezoe
5e33af310e Bug 1328787 - Part 13: Call nsAnimationManager.UpdateAnimations(). r=heycam
MozReview-Commit-ID: CcA3dJaxuYY
2017-01-29 12:59:00 +09:00
Hiroyuki Ikezoe
fc6d8f711b Bug 1328787 - Part 12: Fill Gecko's Keyframe. r=heycam
MozReview-Commit-ID: 5QdUtFj9lK9
2017-01-29 12:58:51 +09:00
Hiroyuki Ikezoe
e4b48af5ae Bug 1328787 - Part 4: Add Gecko_AnimationAppendKeyframe. r=heycam
This is a function which is called in Servo_StyleSet_FillKeyframesForName to
append a Gecko's Keyframe into nsTArray<Keyframe>.

Without this function we need to end up exposing ComputedTimingFunction class
and Maybe<> as FFI.

MozReview-Commit-ID: 2EpltR4rMVh
2017-01-29 12:58:39 +09:00
Hiroyuki Ikezoe
8d8004331b Bug 1328787 - Part 3: Add functions for filling each servo's animation keyframes into nsTArray<Keyframe>. r=heycam
The argument, ServoComputedValues*, will be used the case where keyframe is not specified.

MozReview-Commit-ID: HqqEXuYajCi
2017-01-29 12:58:28 +09:00
Hiroyuki Ikezoe
b760727ba4 Bug 1328787 - Part 2: Don't pass nsCSSKeyframesRule* to CSSAnimationBuild::Build. r=heycam
Because, in case of stylo, we don't have nsCSSKeyframesRule.

MozReview-Commit-ID: uWlrFihjbx
2017-01-29 12:58:25 +09:00
Mats Palmgren
c44a2704e5 Bug 1334403 - Some <caption> size tests for table flex items. 2017-01-29 04:02:59 +01:00
Mats Palmgren
0d8685f315 Bug 1334403 - Make <caption> inline size stretch again for table flex items. r=dholbert 2017-01-29 04:02:59 +01:00
Phil Ringnalda
5d4072a82c Merge m-i to m-c, a=merge 2017-01-28 13:09:00 -08:00
Emilio Cobos Álvarez
1c4f61bf3d Bug 1334579: Ensure constructors for nsStyleContentData run. r=bholley
MozReview-Commit-ID: 9Y6tQ6BD2c8
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-01-28 14:38:27 +01:00
Phil Ringnalda
5ee174a663 Backed out 5 changesets (bug 1330962) for failures in display-block-baselines-1.html and 315920-17.html
CLOSED TREE

Backed out changeset 71c277105903 (bug 1330962)
Backed out changeset 8cfebee598a6 (bug 1330962)
Backed out changeset 2394701998b2 (bug 1330962)
Backed out changeset 0b92b30ed1d3 (bug 1330962)
Backed out changeset cc7508381dc1 (bug 1330962)
2017-01-27 20:30:07 -08:00
Wes Kocher
4cf8a40463 Merge m-c to autoland, a=merge
MozReview-Commit-ID: J5UyPvoy89k
2017-01-27 16:39:56 -08:00
Wes Kocher
7cd28f7e5d Merge inbound to central, a=merge
MozReview-Commit-ID: HvoljuLV6Gj
2017-01-27 16:37:18 -08:00
Neerja Pancholi
461f03f96f Bug 1334680 - Use the same box shadow on every page in print preview. r=dholbert
MozReview-Commit-ID: KLxShMkwh0L

--HG--
extra : rebase_source : 79004587b80f1a752c3a664e0a8093fdf7872cd9
2017-01-27 14:36:02 -08:00
Gijs Kruitbosch
8faf5c08a8 Bug 1333164 - fix invalid references to mochitest stylesheet, r=erahm
MozReview-Commit-ID: 1Xxt72jYdm7

--HG--
extra : rebase_source : 15d854ffd6a142687fe5232149a0e370f1c058c2
2017-01-24 14:24:04 +00:00
Boris Chiou
56b53b069d Bug 1324691 - Part 4: Remove conditions on some crashtests. r=heycam
We should pass these animation tests now:
* 1216842-3.html
* 1216842-4.html
* 1278485-1.html
* 1290535-1.html
* layout/style/crashtest/1290994-1.html
* layout/style/crashtest/1290994-2.html
* layout/style/crashtest/1290994-3.html

And these tests still need to be verified by Bug 1334036.
* 1216842-1.html
* 1216842-2.html
* 1216842-5.html
* 1216842-6.html

MozReview-Commit-ID: 1qLcS9ovsYp

--HG--
extra : rebase_source : 7b013fd62a79352d429e2bf28246a2587a327db5
2017-01-27 14:38:55 +08:00
Boris Chiou
8a0ed49b88 Bug 1324691 - Part 3: Support AnimationsWithDestroyedFrame for ServoRestyleManager. r=heycam
MozReview-Commit-ID: 4cQ6PoieLLG

--HG--
extra : rebase_source : 6f0ca88a379ca9ce73488ae0b68b2b8a43469509
2017-01-27 12:45:46 +08:00
Boris Chiou
8941b09399 Bug 1324691 - Part 2: Move AnimationsWithDestroyedFrame into RestyleManagerBase. r=hiro
Both ServoRestyleManager and RestyleManager need AnimationsWithDestroyedFrame,
so move it to the base class.

MozReview-Commit-ID: BswoDYm0gS1

--HG--
extra : rebase_source : 7c5aad5189ad425b0dcefab12d465d579704030d
2017-01-26 17:05:53 +08:00
David Anderson
ef0d2650f7 Add tests that the GPU process is running. (bug 1333684, r=mattwoodrow)
--HG--
extra : rebase_source : 436bcdaba4019040ce36a53e60f15a90e0131df7
2017-01-26 16:26:10 -08:00
Wes Kocher
65216b775b Merge m-c to inbound, a=merge
MozReview-Commit-ID: 5CIctUOTFma
2017-01-26 16:32:26 -08:00
Wes Kocher
8fa84ca644 Merge inbound to central, a=merge
MozReview-Commit-ID: BZgxmhS6OtM
2017-01-26 16:19:05 -08:00
Bobby Holley
0d6e9dc9ff Bug 1334247 - Add an explicit hook for the nsComboboxControlFrame case, and eliminate nsIAnonymousContentCreator::CreateFrameFor. r=bz 2017-01-26 15:33:06 -08:00
Bobby Holley
107ef6b95d Bug 1334247 - Remove unused nsGfxButtonControlFrame::CreateFrameFor. r=bz
CreateFrameFor only gets called for frames that get constructed by the special
nsCSSFrameConstructor::CreateAnoymousFrames path

There's nothing special about buttons, so they just take the normal
AddFCItemsForAnonymousContent path. That path actually asserts against
a non-trivial CreateFrameFor implementation, but the assert currently
doesn't fire due to the mismatch between aPossiblyLeafFrame (which is the
nsGfxButtonControlFrame used to generate the anonymous content) and aFrame
(which is the inner block frame passed as the container to
AddFCItemsForAnonymousContent).
2017-01-26 15:33:05 -08:00
Mats Palmgren
2223b14373 Bug 1317464 - Zero size images are valid and shouldn't trigger warnings. Assert that the image size isn't negative though. r=tn
(intentinally skipping DrawSingleUnscaledImage for now)
2017-01-27 00:24:00 +01:00
Emilio Cobos Álvarez
1c87f99407 Bug 1334075: Part 2, mark some methods in nsTextFrame as final to avoid virtual calls. r=xidorn
MozReview-Commit-ID: FBhjFSNviBL
2017-01-26 15:43:12 +01:00
Emilio Cobos Álvarez
ad0b4ef8b2 Bug 1334075: Part 1, Reformat nsTextFrame.h to match coding style. r=xidorn
MozReview-Commit-ID: FLgExDFFPXW
2017-01-26 15:43:06 +01:00
Jet Villegas
af369b0b8e Bug 1292460 - Focus the reftest browser before starting tests, except when filtering out needs-focus tests. r=dbaron 2017-01-24 05:57:19 +09:00
Nathan Froyd
17bb8f4ad0 Bug 1276669 - part 6 - seal the static atom table sooner; r=bz
We do this to ensure that everybody has registered all the static atoms
we'll care about, and to pave the way for asserting that nobody is
trying to create any static atoms past this point in the next patch.
2017-01-26 15:43:38 -05:00
Nathan Froyd
436e287afe Bug 1276669 - part 4 - initialize RDF atoms in nsLayoutStatics; r=Pike
This is not the cleanest code ever, but we need to move all static atom
initialization prior to NS_SealStaticAtomTable to avoid the possibility
of dynamic atoms being transmuted into static atoms.  We therefore need
to open up an avenue for somebody else to initialize the atoms that RDF needs.
2017-01-26 15:43:39 -05:00
Nathan Froyd
0382120c9d Bug 1276669 - part 3 - split out nsHTMLTags atom initialization; r=hsivonen
We do this for much the same reason that we moved the nsHtml5Atoms
initialization.  Otherwise, the nsHTMLTags atoms are lazily initialized
long after we've sealed the static atom table in nsLayoutStatics.
2017-01-26 15:43:39 -05:00
Nathan Froyd
c00b39305e Bug 1276669 - part 2 - move nsTextServicesDocument::RegisterAtoms call; r=bz
Moving this call closer to the other atom initializations will enable us
to seal the static atom table sooner.
2017-01-26 15:43:39 -05:00
Nathan Froyd
68792e7375 Bug 1276669 - part 1 - make nsHtml5Atoms initialization explicit in nsLayoutStatics; r=hsivonen
Moving the html5 atoms out into their own initialization phase makes the
initialization of atoms more explicit and avoids problems with trying to
move modules around so their atoms get initialized in the correct place.
As an aesthetic bonus, this change produces pleasing symmetry in
nsHtml5Module::{Initialize,Release}Statics.

Reviewed-by: Nathan Froyd <froydnj@mozilla.com>
2017-01-26 15:43:39 -05:00
Ting-Yu Lin
9e98795aca Bug 1333685 - Eliminate CircleShapeInfo, and use EllipseShapeInfo for circle(). r=dbaron
The difference between CircleShapeInfo's constructor and EllipseShapeInfo's
is the computation of the radii. Therefore, this patch creates a factory
function to distinguish that, so shape-outside: circle() could be
implemented by using EllipseShapeInfo.

MozReview-Commit-ID: 9ZBQu8zCSrM
2017-01-26 14:21:29 +08:00
L. David Baron
b0cf27878d Bug 1333951 - Unbreak dumping of style contexts. r=bzbarsky
Prior to this patch, dumping of style contexts in the layout
debugger would only dump the subtree associated with the root
frame, which just covers the viewport, canvas, and associated
scrollbars.

I think this has been broken since bug 236921 (2004) and
bug 378693 (2007) properly disconnected the root element from the
styles for the viewport and canvas.

This patch just manually dumps the root frame and the root
element's frame, since the style set no longer maintains a list
of all of the style context roots.

MozReview-Commit-ID: 5LEnbNtngN2

--HG--
extra : transplant_source : v%BB%09%C8M8%FE%25%A9%A6%3D%EA%BD%BE%DF7%08%9A%85m
2017-01-25 22:05:16 -08:00
Timothy Nikkel
a721701822 Bug 1264798. Include the composite end time in the MozAfterPaint event. r=smaug r=mattwoodrow 2017-01-25 23:01:33 -06:00
Phil Ringnalda
39e57631eb Merge m-c to m-i 2017-01-25 20:48:39 -08:00
Kearwood Gilbert
ae9a989263 Bug 1328053 - Correct thumb position when shift-click scrolling r=mats
During the refactoring of nsSliderFrame::SetCurrentPositionInternal in Bug 957445, one
of the two calls to nsSliderFrame::UpdateAttribute was missed.  This resulted in the position,
identified with nsGkAtoms::curpos, not being updated immediately after the call to
nsSliderFrame::SetCurrentThumbPosition

MozReview-Commit-ID: 6gedouG4OFX

--HG--
extra : rebase_source : dd29d90e6f10be87f652241ad138d4533bda1010
2017-01-25 14:45:23 -08:00
Florian Quèze
b11907c7aa Bug 1334156 - script-generated patch to replace .ownerDocument.defaultView with .ownerGlobal, r=jaws. 2017-01-27 10:51:03 +01:00
Florian Quèze
2cf30507bd Bug 1334261 - script-generated patch to remove more newURI null parameters, r=jaws. 2017-01-27 10:51:02 +01:00
Florian Quèze
be4dbae285 Bug 1334199 - script-generated patch to omit getComputedStyle's second argument when it's falsy, r=jaws. 2017-01-27 10:51:02 +01:00
Florian Quèze
f187782ccf Bug 1334250 - script-generated patch to avoid removeEventListener calls when a variable is used for the event name, r=jaws. 2017-01-27 10:48:00 +01:00
Mats Palmgren
3035683048 Bug 1330962 part 5 - Reftests for baseline alignment of various form controls. 2017-01-28 02:34:14 +01:00
Mats Palmgren
1f6eeef935 Bug 1330962 part 4 - Cleanup some #includes and make nsLegendFrame 'final'. r=dholbert 2017-01-28 02:34:14 +01:00
Mats Palmgren
566b90f955 Bug 1330962 part 3 - Add baseline methods to nsFieldSetFrame. r=dholbert 2017-01-28 02:34:14 +01:00
Mats Palmgren
ad31a06902 Bug 1330962 part 2 - Add baseline methods to nsHTMLButtonControlFrame. r=dholbert 2017-01-28 02:34:13 +01:00
Mats Palmgren
021a92f120 Bug 1330962 part 1 - Add baseline methods to nsTextControlFrame. r=dholbert 2017-01-28 02:34:13 +01:00
Wes Kocher
18e735dcef Merge m-c to inbound, a=merge
MozReview-Commit-ID: EfMOcZbAiSe
2017-01-27 16:39:29 -08:00
Bobby Holley
283c85132a Bug 1334358 - Stop using CreateAnonymousFrames for scroll frame construction and remove the now-unused helper. r=bz 2017-01-27 16:13:35 -08:00
Bobby Holley
fd04f8fa75 Bug 1334358 - Stop using CreateAnonymousFrames for combo box creation. r=bz 2017-01-27 16:13:33 -08:00
Julian Seward
4150bcfb94 Bug 1333094 - nsPresContext::nsPresContext: move assignments into initialiser list where possible. r=dholbert.
--HG--
extra : rebase_source : 031b33ea24cd7e56e3cb2d170f6f20d988f0be48
2017-01-27 19:18:05 +01:00
Ehsan Akhgari
8847fca5f6 Bug 1334241 - Turn on the preference for annotating channels with TP information by default; r=francois
With this pref turned on, channels with the LOAD_CLASSIFY_URI load flag
will return true from the nsIHttpChannel::IsTrackingResource() API after
being loaded if their URL appears on the TP list.
2017-01-27 11:24:06 -05:00
Tooru Fujisawa
ddd36fec56 Bug 1332245 - Move nsScriptError from js/xpconnect to dom/bindings. r=bz
--HG--
rename : js/xpconnect/idl/nsIScriptError.idl => dom/bindings/nsIScriptError.idl
rename : js/xpconnect/src/nsScriptError.cpp => dom/bindings/nsScriptError.cpp
rename : js/xpconnect/src/nsScriptErrorWithStack.cpp => dom/bindings/nsScriptErrorWithStack.cpp
2017-01-28 00:42:47 +09:00
Ehsan Akhgari
ec8e7efb36 Bug 1334218 - Add a profiler annotation to PresShell::Paint that gives the URL of the document being painted; r=dholbert
This essentially copies what we do for the PresShell::DoReflow marker.
2017-01-27 10:15:46 -05:00
Kartikaya Gupta
1af1a82edf Bug 1312319 - Add a NS_INLINE_DECL_PURE_VIRTUAL_REFCOUNTING macro and replace existing pure-virtual AddRef/Release declarations. r=froydnj
MozReview-Commit-ID: 5yt3O4Hoois

--HG--
extra : rebase_source : 5dad12cd8400b8a783e8407de874d4b7c75cb645
2017-01-25 14:51:34 -05:00
Miko Mynttinen
697b81abea Bug 1333934 - Transform layer geometry only once r=mattwoodrow
MozReview-Commit-ID: BmJrPf6a6YH

--HG--
extra : rebase_source : a64caad60a8d3e1889696abf540f6f6115933616
2017-01-25 18:05:10 +01:00
Carsten "Tomcat" Book
ff34e66ec7 Merge mozilla-central to autoland 2017-01-25 13:52:18 +01:00
Carsten "Tomcat" Book
182312677f merge mozilla-inbound to mozilla-central a=merge 2017-01-25 13:47:25 +01:00
Florian Quèze
0e0865f4fc Bug 1331599 - script-generated patch to replace removeEventListener calls with the once option when possible, r=jaws. 2017-01-25 07:01:52 +01:00
Mantaroh Yoshinaga
48d03c0d31 Bug 1308099 part 2 - Remove unnecessary typedef and use defined name instead of full namespace. r=hiro
MozReview-Commit-ID: Jn5qLqS9Kc3

--HG--
extra : rebase_source : f7f424d6c33f59ebba99140bcef2fd336f475fbc
2017-01-25 15:59:30 +09:00
Mantaroh Yoshinaga
3ad37c274f Bug 1308099 part 1 - Rename AnimationPhase::Null to AnimationPhase::Idle. r=hiro
In Web Animations specification, if the animation effect is in none of the any phase, it define as 'Idle' phase. [1]
But, in the gecko, it defined as 'Null' phase.

So we will need to use 'Idle' phase for consistency.

[1] https://w3c.github.io/web-animations/#idle-phase

MozReview-Commit-ID: FlPpYOqdM4X

--HG--
extra : rebase_source : ec294c84f9c77a42d6128e3d43380b80fc130513
2017-01-25 15:43:57 +09:00
Boris Chiou
d45e2346f6 Bug 1317209 - Part 6: Support transition cascade level. r=heycam
Implement the mapping between EffectCompositor::CascadeLevel in Gecko and
EffectCompositor_CascadeLevel in Servo, so we can pass it as a parameter into
Gecko_GetAnimationRule.

MozReview-Commit-ID: GRedooyGE8c

--HG--
extra : rebase_source : c18d54dabb093242c66d46be8ca03424a2c6ca78
2017-01-24 15:33:10 +08:00
Boris Chiou
f338c9e47d Bug 1317209 - Part 5: Trigger composeStyle if there is an animation. r=heycam
1. Add one new FFI, Gecko_GetAnimationRule, which will try
   to update the animation rule and retrieve a ServoAnimationRule
   from EffectSet.
2. Add GetServoAnimationRule, which calls Animation::ComposeStyle and updates
   mElementsToRestyle.
3. There is no eRestyle_{CSSAnimations|CSSTransitions}, so we use
   eRestyle_Self and eRestyle_Subtree for stylo.

MozReview-Commit-ID: 9RpJurPSFMk

--HG--
extra : rebase_source : 6f1246b73a920aee86faeeaccc42b7f51ed2a6c8
2017-01-24 15:27:56 +08:00
Boris Chiou
93204df88d Bug 1317209 - Part 2: Call Servo's Interpolation from Gecko. r=heycam,manishearth
1. Call Servo's interpolation from KeyframeEffectReadOnly::ComposeStyle().
2. Store the results into ServoAnimationRule.

MozReview-Commit-ID: LOp2mbXforg

--HG--
extra : rebase_source : eda5e275e81f2413b2a729e8d06663eae496c15c
2017-01-24 15:21:52 +08:00
Boris Chiou
05b18b1257 Bug 1317209 - Part 1: Introduce ServoAnimationRule and implement uncompute FFI. r=heycam,manishearth
1. Introduce ServoAnimationRule, which is an equivalent of AnimValuesStyleRule.
2. Wrap ServoAnimationRule and AnimValuesStyleRule into a struct, and
   use it as the parameter of Animation::ComposeStyle and
   KeyframeEffectReadOnly::ComposeStyle.
3. Uncompute the RawServoAnimationValues in ServoAnimationRule when we
   need it.

MozReview-Commit-ID: HahXDYBCAhH

--HG--
extra : rebase_source : cd8c6f3a8409abf97f04af888953ff0e77d98348
2017-01-24 15:19:18 +08:00
Ting-Yu Lin
88f22bd389 Bug 1333366 Part 2 - Update legacy NS_SIDE usage and document. r=mats
Delete the "or 0 for no movement in that direction" from the CanAdjustEdges
document in nsMenuPopupFrame.h because the only caller in nsResizerFrame.cpp
never passes 0 to it.

MozReview-Commit-ID: 3A5A8O4MDn1

--HG--
extra : rebase_source : 3a961f9195d7887f8abb5c31ae9ec088f78a2626
2017-01-24 18:41:56 +08:00
Ting-Yu Lin
3cfff373f7 Bug 1333366 Part 1 - Update document related to Corner and HalfCorner. r=mats
MozReview-Commit-ID: 4wnjQOvploH

--HG--
extra : rebase_source : f300a44b190377e8217e5070f2d01261f54f5d22
2017-01-24 18:37:05 +08:00
Ting-Yu Lin
587b378e1d Bug 1326406 Part 6 - Make CircleShapeInfo inherit from EllipseShapeInfo. r=dbaron
MozReview-Commit-ID: H0UgT6P6c7K

--HG--
extra : rebase_source : c78b150708644baf09dcd182659eeeb108f6f7da
2017-01-23 17:19:32 +08:00
Ting-Yu Lin
0807932a97 Bug 1326406 Part 5 - Update document about float manager's coordinate space. r=dbaron
MozReview-Commit-ID: LJVqs49CSqQ

--HG--
extra : rebase_source : a012fd57664e6a58358eb18feab664958f15340c
2017-01-23 16:37:07 +08:00
Ting-Yu Lin
6e5dfe2a8e Bug 1326406 Part 4 - Implement shape-outside: ellipse(). r=dbaron
MozReview-Commit-ID: t1gaoKNbNp

--HG--
extra : rebase_source : e52d4f935d5865fd034def6c46d914c61db36f19
2017-01-23 17:18:07 +08:00
Ting-Yu Lin
3cda6f7ed5 Bug 1326406 Part 3 - Add ShapeInfo::Translate() for moving the origin of ShapeInfo. r=dbaron
Instead of manually adding (aLineLeft, aBlockStart) when creating a shape,
add Translate() to let the shapes implement their only way to move their
origin. FloatInfo could then move the shapes after they're created.

MozReview-Commit-ID: ApZBHnkng74

--HG--
extra : rebase_source : 10da425372e4e26b0da506059befc99e1c47a39d
2017-01-23 17:17:37 +08:00
Ting-Yu Lin
287eecf10f Bug 1326406 Part 2 - Extract the computation of ellipse radii as ComputeEllipseRadii(). r=dbaron
MozReview-Commit-ID: LPdvg66adHQ

--HG--
extra : rebase_source : 7dbd171a65d9ba057cce48057b82d3f8c143c590
2017-01-23 17:17:05 +08:00
Ting-Yu Lin
ce22fc94cf Bug 1326406 Part 1 - Fix indentation of </body> for the shapes1 reftests. r=dbaron
MozReview-Commit-ID: 20vidQM09Jn

--HG--
extra : rebase_source : a8f71f034030680bebd472acff36001025d9e5e3
2017-01-23 17:16:31 +08:00
Jonathan Kingston
673d193089 Bug 1330294 - Fixing disabled script tags that cause crashes in disabled SVG nodes r=hsivonen,smaug
MozReview-Commit-ID: Lr4s98aZM4W

--HG--
extra : rebase_source : 6dca1899d3b69a8eb7e82a02a60fd59f6a9a335e
2017-01-11 16:29:13 +00:00
Phil Ringnalda
1b60bc19eb Merge m-c to autoland 2017-01-24 18:56:54 -08:00
Phil Ringnalda
bf98cd4315 Merge m-i to m-c, a=merge 2017-01-24 18:53:29 -08:00
Wes Kocher
a65c1b1dfe Merge inbound to central, a=merge
MozReview-Commit-ID: BeGxZAeguBr
2017-01-24 16:08:16 -08:00
Julian Seward
ebea2b59c1 Bug 1232696 - Remove NS_DECL_AND_IMPL_ZEROING_OPERATOR_NEW as it causes segfaulting for GCC 6 builds (3 of 5, fixes for layout/). r=dholbert. 2017-01-24 17:11:13 +01:00
Cameron McCormack
80d819e95c Bug 1333001 - Crashtest. r=bzbarsky 2017-01-24 10:02:46 -05:00
Boris Zbarsky
95a8ef9e62 Bug 1333001. Ensure that ImportRule in fact always has a non-null mMedia. r=heycam 2017-01-24 10:02:46 -05:00
Brad Werth
5ef9727540 Bug 1328420 Part 8: Uplift SizeOfIncludingThis into StyleSheet, with override in CSSStyleSheet. r=heycam
MozReview-Commit-ID: 5f1WldhnP2

--HG--
extra : rebase_source : 28fb1718028961dd5fe3e25c8deeb38ebfd6ee87
2017-01-23 16:42:31 -08:00
Brad Werth
f9a4e85ea6 Bug 1328420 Part 7: Uplift List debug method into StyleSheet. r=heycam
MozReview-Commit-ID: 7aqC6N6cZst

--HG--
extra : rebase_source : 059b441aa12c77aee5734d61a244248b5ccd06d8
2017-01-23 16:40:28 -08:00
Brad Werth
9fd72f68f3 Bug 1328420 Part 6: Implement ServoStyleSheet destructor. r=heycam
MozReview-Commit-ID: iVaza2s7d

--HG--
extra : rebase_source : 354979d2cb3d5ef95f2063f6c3a3c1dd3774c91f
2017-01-23 16:37:59 -08:00
Brad Werth
6f5346abb4 Bug 1328420 Part 5: Uplift AppendStyleSheet to StyleSheet. r=heycam
MozReview-Commit-ID: CwNGWsJi65G

--HG--
extra : rebase_source : e493df5984f92b4d2b3c9bbf153f24ac2dffc441
2017-01-23 16:23:40 -08:00
Brad Werth
98d1dbc01c Bug 1328420 Part 4: Uplift SetOwningDocument into StyleSheet. r=heycam
MozReview-Commit-ID: 3TnTaFYkZS3

--HG--
extra : rebase_source : 1f15b8228f2dcccd0b00b41248617f5dac66f226
2017-01-24 13:12:40 -08:00
Brad Werth
ceca427e5f Bug 1328420 Part 3: Uplift the first child to StyleSheet via a new method, abstracting out the inner sheet concept (which is not present in Stylo sheets). r=heycam
MozReview-Commit-ID: KUeIlOhAJXr

--HG--
extra : rebase_source : 2308ae457161a106b6258feae95b95c4e6160e9b
2017-01-23 15:52:56 -08:00
Brad Werth
4870857c07 Bug 1328420 Part 2: Uplift mNext into StyleSheet. r=heycam
MozReview-Commit-ID: 1yHUtEAJZnl

--HG--
extra : rebase_source : b5987c9f9d26ecfc14e76c719784bbe0ea66791d
2017-01-23 15:36:09 -08:00
Brad Werth
f85fc3564c Bug 1328420 Part 1: Uplift parent pointer and accessor to StyleSheet class. r=heycam
MozReview-Commit-ID: C63yRZM3ORC

--HG--
extra : rebase_source : 92f7628506176d728e4b2ac4ae804729bc3738b3
2017-01-24 13:09:33 -08:00
Morris Tseng
1928a5fc22 Bug 1328494 - Convert nsDisplayBullet to layer. r=mattwoodrow
MozReview-Commit-ID: 8cDvUfwJqUF
2017-01-24 16:53:42 +08:00
Wes Kocher
ae32e28e86 Backed out 6 changesets (bug 1110928) for valgrind failures a=backout
Backed out changeset 97a60b61a65a (bug 1110928)
Backed out changeset 5b62dda2ebd0 (bug 1110928)
Backed out changeset b587547a6df1 (bug 1110928)
Backed out changeset fb7cb3957c0d (bug 1110928)
Backed out changeset 41d7f44db1ee (bug 1110928)
Backed out changeset e809ddd9c7db (bug 1110928)

MozReview-Commit-ID: L0DCJ0HD1sG
2017-01-23 17:34:23 -08:00
Bill McCloskey
7bbd79b58c Bug 1331966 - Don't assert against content JS during painting on Android (r=dvander)
MozReview-Commit-ID: HU8V8jeBFX
2017-01-23 17:01:18 -08:00
Xidorn Quan
1540b7ade8 Bug 1316236 followup - Move green.html into reference subdirectory.
MozReview-Commit-ID: 38UBjYPWIxk

--HG--
rename : layout/reftests/w3c-css/submitted/transforms/green.html => layout/reftests/w3c-css/submitted/transforms/reference/green.html
extra : source : 77275d430c84546f88378b9253c14d700724bbf2
2017-01-24 11:17:07 +11:00
L. David Baron
37f705d303 Bug 1333158 - Remove StyleSheet::GetDocument in favor of the identical GetAssociatedDocument. r=bz
(GetAssociatedDocument was recently renamed in bug 1332353.)

Note that the inconsistency between the Rule and CSSParser method names
is slightly bothersome.

MozReview-Commit-ID: L1SBIV86H4s

--HG--
extra : transplant_source : %60%BE%A8%B9%2BP9%8E_%8AX%28%DE%E7%12%83%1A%0E%FF%FD
2017-01-23 13:12:03 -08:00
Bobby Holley
e22d0e0c87 Bug 1332915 - Avoid writing to shared data in FramePropertyTable during parallel traversal. r=bz 2017-01-23 12:18:02 -08:00
Olli Pettay
c4d0a8d0ad Bug 1110928, trigger ZoneGC after evicting from bfcache, r=mccr8
--HG--
extra : rebase_source : 223271dd8b9c4052bf95969dca096531d7502eb4
2017-01-23 19:25:13 +02:00
continuation@gmail.com
7cdcc6ffc7 Bug 1110928, part 4 - Try to pass a relevant zone to PokeGC. r=smaug
--HG--
extra : rebase_source : d629ec0ac5ba2445e05b18b57c50d782ecaed227
2017-01-23 19:22:26 +02:00
Andrew McCreight
95cd9eba51 Bug 1110928, part 2 - Call PokeGC in nsDocumentViewer::PageHide before the call to OnPageHide. r=smaug
This ensures that the document isn't destroyed when we call PokeGC, which will be useful later.

--HG--
extra : rebase_source : 897912892a6aca2d272297723fee32cd65dd6fde
2017-01-23 19:21:13 +02:00
Andrew McCreight
f790c94f1a Bug 1110928, part 1 - Hoist the LOAD_END PokeGC out of nsJSContext::LoadEnd. r=smaug
nsDocumentViewer knows which document is involved which will help us later.

Also, fix a typo in the comment.

--HG--
extra : rebase_source : a1d5b81aab5b4efa914082fdbe4a5b3b71ee456d
2017-01-23 19:20:54 +02:00
Phil Ringnalda
403a7be2db Backed out changeset 9b9e53e7eee7 (bug 1326686) for causing frequent failures in test_scroll_snapping_scrollbars.html
--HG--
extra : rebase_source : 7e4a4cd87bcbb88c566b708881190f1b4c1dd964
2017-01-24 07:42:44 -08:00
Masatoshi Kimura
2f33a39f13 Bug 1331820 - Fix misuse of NS_NewNativeLocalFile in nsFileControlFrame.cpp. r=baku
MozReview-Commit-ID: 7v78jtmp7rU

--HG--
extra : rebase_source : 51e2287c2b3e811eb6979f68015aa14d6f31a9f1
2017-01-21 15:36:10 +09:00
Ting-Yu Lin
55aa51e408 Bug 1332105 Part 2 - Make Selection::LookUpSelection() return UniquePtr. r=dholbert
Selection::LookUpSelection()'s only caller,
nsFrameSelection::LookUpSelection(), doesn't check the return value. Let's
make it return UniquePtr directly like nsFrameSelection::LookUpSelection().

Rename aReturnDetails to aDetailsHead so that its role is clearer.
aDetailsHead is of type UniquePtr<SelectionDetails> instead of
UniquePtr<SelectionDetails>&& because the caller always wants to transfer
the ownership of SelectionDetails into the function.

MozReview-Commit-ID: 89Y7X1LTKON

--HG--
extra : rebase_source : 730d601ccb87eb2b616c0a021129752ed5301a3a
2017-01-20 23:28:02 +08:00
Ting-Yu Lin
f1d19f16fb Bug 1332105 Part 1 - Convert SelectionDetails and related functions to use UniquePtr. r=dholbert
For the non-owning pointer usage like iterating SelectionDetails's linked
list, it's sufficient to use SelectionDetails*.

MozReview-Commit-ID: 7PCFhD6Iz8j

--HG--
extra : rebase_source : 2d26edd513a402384e26719b3c0b5362d7a4ebb8
2017-01-20 17:39:57 +08:00
Botond Ballo
035f7766e3 Bug 1326686 - Only use the most recent refresh time as the start time of an AsyncScroll when the refresh driver is under test control. r=kip
MozReview-Commit-ID: FkyJfbaPPVl

--HG--
extra : rebase_source : 58ea615484a54b74b76f17e859136cf371b7c05f
2017-01-20 19:28:29 -05:00
Carsten "Tomcat" Book
e12cc94275 merge mozilla-inbound to mozilla-central a=merge 2017-01-23 11:15:58 +01:00
Xidorn Quan
e9127937e6 Bug 1326189 part 5 - Add reftest for caret-color with :visited. r=dholbert
MozReview-Commit-ID: Fw1gnUQSRbq

--HG--
extra : rebase_source : 6b06582d65b0e61f3f0721e4af6b2c686664428c
2017-01-20 17:16:54 +11:00
Xidorn Quan
9c07cf28a2 Bug 1326189 part 4 - Support caret in test_visited_reftests. r=dholbert
MozReview-Commit-ID: I7zaJw1S4ZC

--HG--
extra : rebase_source : 1fc4b8683d9eb10b6e9d90902bf6d177b7ac50cd
2017-01-20 17:27:18 +11:00
Xidorn Quan
18085fdd3d Bug 1326189 part 3 - Make test_visited_reftests support needs-focus. r=dholbert
MozReview-Commit-ID: XCy3kVh5FN

--HG--
extra : rebase_source : c81fce0505ec806f3d93adf4eee474a9cadd58a0
2017-01-20 17:15:02 +11:00
Xidorn Quan
07539165c0 Bug 1326189 part 2 - Rewrite test_visited_reftest mochitest with async function to make it clearer. r=dholbert
This patch is a refactor, and should not change any behavior other than
providing a potentially better failure message.

MozReview-Commit-ID: 9ow1XwBtGDZ

--HG--
extra : rebase_source : 5e968e38e924e7c741cf1d3a5c414650d2b093b0
2017-01-20 16:52:01 +11:00
Xidorn Quan
451f629809 Bug 1326189 part 1 - Apply :visited style for caret-color. r=dholbert
MozReview-Commit-ID: DQqSdCz2TEC

--HG--
extra : rebase_source : 6600f3fddd08dbb79d7a43b7ba49c19f3abc3b54
2017-01-19 23:07:25 +08:00
Xidorn Quan
309caad5d8 Bug 1330172 part 2 - Fix serialization of property declaration with variable reference. r=heycam
MozReview-Commit-ID: ATDj4lHrtR1

--HG--
extra : rebase_source : 0cf558db29680bcfe76beda2ed097bb515f91f0f
2017-01-20 22:35:12 +11:00
Xidorn Quan
79730fa65d Bug 1330172 part 1 - Fix serialization of CSS-wide keyword in variable. r=heycam
MozReview-Commit-ID: KvpwRjfFF2z

--HG--
extra : rebase_source : 4aaf85d874311b7db7281def0e2c16b17c4455c0
2017-01-20 22:34:06 +11:00
Xidorn Quan
c3e6a81bc4 Bug 1316236 - Treat perspective(0) as perspective(infinity). r=dholbert
MozReview-Commit-ID: H9xlpjxrzht

--HG--
extra : rebase_source : 5060ae56163446a9dd6ae816c548ecd987a6e33e
2017-01-20 12:45:33 +11:00
Nicholas Nethercote
22b6d342d7 Bug 1333296 (part 1) - Rename MOZ_ENABLE_PROFILER_SPS as MOZ_GECKO_PROFILER. r=mstange,glandium.
--HG--
extra : rebase_source : 223f3a17f009645369be503392cc1f0cea7f19a1
2017-01-24 14:15:12 +11:00
Boris Zbarsky
cce1668e68 Bug 1332322 part 2. Rename nsWrapperCache::IsBlack to nsWrapperCache::HasKnownLiveWrapper. r=mccr8 2017-01-24 20:38:58 -05:00
Boris Zbarsky
b39cdf67a8 Bug 1332322 part 1. Add an nsWrapperCache function to mark the wrapper as 'live' for GC purposes. r=mccr8 2017-01-24 20:33:54 -05:00
David Anderson
baf1f78d98 Move ScrollDirection to LayersTypes.h and make it a proper enum. (bug 1332567 part 1, r=kats) 2017-01-24 16:41:17 -08:00
Mats Palmgren
bf382ceca8 Bug 1323777 part 3 - Ensure that collecting telemetry on user font usage don't have unwanted side effects. r=smaug 2017-01-25 23:34:22 +02:00
Mats Palmgren
daa0033987 Bug 1323777 part 2 - make PresShell::Destroy() return immediately if it's already been called. r=smaug 2017-01-25 23:34:03 +02:00
Olli Pettay
59658da793 Bug 1323777, make GetDisplayMode more null-safe, r=bdahl 2017-01-25 23:32:50 +02:00
Boris Zbarsky
c9fc3601f5 Bug 1335368 part 22. Get rid of IsCallerChrome in geometry utils. r=dholbert 2017-02-01 15:43:59 -05:00
Boris Zbarsky
e641fa9f96 Bug 1335368 part 13. Remove the use of IsCallerChrome in dom/file. r=baku 2017-02-01 15:43:37 -05:00
Xidorn Quan
a0cd4629d7 Bug 1334938 - Re-enable stylo in stylo builds. r=emilio
MozReview-Commit-ID: y7u7QNHYii

--HG--
extra : rebase_source : 31bc928249d80cdd56fd59bcaa04af54653f39b4
2017-01-30 12:09:25 +11:00
Boris Zbarsky
d39ec8ac20 Bug 1336768. Use the right element to get our tree box object from; fixes problem introduced in <https://hg.mozilla.org/integration/mozilla-inbound/rev/d4cafa51586a>. r=smaug 2017-02-06 17:00:41 -05:00
Joel Maher
34ea64d612 Bug 1321707 - Intermittent w3c-css/submitted/ui3/box-sizing-replaced-001.xht skip on android/linux. r=gbrown
MozReview-Commit-ID: 1ERcAhnCt92
2017-02-06 14:32:46 -05:00
Xidorn Quan
4c82679e32 Bug 1328512 followup - Update expectation of style system tests for stylo. DONTBUILD
MozReview-Commit-ID: HKifm8Vx7ah

--HG--
extra : source : 3fecdfd0f6464e38a62da39273ac5d0e1eef1755
2017-01-23 17:07:16 +11:00
Olli Pettay
fe13edbe45 Bug 1331706 - Make vsync non-prioritized for now. r=billm 2017-01-22 18:34:27 +02:00
cku
4079b78d13 Bug 1336924 - Part 2. add invalidate test cases for transform-box. r=xidorn
Spec:
https://drafts.csswg.org/css-transforms/#transform-box
Only accept border-box, fill-box and view-box.

MozReview-Commit-ID: KEzfW2m3hCC

--HG--
extra : rebase_source : 5a4f4f2fec158baca5ef72480001508592ab23b0
2017-02-06 16:31:05 +08:00
cku
0b28243527 Bug 1336924 - Part 1. add invalidate test cases for shape-outside's shape-box. r=xidorn
spec:
https://drafts.csswg.org/css-shapes-1/#shape-outside-property
svg box values(fill-box/stroke-box and view-box) are not valid for shape-box.
MozReview-Commit-ID: 3yct8P0PFFM

--HG--
extra : rebase_source : e96af28468f7e4216b726df093eed4f9deaee2fd
2017-02-06 16:30:05 +08:00
Carsten "Tomcat" Book
ec7a38a1f8 Merge mozilla-central to autoland 2017-02-06 13:09:24 +01:00
Mantaroh Yoshinaga
1ba8149d5d Bug 1336899 - Should not fire the transitioncancel after ending CSS Transition. r=birtles
MozReview-Commit-ID: IrqNNjVg0xg

--HG--
extra : rebase_source : 769e4646375d41b5621ee71c8f0ce5eb44bae8d1
2017-02-06 16:21:01 +09:00
Daniel Holbert
c151164a28 Bug 1259348 part 2: Simplify logic in CSSParserImpl::LookupKeywordPrefixAware. r=mats
MozReview-Commit-ID: D9WoQ9vXTGJ

--HG--
extra : rebase_source : 16a582106a3e4cae1e328329d19d223f94802a78
2017-02-03 14:56:15 -08:00
Daniel Holbert
c280ee0009 Bug 1259348 part 1: Remove CSSUnprefixingService.js and associated code (since it's been supplanted by built-in webkit-prefixed-CSS support). r=mats
MozReview-Commit-ID: CXCJJWhHc8G

--HG--
extra : rebase_source : a09745ce568c9afde78065d9e837da958e7b252e
2017-02-03 14:56:13 -08:00
Wes Kocher
0151c314cd Merge m-c to autoland, a=merge CLOSED TREE
MozReview-Commit-ID: Kq0cDcNXrZf
2017-02-03 17:31:12 -08:00
Markus Stange
2a1b7a54a6 Bug 1336530 - Re-enable Android tests that were disabled in bug 1298218 and disable the assertion. r=tnikkel
MozReview-Commit-ID: L7PnRvUkw5O

--HG--
extra : rebase_source : 920d4418b72bd78998267be06062dae8f4b38316
2017-02-03 14:55:51 -05:00
Emilio Cobos Álvarez
222cfd4e2c Bug 1209697: Part 2, Cache flex measuring reflows to avoid exponential behavior. r=dholbert
MozReview-Commit-ID: 8vcLUvASEFM
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>

--HG--
extra : rebase_source : e0341ceaf269a6d0ed44fb6a82fff90956192073
2017-01-06 15:34:16 +01:00
Emilio Cobos Álvarez
403026c62b Bug 1209697: Part 1, Clear ancestor intrinsic sizes when our block size changes. r=dholbert
MozReview-Commit-ID: 9LnMm6KDcDP

--HG--
extra : rebase_source : 18afc92f75d3af0fce4dadb3e3f1314a65677034
2017-01-22 13:57:26 +01:00
Carsten "Tomcat" Book
83dcc2d62d Merge mozilla-central to autoland 2017-02-02 14:30:05 +01:00
Hiroyuki Ikezoe
f6710ec790 Bug 1333539 - Part 2: Send animations with null-timeline to the compositor if necessary. r=birtles
MozReview-Commit-ID: KJf7B8AuAzo

--HG--
extra : rebase_source : ac56bfe22d19dfb27640e76c2a520958bc93207d
2017-02-02 15:11:29 +09:00
Hiroyuki Ikezoe
e07498e3e8 Bug 1333539 - Part 1: Do not try to send animations without timeline. r=birtles
1333539-2.html is the test case that crashes without |!aAnimation->GetTimeline()|
check in AddAnimationForProperty().

MozReview-Commit-ID: 8UxYL8o63E1

--HG--
extra : rebase_source : af3247df257bc79e507113e2843854f478675a5b
2017-02-02 15:11:15 +09:00
Ting-Yu Lin
83efb1089f Bug 1334227 - Early return in unimplemented shape-outside cases. r=xidorn
MozReview-Commit-ID: 8l6C9LsLpJI

--HG--
extra : rebase_source : 3e91fd201d9483ce21cb4087aecbaf0a30a0a29a
2017-02-02 11:53:06 +08:00
Phil Ringnalda
7d78556bf0 Backed out 2 changesets (bug 1336345) for gtest timeouts and crashes in test_data_protocol_registration.js
CLOSED TREE

Backed out changeset c4247e22a8ff (bug 1336345)
Backed out changeset 05e8e7d0f430 (bug 1336345)
2017-02-05 20:40:19 -08:00
JW Wang
b2d7143749 Bug 1336345. Part 1 - register shutdown blocker on startup. r=gerald
MozReview-Commit-ID: 80DEZEEhm9E

--HG--
extra : rebase_source : 4c582b3ab3356efc166e22aaad5bd79826afaaeb
extra : source : 1785526b2065f6dd314218e19e75b770bab8a08e
2017-02-03 15:12:22 +08:00
Markus Stange
ce900f2971 Bug 1298218 - Apply the clip of a sticky item to the layer as a scrolled clip. r=mattwoodrow
MozReview-Commit-ID: JnHCj0oQjsM

--HG--
extra : rebase_source : 322b9d56c49e36c28de2f64d908365dad69da42e
2016-08-25 17:06:49 -04:00
Markus Stange
e8cd8c0f25 Bug 1298218 - Tests. r=mattwoodrow
MozReview-Commit-ID: LW4I9M5OXc9

--HG--
extra : rebase_source : c10230e406a57d301ce19a9f0d34fe6dd1a65afa
2016-09-07 23:19:09 -04:00
Markus Stange
748d7621c9 Bug 1298218 - Create nsDisplayFixedPosition if the element has a scrolled clip. r=mattwoodrow
MozReview-Commit-ID: Kvqs6YkeGZ

--HG--
extra : rebase_source : 306bb47a24d382cc88afb6c0a2181653270d26a2
2016-08-24 16:34:31 -04:00