Граф коммитов

50871 Коммитов

Автор SHA1 Сообщение Дата
Daniel Holbert 421e7e6728 Bug 1272983 part 4: Remove the "NoPercentage" getters for margin/padding, and fold their impls into the main getters. r=dbaron
a=KWierso for inbound metering

MozReview-Commit-ID: K2ScimpByn2
2016-05-20 15:06:31 -07:00
Daniel Holbert b2d8d65181 Bug 1272983 part 3: Use more forgiving padding getter in nsTreeBodyFrame.cpp, for better behavior with percent padding. r=dbaron
MozReview-Commit-ID: 10wFgGQ2Dqt
2016-05-20 15:05:35 -07:00
Daniel Holbert 4c16d721f5 Bug 1272983 part 2: Use more forgiving margin/padding getters in nsButtonFrameRenderer, for better behavior when percent or auto values are encountered. r=dbaron
MozReview-Commit-ID: 4vIehNg2vND
2016-05-20 15:05:33 -07:00
Daniel Holbert 65a3be93db Bug 1272983 part 1: If GetUsed{Margin,Padding} get called for a value that can't be resolved & isn't cached, assert & return 0-sized nsMargin. r=dbaron
(This restores the behavior we had before bug 1269901 landed, for this scenario.)

MozReview-Commit-ID: Ir1TNM1CgwU
2016-05-20 15:05:31 -07:00
L. David Baron 0ff0dbb850 Bug 1274450 - Disable PGO for nsTreeBodyFrame::PaintText. r=sfink a=KWierso
MozReview-Commit-ID: GL7gz3vuvAD
2016-05-20 14:46:02 -07:00
Nathan Froyd 21a2c67fd3 Bug 1272397 - use AppendElements in GetColorsForProperty; r=tromey
Creating an array of exactly the size that we need is faster than
possibly going through several rounds of reallocation and copying.
2016-05-19 21:48:59 -04:00
Shing Lyu 08c980d3a0 Bug 1242781 - Add 1 appunit in BRFrame::AddINlinePrefISize to match the 1 appunit added during reflow. r=dbaron
--HG--
extra : rebase_source : a8401f04f565e3e475e4a0ec19781b54ceb335c2
2016-05-08 19:41:00 -04:00
Kan-Ru Chen d5a5ebb1c5 Bug 1271931 - Make DisplayItem::IsUniform to return Maybe<nscolor>. r=tnikkel
Maybe<nscolor> ensures that correct value is returned and also makes the
error checking clearer than using a out param.

MozReview-Commit-ID: 39uHIFCZzqn

--HG--
extra : rebase_source : 1885906646ebc9739c86aecb2b8e4bd0ee02e97f
2016-05-19 16:07:52 +08:00
Sebastian Hengst 65ba36b925 Backed out changeset 97aef1a40d0f (bug 1273154) 2016-05-19 10:35:57 +02:00
CJKu fb8594dce2 Bug 1228280 - Part 8. Keep style consistent and stop doing null check for return value of operator new
MozReview-Commit-ID: GoK0xuCWTP
2016-05-19 15:44:42 +08:00
CJKu 5e2e2b7e08 Bug 1228280 - Part 7. reftest of SVG mask and image mask interleaving;
MozReview-Commit-ID: 6Cjn84ISQi3
2016-05-19 15:44:31 +08:00
CJKu 9da6045c99 Bug 1228280 - Part 6. Single SVG mask optimization;
MozReview-Commit-ID: 7k1XRTpGbtH
2016-05-19 15:44:19 +08:00
CJKu 27969c0e19 Bug 1228280 - Part 5. Paint multiple SVG and image masks;
MozReview-Commit-ID: FOgcnR9cYlH
2016-05-19 15:44:07 +08:00
CJKu 936ab8c243 Bug 1228280 - Part 4. Create nsSVGMaskProperty to carry multiple mask info;
MozReview-Commit-ID: LPTqls7wvqJ
2016-05-19 15:43:55 +08:00
CJKu 5cec98da52 Bug 1228280 - Part 3. Move mask painting out of nsSVGIntegrationUtils::PaintFramesWithEffects;
MozReview-Commit-ID: Iwcqhy7qYR2
2016-05-19 15:43:43 +08:00
CJKu b4f5e64881 Bug 1228280 - Part 2. Change the parameters of nsSVGIntegrationUtils::PaintFramesWithEffects;
MozReview-Commit-ID: CaOINlG7HD6
2016-05-19 15:43:32 +08:00
CJKu be0a6b927b Bug 1228280 - Part 1. Change the parameter of nsCSSRendering::PaintBackground;
MozReview-Commit-ID: 41KgAlkx9oZ
2016-05-19 15:43:20 +08:00
Cameron McCormack c528f52278 Bug 1273771 - Followup: Use nsDependentCSubstrings for pointer/length pairs passed in from Servo. r=bholley 2016-05-19 16:54:58 +10:00
Jonathan Kew 643840276f Bug 1273154 - Reftest for Mongolian shaping across NNBSP. r=jrmuizel 2016-05-19 07:01:59 +01:00
Chris Peterson 89c0478b18 Bug 1273363 - Fix -Wshadow warnings in layout/svg/. r=dholbert
layout/svg/SVGTextFrame.cpp:4198:28 [-Wshadow] declaration shadows a local variable
layout/svg/nsSVGClipPathFrame.cpp:388:18 [-Wshadow] declaration shadows a local variable
layout/svg/nsSVGIntegrationUtils.cpp:562:15 [-Wshadow] declaration shadows a local variable
layout/svg/nsSVGIntegrationUtils.cpp:586:26 [-Wshadow] declaration shadows a local variable
layout/svg/nsSVGIntegrationUtils.cpp:620:15 [-Wshadow] declaration shadows a local variable

--HG--
extra : rebase_source : d8652b0c6bc2532119f351d7b0dc860987b32677
2016-05-16 22:02:08 -07:00
Ting-Yu Lin 316b3d93b6 Bug 1272831 - Add AutoRestore::SavedValue() to retrieve the saved value. r=froydnj
MozReview-Commit-ID: eZCWmTpvXi

--HG--
extra : rebase_source : fc43e8b43edaad362971e7c7f91895759f47bf8f
2016-05-14 09:47:14 +08:00
Matt Woodrow 55e4b39110 Bug 1141468 - Don't report that we need component alpha for svg filters, since text within it will never have subpixel-AA. r=mstange 2016-05-18 15:14:38 +12:00
Matt Woodrow ecff14fb35 Bug 1141468 - Clean up prerendering code in nsDisplayTransform to be easier to follow. r=mstange 2016-05-18 15:12:44 +12:00
Matt Woodrow 2e5a9db070 Bug 1141468 - Don't attempt to modify prerender state (for will-change) in nsDisplayTransform since it's already too late. r=BenWa,mstange 2016-05-18 15:12:14 +12:00
Bobby Holley 54e2b1cf7e Bug 1273771 - Atom infrastructure for Servo. r=heycam
This is based on earlier work by Ms2ger.
2016-05-18 18:14:02 -07:00
Sebastian Hengst 542bd271b5 Backed out changeset 48d8323378ac (bug 1273771) for Windows build bustage. r=backout on a CLOSED TREE 2016-05-18 22:32:30 +02:00
Jonathan Kew 7060edb007 Bug 1272997 - Reftest for horizontal-only resizing of the document's root frame with vertical writing mode. r=dholbert 2016-05-18 21:07:54 +01:00
Jonathan Kew 4f379e76a3 Bug 1272997 - followup 4 - Set resize flags properly using logical accessors in PresShell. r=dholbert 2016-05-18 21:07:54 +01:00
Jonathan Kew d1ba203234 Bug 1272997 - followup 3 - Use logical accessors for resize flags in nsViewportFrame. r=dholbert 2016-05-18 21:07:54 +01:00
Jonathan Kew c160cdbf15 Bug 1272997 - followup 2 - Convert storage of resize flags from physical to logical. r=dholbert 2016-05-18 21:07:54 +01:00
Jonathan Kew 2527687995 Bug 1272997 - followup 1a - Add missing braces, because the style guide likes them. rs=dholbert 2016-05-18 21:07:54 +01:00
Jonathan Kew bfdda7ee51 Bug 1272997 - followup 1 - Check for orthogonal writing modes when propagating (logical) resize flags from parent to child. r=dholbert 2016-05-18 21:07:54 +01:00
Jonathan Kew 8883bbb6a6 Bug 1272997 - Set resize flags properly when calling SetComputed{Width,Height} on the reflow state for a viewport frame. r=dholbert 2016-05-18 21:07:53 +01:00
Bobby Holley 495a804524 Bug 1273771 - Atom infrastructure for Servo. r=heycam
This is based on earlier work by Ms2ger.
2016-05-18 12:22:44 -07:00
Jonathan Kew e08d24f30d Bug 1260825 - Reftest for highlighting of text involving surrogate pairs with graphite shaping. r=jrmuizel 2016-05-18 15:22:59 +01:00
Keith Yeung 90a39873d8 Bug 1273424 - Rename -moz-appearance keyword constants to be more consistent with CSS keywords. r=bholley 2016-05-18 11:07:47 -07:00
Keith Yeung 24bac18bf5 Bug 1273424 - Rename -moz-float-edge constants to be more consistent with keywords. r=bholley 2016-05-18 11:07:46 -07:00
Mats Palmgren 83b2cc47a0 Bug 1273129 - Fix typo from physical to logical conversion (in bug 1113206). r=jfkthame 2016-05-18 18:21:41 +02:00
Mats Palmgren 066a6bf28d Bug 1273433 part 2 - Some basic <legend align> reftests. 2016-05-18 13:49:33 +02:00
Mats Palmgren 959f2206d8 Bug 1273433 part 1 - Make <legend align=right> work again. r=jfkthame 2016-05-18 13:49:33 +02:00
Mats Palmgren 5dcee2e2c6 Bug 1271492 - Rename nsIFrame::eUseAutoHeight to eUseAutoBSize. r=dholbert 2016-05-18 13:49:33 +02:00
Mats Palmgren e643bbeaf5 Bug 1271392 part 6 - [css-grid] Remove now dead code. r=dholbert 2016-05-18 13:49:33 +02:00
Mats Palmgren ab4dcaeb46 Bug 1271392 part 5 - [css-grid] Reftest tweaks. 2016-05-18 13:49:33 +02:00
Mats Palmgren 4d19f2a6ef Bug 1271392 part 4 - [css-grid] Make sure a grid item's last fragment fills its grid area. r=dholbert 2016-05-18 13:49:33 +02:00
Mats Palmgren 88e4ba9cfe Bug 1271392 part 3 - Only merge in children from the EOC list that don't already have a prev-in-flow in this frame. r=dholbert 2016-05-18 13:49:33 +02:00
Mats Palmgren a1b690d0f2 Bug 1271392 part 2 - [css-grid] When pulling up grid item, make sure its next-in-flow (if any) is in our next-in-flow. r=dholbert 2016-05-18 13:49:33 +02:00
Mats Palmgren 6dca609754 Bug 1271392 part 1 - [css-grid] Make grid item 'stretch' not require an extra reflow. r=dholbert
This part removes the 'stretch' logic in AlignJustifySelf and implements
it in nsLayoutUtils::ComputeSizeWithIntrinsicDimensions /
nsFrame::ComputeSize instead.
2016-05-18 13:49:33 +02:00
Mats Palmgren b4594808f5 Bug 1273705 - Add convenience methods to check if a margin is 'auto' on either side in an axis. r=dholbert 2016-05-18 13:49:32 +02:00
Sebastian Hengst 2a25239773 Backed out changeset 8825e67c19a7 (bug 1141468) for M(4) perma-failures in test_transformed_scrolling_repaints_3.html on OSX 10.10. r=backout 2016-05-18 10:38:10 +02:00
Sebastian Hengst 68055f003a Backed out changeset 0e40f51068b4 (bug 1141468) 2016-05-18 10:38:03 +02:00
Sebastian Hengst 6b1dac9542 Backed out changeset 93586651e956 (bug 1141468) 2016-05-18 10:37:55 +02:00
CJKu ffcae1dc76 Bug 1272970 - fix test_transitions_per_property failure; r=mstange
MozReview-Commit-ID: 9y9gT0dagDv

--HG--
extra : rebase_source : a01d99716b26e072b2ae74e3602772764810991c
2016-05-15 22:39:31 +08:00
CJKu e9520b431c Bug 1273068 - Part 1. nsDisplayBackgroundColor::GetOpaqueRegion should respect bg-clip value r=jfkthame
MozReview-Commit-ID: BJWYoA8UQvJ

--HG--
extra : rebase_source : 58ce148d5fd84717e5721303f629c2e17516f6e8
2016-05-16 22:31:02 +08:00
Matt Woodrow 7727334a3e Bug 1141468 - Don't report that we need component alpha for svg filters, since text within it will never have subpixel-AA. r=mstange
--HG--
extra : rebase_source : 18572157a0ef1ebb20dba9b7d903d788c31fbd09
2016-05-18 15:14:38 +12:00
Matt Woodrow 654125d823 Bug 1141468 - Clean up prerendering code in nsDisplayTransform to be easier to follow. r=mstange
--HG--
extra : rebase_source : ae9ded54e633e2ebffaeb8fef0b47a2d041dab1f
2016-05-18 15:12:44 +12:00
Matt Woodrow 4258a918f0 Bug 1141468 - Don't attempt to modify prerender state (for will-change) in nsDisplayTransform since it's already too late. r=BenWa,mstange
--HG--
extra : rebase_source : 62e38ec1e4fbfa4f92a008e16a85a7db5691b7ed
2016-05-18 15:12:14 +12:00
Moritz Brunner f9f6b3c538 Bug 732733 - Resize drag image relative to the available screensize. r=jimm
--HG--
extra : rebase_source : 121170788742da505aada578a663b40ed05d838e
2016-05-13 06:48:00 -04:00
Xidorn Quan 6972973d70 Bug 1266645 - Move around a warning to avoid triggering it for valid cases. r=jfkthame
MozReview-Commit-ID: 3qRkNIUeCom

--HG--
extra : source : df5b541e7189cd1bee7dd073f8f8543bd9bb5197
2016-05-18 09:09:25 +10:00
Jessica Jong eb72222ba6 Bug 1265968 - fire change event after selected item is changed in dropdown. r=smaug 2016-05-17 12:50:50 -07:00
firefox@hindlemail.co.uk 94f266f4ff Bug 1263288 - Make GetFrameForNodeOffset return a sibling frame for frameless content. r=mats
This fixes missing caret problems.

Also changed GetFrameForNodeOffset to be non recursive to prevent possibly of
large stack frame.
2016-05-11 15:28:45 -06:00
Kartikaya Gupta b9e4a263e3 Bug 1270019 - Add a SetRestoreResolution API for fennec's SessionRestore to use. r=rbarker
MozReview-Commit-ID: 7WqmgAkFItQ
2016-05-17 14:50:08 -04:00
Andi-Bogdan Postelnicu bac65649ef Bug 1273123 - removed unused variable |mRestoringHistoryScrollPosition|. r=dbaron
MozReview-Commit-ID: 6JDCk7tFKo6

--HG--
extra : rebase_source : f71628d64fe4f8260da3582e21c58f99dcaade31
2016-05-17 09:51:05 +03:00
Kartikaya Gupta 6637b49101 Bug 1271432 - Optimization to avoid recomputing the same Matrix over and over. r=tnikkel
MozReview-Commit-ID: 28lV5ZRswxu
2016-05-17 11:05:46 -04:00
Kartikaya Gupta 9fe9512858 Bug 1271432 - When combining event regions across layers, don't expand the regions that shouldn't be expanded. r=tnikkel
MozReview-Commit-ID: 6GlYiJAm7rO
2016-05-17 11:05:46 -04:00
Timothy Nikkel de51310fb9 Bug 1267489. nsImageBoxFrame should unlock old image when changing to a new image. r=dholbert 2016-05-17 03:13:28 -05:00
stefanh@inbox.com d76d8b9c90 Bug 1192053 - Native theming: Support for Mac OS X source lists (background part). r=gijs, mstange. 2016-05-17 07:37:05 +02:00
Botond Ballo 11fbf22687 Bug 1272525 - Add a reftest for clipping of fixed background layers inside a BasicLayerManager. r=mstange
MozReview-Commit-ID: 1MYEvtc0mu8

--HG--
extra : source : 2fc2a95fcf7fada19dace3ad31f336ce8f14c165
extra : histedit_source : 7e3ea3585917a0445b1f6b800e81e88459b574f8
2016-05-16 16:16:24 -04:00
Botond Ballo 364c95341e Bug 1272525 - Set a layer clip rather than a scroll clip for fixed background layers if not using a widget layer manager. r=mstange
MozReview-Commit-ID: 2fJyQXSLzsU

--HG--
extra : source : 8a282bae4fa3451efb3187d695ce0d523262acfd
extra : amend_source : 2e3d55a4cee03f6c3c58fe85e98f87a034f2bd39
extra : histedit_source : f6d5b5bfa98795824c0968065011b9ff4a4a6f5d
2016-05-16 14:15:48 -04:00
Kartikaya Gupta 11bfa10a5a Bug 1264297 - Don't do paint-skipping for elements with perspective, until we can properly populate the displayport. r=mstange
MozReview-Commit-ID: D3wKzWU72yi

--HG--
extra : rebase_source : f4487d2b37fe9799b32b40d0207b44dd50fca42f
2016-05-16 12:07:01 -04:00
Masayuki Nakano 8a70a17c6a Bug 1254755 part.2 Rename WidgetKeyboardEvent::charCode to WidgetKeyboardEvent::mCharCode r=smaug
And mCharCode shouldn't be compared with NS_VK_*, nsIDOMKeyEvent::DOM_VK_*. Additionally, when it's compared with a character constant, cast isn't necessary.

MozReview-Commit-ID: JMT614copjG

--HG--
extra : rebase_source : 69ee3c589e5a71c814ec9a40ac3aab39c789c11d
2016-05-13 16:06:18 +09:00
Masayuki Nakano 3359bad586 Bug 1254755 part.1 Rename WidgetKeyboardEvent::keyCode to WidgetKeyboardEvent::mKeyCode r=smaug
And also WidgetKeyboardEvent::mKeyCode should be compared with NS_VK_* rather than nsIDOMKeyEvent::DOM_VK_*.

MozReview-Commit-ID: IKjQ1nr8XYe

--HG--
extra : rebase_source : 83125cd2523f6b70759f621470aad23b00aae8ae
2016-05-12 17:13:49 +09:00
Bob Owen 2d161a3465 Bug 1189846 Part 9: Add ability to print from the parent process with settings and progress listener. r=jimm, r=smaug
MozReview-Commit-ID: 7IEMByPmC0n
2016-05-16 10:40:54 +01:00
Bob Owen 80ef8208d0 Bug 1189846 Part 8: Make RemotePrintJob a print progress listener forwarder. r=jimm
MozReview-Commit-ID: 4ADQ6Hx46fZ
2016-05-16 10:40:54 +01:00
Bob Owen 757e385a15 Bug 1189846 Part 3: Remove CreatePrintSettings nsIPrintOptions and use GetNewPrintSettings instead. r=jimm
MozReview-Commit-ID: Esv5zYxpKVo
2016-05-16 10:40:54 +01:00
Hiroyuki Ikezoe 00e2f46aeb Bug 1268385 - Clear isRunningOnCompositor for script animations if associated nsIFrame is destroyed. r=birtles
MozReview-Commit-ID: 3tTkDtxkHcT

--HG--
extra : rebase_source : 388f548cb30f5384cceb620a595dd10b5fd22e4e
2016-05-16 16:25:46 +09:00
Kan-Ru Chen c5d6a959b2 Bug 1261612 - Allow <iframe mozbrowser> in chrome doc to use transparent attribute. r=smaug
MozReview-Commit-ID: JjiPKnw95pS
2016-05-16 10:56:09 +08:00
Kan-Ru Chen d5e601ce6f Bug 1261612 - Remove TabChild::IsRootContentDocument and related methods. r=smaug
MozReview-Commit-ID: 2ms1lBfimfv
2016-05-16 10:56:07 +08:00
Chris Peterson 8a9e2d2bd4 Bug 1272513 - Part 2: Remove redundant -Wshadow CXXFLAGS from moz.build files. r=glandium 2016-05-14 00:54:55 -07:00
Chris Peterson 353ee65255 Bug 1272513 - Part 1: Suppress -Wshadow warnings-as-errors in some directories. r=glandium 2016-05-11 00:00:01 -07:00
Jonathan Watt eef9767c21 No bug - Mark some SVG classes as final. r=sparky 2016-05-06 17:25:55 +01:00
Ting-Yu Lin d9623c94f4 Bug 1272840 - Resurrect the URL to block-and-line.html r=dbaron
DONTBUILD (NPOTB)

MozReview-Commit-ID: Hqk3kSUftRM

--HG--
extra : rebase_source : c193442d7018355914f731d94dba587e480443bf
2016-05-14 11:44:38 +08:00
L. David Baron 55b6b3268e Bug 1111440 - Replace rest of -moz-/Moz prefixed logical margin/padding/border properties with their standard versions. r=heycam
This patch was generated by the command:
  find * -type f -exec sed -i -f ../mozpropsub {} \;
in the root of the repository, with the file ../mozpropsub containing:
s/-moz-padding-end\>/padding-inline-end/g
s/-moz-padding-start\>/padding-inline-start/g
s/-moz-margin-end\>/margin-inline-end/g
s/-moz-margin-start\>/margin-inline-start/g
s/-moz-border-end\>/border-inline-end/g
s/-moz-border-end-color\>/border-inline-end-color/g
s/-moz-border-end-style\>/border-inline-end-style/g
s/-moz-border-end-width\>/border-inline-end-width/g
s/-moz-border-start\>/border-inline-start/g
s/-moz-border-start-color\>/border-inline-start-color/g
s/-moz-border-start-style\>/border-inline-start-style/g
s/-moz-border-start-width\>/border-inline-start-width/g
s/\<MozPaddingEnd\>/paddingInlineEnd/g
s/\<MozPaddingStart\>/paddingInlineStart/g
s/\<MozMarginEnd\>/marginInlineEnd/g
s/\<MozMarginStart\>/marginInlineStart/g
s/\<MozBorderEnd\>/borderInlineEnd/g
s/\<MozBorderEndColor\>/borderInlineEndColor/g
s/\<MozBorderEndStyle\>/borderInlineEndStyle/g
s/\<MozBorderEndWidth\>/borderInlineEndWidth/g
s/\<MozBorderStart\>/borderInlineStart/g
s/\<MozBorderStartColor\>/borderInlineStartColor/g
s/\<MozBorderStartStyle\>/borderInlineStartStyle/g
s/\<MozBorderStartWidth\>/borderInlineStartWidth/g

The diffs for the following files:
  layout/style/nsCSSPropAliasList.h
  layout/style/test/property_database.js
  layout/style/test/test_value_computation.html
were then manually removed from the patch.

MozReview-Commit-ID: 8fbYnlZcn9U
2016-05-14 00:00:18 -07:00
Gijs Kruitbosch 40ea68f72f Bug 1270144 - fix message from timed out tests to indicate the following crash is caused by us terminating the browser process, r=ahal,RyanVM
MozReview-Commit-ID: Hyr7xkZdbqc

--HG--
extra : rebase_source : 013339bec54f1ecb0123fa1388dbb350258790df
extra : amend_source : 26e6c904d7031e700560ca32057edba65ad1632d
2016-05-10 22:53:17 +01:00
Carsten "Tomcat" Book 50dfc69f35 merge mozilla-inbound to mozilla-central a=merge 2016-05-13 11:59:20 +02:00
L. David Baron d097996b85 Bug 1111440 - Replace -moz- prefixed logical margin/padding/border properties with their standard versions. r=heycam
This patch was generated by the command:
  find . -name "*.css" -exec sed -i -f mozpropsub {} \;
in the root of a mozilla-central tree, with the file mozpropsub
containing the contents:
s/-moz-padding-end\>/padding-inline-end/g
s/-moz-padding-start\>/padding-inline-start/g
s/-moz-margin-end\>/margin-inline-end/g
s/-moz-margin-start\>/margin-inline-start/g
s/-moz-border-end\>/border-inline-end/g
s/-moz-border-end-color\>/border-inline-end-color/g
s/-moz-border-end-style\>/border-inline-end-style/g
s/-moz-border-end-width\>/border-inline-end-width/g
s/-moz-border-start\>/border-inline-start/g
s/-moz-border-start-color\>/border-inline-start-color/g
s/-moz-border-start-style\>/border-inline-start-style/g
s/-moz-border-start-width\>/border-inline-start-width/g

While I didn't manually review all the changes, I did review the list of
files, and manually reviewed the changes in the files that I thought
were more interesting.

Note that there are a few tests that should be fixed up as well, but
I'll do that in a later patch.

MozReview-Commit-ID: EiQTuuV0MNQ
2016-05-12 22:19:58 -07:00
Masayuki Nakano 3e4ceded8b Bug 1259661 part.9 Rename WidgetMouseEvent::clickCount to WidgetMouseEvent::mClickCount r=smaug
MozReview-Commit-ID: 5tC8UqcfLek

--HG--
extra : rebase_source : a336f9d8676c74804e2c00eebec4f2a30d7a11b3
2016-05-10 23:29:14 +09:00
Masayuki Nakano b2a210c268 Bug 1259661 part.8 Rename WidgetMouseEvent::ignoreRootScrollFrame to WidgetMouseEvent::mIgnoreRootScrollFrame r=smaug
MozReview-Commit-ID: 98G9UMv4qqj

--HG--
extra : rebase_source : e3fed10d5d7b8b3a714e279457192e9f0bc703df
2016-05-10 21:15:05 +09:00
Masayuki Nakano 1663e01f1f Bug 1259661 part.6 Rename WidgetMouseEvent::exit to WidgetMouseEvent::mExitFrom r=smaug
MozReview-Commit-ID: FHUaUOE5eIB

--HG--
extra : rebase_source : f4ff5a5f662054ab161805dc37b9e7b6d6b97d96
2016-05-12 11:42:08 +09:00
Masayuki Nakano 2d6e9e3d48 Bug 1259661 part.5 Rename WidgetMouseEvent::context to WidgetMouseEvent::mContextMenuTrigger r=smaug
MozReview-Commit-ID: GDAAHiyRrhY

--HG--
extra : rebase_source : fe7e3a658192f13f6458f664b35d5937925eca13
2016-05-12 11:39:05 +09:00
Masayuki Nakano 0902859a3a Bug 1259661 part.4 Rename WidgetMouseEvent::reason to WidgetMouseEvent::mReason r=smaug
MozReview-Commit-ID: JaE0S7BIgVF

--HG--
extra : rebase_source : 2d0f80e49dfd09cecc7ab3c85d2496308055d434
2016-05-12 11:36:41 +09:00
Phil Ringnalda c6417cc01e Back out 5 changesets (bug 881832) for failures in browser_html_tooltip-02.js
Backed out changeset 117e8e24d714 (bug 881832)
Backed out changeset 8a0d5df41cfb (bug 881832)
Backed out changeset 6b3c5e185b04 (bug 881832)
Backed out changeset 11106afdcbe7 (bug 881832)
Backed out changeset d711b7c19a43 (bug 881832)
2016-05-11 21:08:08 -07:00
Seth Fowler 0b1e158092 Bug 1259281 - Mark frames NONVISIBLE if their pres shell is inactive or frozen. r=mstange 2016-05-11 19:27:29 -07:00
Seth Fowler 55f8a34cb9 Bug 1269937 - Manage updating visible frames and regions using RAII. r=mstange 2016-05-11 19:27:28 -07:00
Seth Fowler 298a9f9d69 Bug 1269935 - Replace PresShell::DecVisibleCount() with a general map function. r=mstange 2016-05-11 19:27:28 -07:00
Seth Fowler 1678f1d3bb Bug 1269934 - Handle visible frame sets more generically in PresShell. r=mstange 2016-05-11 19:27:27 -07:00
Seth Fowler 40f1aa269b Bug 1269931 - Send visible region updates for pres shells associated with nested views. r=botond 2016-05-11 19:27:27 -07:00
Seth Fowler 180fb0583d Bug 1268348 - Pass the previous visibility state to OnVisibilityChange(). r=mstange 2016-05-11 19:27:27 -07:00
Xidorn Quan 7af86ba4a3 Bug 1270009 - Ensure CSSPROPS_FOR_SHORTHAND_SUBPROPERTIES is type-safe. r=heycam
MozReview-Commit-ID: 3QntFmOGTFR

--HG--
extra : source : d2e238129cb2e0c042cf10e1db55ea8be5ab9b4f
2016-05-12 10:28:56 +10:00
Matt Woodrow 62f3ec6605 Bug 881832 - Fix hover_helper to handle that multiple resizes due to :hover oscillation are now coalesced and don't fire resize events. r=dbaron
--HG--
extra : rebase_source : 806449975140c30fca612d647605b953b3511e00
2016-05-12 12:08:31 +12:00
Mats Palmgren e04a74ec14 Bug 881832 - Make inner document reflow asynchronous. r=tnikkel
--HG--
extra : rebase_source : 9987e19e3318d5bc58ac8214496893041bc1775c
2016-05-12 12:07:45 +12:00
Matt Woodrow a93f3b746c Bug 881832 - When flushing changes made by :hover style, make sure we also flush any pending changes on child documents. r=dbaron
--HG--
extra : rebase_source : 70d8e5f6805809fc8770f37932873b1ade7b0946
2016-05-12 12:06:38 +12:00
Matt Woodrow 175d6d32b1 Bug 881832 - Specify whether the height has changed when calling PresShell::ResizeReflow, since the PresContext size might have already been updated. r=dbaron
--HG--
extra : rebase_source : 05e6b4100b881848c78a5323d5ada4b65cf9963e
2016-05-12 12:06:11 +12:00
Botond Ballo 0c3f8a3e7d Bug 1267438 - Remove the (no longer used) isClipFixed=false annotation. r=mstange
MozReview-Commit-ID: LicG7zFHnX3

--HG--
extra : rebase_source : 1b39fcb34403dfa92f19100b3a59c3f550d52ff1
extra : source : 2bf1247f574319f27f570bb372a71d6a826ab1fb
extra : histedit_source : cc75a6e848225552adb9b3148ca4e2bb87b94f80
2016-05-04 20:07:42 -04:00
Botond Ballo 11c0c8ea42 Bug 1267438 - For fixed backgrounds, use the scrolled clip rather than the isClipFixed=false annotation. r=mstange
MozReview-Commit-ID: 9STe7ypglpP

--HG--
extra : rebase_source : c8ed350bc1eb9a0aecb47b9e81730162deeaaf87
extra : source : 4aa07089ce57c4e66e6f4f4cacc915118ea39429
extra : histedit_source : cdc3f82d57dc231ff148e35ab40c2dd197947ad4
2016-05-06 19:02:26 -04:00
Botond Ballo de687339fd Bug 1267438 - Support adding ancestor mask layers from places other than SetupScrollingMetadata. r=mstange
MozReview-Commit-ID: DwdbSRdEMEc

--HG--
extra : rebase_source : 703ff74d56cecf0546457ff8940265f97a3331cc
extra : source : 1c8e4840f8b40b7e02b9274e446e278e8c907053
extra : histedit_source : 6efd4834b4ec52a6d57a05bdd9529cf39a7669a4
2016-05-06 19:34:16 -04:00
Botond Ballo 0702a1f217 Bug 1267438 - Group ScrollMetadata's optional clip rect and mask layer index into a LayerClip structure. r=mstange
MozReview-Commit-ID: 6W0GZYkioov

--HG--
extra : rebase_source : f99b4c8bd571fd82ddd7e6121caac57b13c380f7
extra : source : b802e4ef209948f307565f2ba750b2fbd340bcb6
extra : histedit_source : 016fe1d78bde06feeb483446fdfb508448573d72
2016-04-29 16:14:21 -04:00
Neil Deakin 405358d4b3 Bug 1101975, handle access keys in content process before menus, r=masayuki 2016-05-11 08:56:42 -04:00
Cameron McCormack 4ca33888b2 Bug 1271869 - Rename NS_STYLE_TEXT_ALIGN_DEFAULT to NS_STYLE_TEXT_ALIGN_START. r=dholbert 2016-05-11 14:03:34 +10:00
Cameron McCormack f9bc9c5fd4 Bug 1271510 - Part 2: Improve nsStyleOutline::CalcDifference to make better use of mActualOutlineWidth. r=dholbert 2016-05-11 14:03:34 +10:00
Cameron McCormack 8e8681cc48 Bug 1271510 - Part 1: Rename nsStyleOutline::mCachedOutlineWidth to mActualOutlineWidth. r=dholbert 2016-05-11 14:03:34 +10:00
Ben Tian 1d3df2ccde Bug 1261499 - Make nsContentUtils::AddScriptRunner return void, r=khuey 2016-05-06 16:09:03 +08:00
Timothy Nikkel bf94e2fc4e Bug 1261752. Part 3. r=mats 2016-05-10 22:58:47 -05:00
Ryan VanderMeulen e6b875b2de Bug 1252405 - Add fuzz to bg-fixed-child-mask.html for Windows e10s D2D. r=sotaro 2016-05-10 22:23:29 -04:00
Boris Zbarsky 08254285a1 Bug 1190641 part 2. Add the sandboxed modals flag to iframe sandboxing. r=ckerschb
Automated testing for this seems rather difficult; I've done manual testing.
2016-05-06 13:56:36 -04:00
Boris Zbarsky b84ac31e14 Bug 1271521. Add a sane way of temporarily disabling dialogs on a window. r=smaug
What we have right now is not very usable, because you can only enable/disable
on the scriptable top of the window, but it's not at all obvious that this is
the case when using the API.
2016-05-10 20:57:29 -04:00
Mason Chang 376575c614 Bug 1267260 - Change CanvasImageCache to lookup cache images based on imgIContainer instead of imgIRequest. r=seth
--HG--
extra : rebase_source : 872ee783a05d0319ed69ce3c494dbf2a3206e26d
2016-05-10 08:00:06 -07:00
Mason Chang a708ef285b Bug 1270640 - Part 2: Reftest fuzzing for skia on OS X due to hinting changes. r=lsalzman
--HG--
extra : rebase_source : f9f041a45eb9833009ab650962cf712b3e8c238a
2016-05-09 12:38:00 -04:00
Peter Van der Beken 5c9bb43e9d Bug 1267186 - Split lookup of WebIDL DOM class names from lookup of DOMCI DOM class names. r=bz.
--HG--
extra : rebase_source : 073ec0857b63df3e2ecef43ef3b982f2e1be2d24
2016-05-09 17:08:31 +02:00
Cameron McCormack 74881f45fe Bug 1271168 - Part 1: Remove nsPresContext arg from nsStyleOutline::RecalcData. r=bholley 2016-05-08 20:22:00 +02:00
Matt Woodrow daea81cf90 Bug 1251644 - Snap object-contain fit if we were going to reduce the size by less than one css pixel. r=seth 2016-04-07 18:51:45 +12:00
Sotaro Ikeda 9eab898cc6 Bug 1252405 - Reduce MaskLayer's memory usage r=mattwoodrow 2016-05-10 03:18:11 -07:00
Hiroyuki Ikezoe 64599f507d Bug 1223658 - Part 1: Drop ExtractComputedValueForTransition. r=birtles,dholbert
MozReview-Commit-ID: I4SMwcv30YL
2016-05-10 18:39:37 +09:00
Robert Longson 4236a89dfc Bug 1260032 - drop support for altGlyph as a tspan. r=cam r=peterv (DOM Peer) 2016-05-10 10:02:20 +01:00
Xidorn Quan f355ff0241 Bug 1269976 part 2 - Add nsCSSPseudoElements::IsEnabled() and make GetPseudoType take CSSEnabledState. r=heycam
MozReview-Commit-ID: K3uFwojy6FZ

--HG--
extra : rebase_source : b4a671f8d97b1d11696c375d9af790ea27ccf0ca
extra : source : d458585bd00bbe6a503bfb0f1072c632b8f0e26f
2016-05-10 18:44:05 +10:00
Xidorn Quan 9a12bfd9db Bug 1269976 part 1 - Move CSSPseudoElements_flags to a static array in nsCSSPseudoElements. r=heycam
MozReview-Commit-ID: HWMuRrakCia

--HG--
extra : rebase_source : 7867601d650dd6dee92e7f7f922a47f0d357d6bd
extra : source : 8b27cbd442385900df9935c82c726167e489cdc8
2016-05-10 18:44:05 +10:00
Xidorn Quan 6a72181520 Bug 1269975 part 4 - Make nsCSSPseudoClasses::GetPseudoType() take CSSEnabledState rather than two bool params. r=heycam
MozReview-Commit-ID: Xh50g9hsH9

--HG--
extra : rebase_source : 7d1a2b5259f8c041c08536293f49b73071b428d7
extra : source : 4d400db27c134019063306fe5b5ef7d02c275af0
2016-05-10 18:44:05 +10:00
Xidorn Quan ab52eeed12 Bug 1269975 part 3 - Make some static arrays in nsCSSPseudoClasses.cpp static members of the class. r=heycam
MozReview-Commit-ID: 4CRtDgiYKnO

--HG--
extra : rebase_source : 8a2f2c0c9e5f89845cb782fb29d9d31837e9b281
extra : source : dda3412d88716504c8a5205fcced7cadbb140c74
2016-05-10 18:44:05 +10:00
Xidorn Quan 7b7ddfc469 Bug 1269975 part 2 - Rename nsCSSParser::PropertyEnabledState() to EnabledState(). r=heycam
MozReview-Commit-ID: 4JESxsOYN4w

--HG--
extra : rebase_source : 14ba06f00d51f51309367b99039d7c5a4c5d8f9a
extra : source : b52bff89c494a5411557e8a2ab7332862736c0b5
2016-05-10 18:44:05 +10:00
Xidorn Quan fa7ba2cb82 Bug 1269975 part 1 - Move nsCSSProps::EnabledState to a top level enum class mozilla::CSSEnabledState. r=heycam
MozReview-Commit-ID: 3KH5cqDFzUI

--HG--
extra : rebase_source : 3c8355f7807982152a16a913b31cbcdd6ef78030
extra : source : 73e89d25a34ca5587f306b848b0b801342f9432f
2016-05-10 18:44:05 +10:00
Botond Ballo 810a495c93 Backed out 12 changesets (bug 1267438) for Android reftest failures on a CLOSED TREE. r=backout
MozReview-Commit-ID: LlibhRhbyVO

--HG--
extra : rebase_source : 6e2e52316ff4ef777b2a63ce5fb6ffc172623e40
2016-05-10 04:27:31 -04:00
Carsten "Tomcat" Book 8b1468cc35 Backed out changeset 51922d1ebfa1 (bug 1251644) for android reftest failures on a CLOSED TREE 2016-05-10 08:51:31 +02:00
Ryan VanderMeulen f514ed495c Backed out 4 changesets (bug 1269975) for bustage.
Backed out changeset a55ecedea260 (bug 1269975)
Backed out changeset 5321545b938c (bug 1269975)
Backed out changeset 7e4a2ee61ef3 (bug 1269975)
Backed out changeset d181f8e7e4c3 (bug 1269975)
2016-05-10 00:08:54 -04:00
Ryan VanderMeulen 3b7fc0b68e No bug - Enable some e10s that pass and add some more annotations to ones that don't. 2016-05-09 17:01:16 -04:00
Ryan VanderMeulen 937594f842 Backed out changesets 4e949692600a and 6f7ecae8e663 (bug 1269976) for bustage. 2016-05-09 23:58:49 -04:00
Xidorn Quan 05db7e1bc8 Bug 1269976 part 2 - Add nsCSSPseudoElements::IsEnabled() and make GetPseudoType take CSSEnabledState. r=heycam
MozReview-Commit-ID: K3uFwojy6FZ

--HG--
extra : source : 9828f687af13af0d4e220ea440692b29cf14dcd0
2016-05-10 13:36:25 +10:00
Xidorn Quan 85ca906802 Bug 1269976 part 1 - Move CSSPseudoElements_flags to a static array in nsCSSPseudoElements. r=heycam
MozReview-Commit-ID: HWMuRrakCia

--HG--
extra : source : fca40d54c5270d09642f329267809fb3f7447c60
2016-05-10 13:36:25 +10:00
Xidorn Quan 438b9dea89 Bug 1269975 part 4 - Make nsCSSPseudoClasses::GetPseudoType() take CSSEnabledState rather than two bool params. r=heycam
MozReview-Commit-ID: Xh50g9hsH9

--HG--
extra : source : 5455ce61582ef7c98a24f587a9212113487db984
2016-05-10 13:36:25 +10:00
Xidorn Quan 9869ec38a9 Bug 1269975 part 3 - Make some static arrays in nsCSSPseudoClasses.cpp static members of the class. r=heycam
MozReview-Commit-ID: 4CRtDgiYKnO

--HG--
extra : source : 3e9cd355be9c476c52984ed789695c3c794d4e49
2016-05-10 13:36:25 +10:00
Xidorn Quan 9e9f009050 Bug 1269975 part 2 - Rename nsCSSParser::PropertyEnabledState() to EnabledState(). r=heycam
MozReview-Commit-ID: 4JESxsOYN4w

--HG--
extra : source : b52bff89c494a5411557e8a2ab7332862736c0b5
2016-05-10 13:36:25 +10:00
Xidorn Quan 30a6d76b26 Bug 1269975 part 1 - Move nsCSSProps::EnabledState to a top level enum class mozilla::CSSEnabledState. r=heycam
MozReview-Commit-ID: 3KH5cqDFzUI

--HG--
extra : source : 73e89d25a34ca5587f306b848b0b801342f9432f
2016-05-10 13:36:25 +10:00
Boris Zbarsky 59de5a530f Bug 1270349 part 5. Use LegacyUnenumerableNamedProperties instead of passing flags to GetSupportedNames to determine whether named props on DOM proxies should be reflected in ownPropertyKeys. r=peterv 2016-05-09 22:25:40 -04:00
Boris Zbarsky 76180fb5a7 Bug 1270349 part 4. Use LegacyUnenumerableNamedProperties instead of NameIsEnumerable() calls to determine whether named props on DOM proxies should be enumerable. r=peterv 2016-05-09 22:25:40 -04:00
Matt Woodrow f74cbd822c Bug 1251644 - Snap object-contain fit if we were going to reduce the size by less than one css pixel. r=seth
--HG--
extra : rebase_source : 1ee6fbfbed92c16f4fb21535455af3737c02d9f8
2016-05-10 13:25:20 +12:00
Matt Woodrow fec269f78c Bug 1270797 - Differentiate between nsDisplayBlendContainers created for mix-blend-mode and background-blend-mode. r=mstange 2016-05-10 12:48:59 +12:00
Matt Woodrow 6811eb7ee7 Bug 1271058 - Use Layers effective opacity for determining if it is opaque. r=mstange 2016-05-10 12:42:57 +12:00
Botond Ballo 89c6c3b097 Bug 1267438 - Remove the (no longer used) isClipFixed=false annotation. r=mstange
MozReview-Commit-ID: LicG7zFHnX3

--HG--
extra : rebase_source : 0e4d3a86f2fbc4b88126a346c938c8f9fd67bf4b
extra : histedit_source : 0b785c0881d1bf4ed5f7c991574d8d7033b71bfc
2016-05-04 20:07:42 -04:00
Botond Ballo c0f4837a5f Bug 1267438 - For fixed backgrounds, use the scrolled clip rather than the isClipFixed=false annotation. r=mstange
MozReview-Commit-ID: 9STe7ypglpP

--HG--
extra : rebase_source : 9324a8487cc52ab66b0ab9bc510e8261288381c9
extra : histedit_source : f945314ddfbe35ba5615ec5a417b967ade448a93
2016-05-06 19:02:26 -04:00
Botond Ballo a5f375a42f Bug 1267438 - Support adding ancestor mask layers from places other than SetupScrollingMetadata. r=mstange
MozReview-Commit-ID: DwdbSRdEMEc

--HG--
extra : rebase_source : 07cfbb871a15404d7d4766aea0b8f8387e42f67b
extra : histedit_source : 66dc2ae14acf2ae399e810785ccd7ee51550445d
2016-05-06 19:34:16 -04:00
Botond Ballo 8699c362f8 Bug 1267438 - Group ScrollMetadata's optional clip rect and mask layer index into a LayerClip structure. r=mstange
MozReview-Commit-ID: 6W0GZYkioov

--HG--
extra : rebase_source : c46d0d27145df9b268e70ab5aed67c8c64df9433
extra : histedit_source : 016fe1d78bde06feeb483446fdfb508448573d72
2016-04-29 16:14:21 -04:00
L. David Baron d7641eeef2 Bug 1271015 patch 2 - Add tests for things not happening (optimizations) in response to media query changes. r=heycam
This adds a few basic tests for expectations of when we do and don't
restyle, construct frames, and reflow in response to changes of media
queries.  They don't give us a lot of coverage, but often the tiny bits
of coverage at the beginning are the most useful.

In general, I'd like us to have more tests for specific optimizations,
i.e., for specific things that we expect not to happen in certain cases.
The elementsRestyled, framesConstructed, and framesReflowed getters on
DOMWindowUtils are a good way to make such measurements for a number of
things in layout; that's why I added them.

(Inspired a bit by bug 1259641.)

MozReview-Commit-ID: JFtlPO1eyoD
2016-05-09 11:26:35 -07:00
L. David Baron 91233fe6f4 Bug 1271015 patch 1 - Add mechanism for testing the number of elements restyled. r=heycam
This is useful for writing tests that test particular optimizations,
such as that a particular operation doesn't cause restyles.  It sits
next to similar counters for frames constructed and frames reflowed.

I also snuck in a preference for the less-expensive mPresContext over
the more expensive mFrame->PresContext() (which dereferences multiple
pointers).

(Originally written for work I planned to be part of bug 1189598.)

MozReview-Commit-ID: 8PN7nwLJG9r
2016-05-09 11:26:35 -07:00
CJKu b11e2e12ee Bug 1270795 - Crash test; r=jfkthame
MozReview-Commit-ID: CPnOAyuc6hp

--HG--
extra : rebase_source : 2586233eb9d8e931260510efbff94ae351247308
2016-05-07 00:47:13 +08:00
CJKu a4e3f835fa bug 1270795 - do not generate any background items in glyph path generating process; r=jfkthame
MozReview-Commit-ID: GbhxyY93Vur

--HG--
extra : rebase_source : 2eb309017fe2dcc33424de81eecdf4405cd38334
2016-05-07 00:47:01 +08:00
Andreas Tolfsen 90edca9757 Bug 1123506 - Update references to __webDriverArguments; r=automatedtester
__marionetteParams was renamed to __webDriverArguments.

MozReview-Commit-ID: 9t1skl5MESf
2016-05-09 16:08:27 +01:00
Carsten "Tomcat" Book 98f0a3271a Backed out changeset d385df62c0e7 (bug 1267186) for hazard failures 2016-05-09 13:40:01 +02:00
Peter Van der Beken b6c1e074c2 Bug 1267186 - Split lookup of WebIDL DOM class names from lookup of DOMCI DOM class names. r=bz.
--HG--
extra : rebase_source : 324cf124544c0ffe2ad2ceccbed397d5069d1435
2016-03-09 15:48:12 +01:00
L. David Baron 5aafe1d979 Bug 567283 patch 4 - Support #rgba and #rrggbbaa colors in CSS. r=xidorn
This adds support for #rgba and #rrggbbaa colors to CSS.  This feature
is specified in https://drafts.csswg.org/css-color-4/#hex-notation .

This adds new types to nsCSSValue so that we can serialize the syntax
that was specified, as we do for other distinctions in how colors are
specified.

It does not change the behavior of the hashless color quirk, which
continues to support only 3 and 6 digit colors as specified in
https://quirks.spec.whatwg.org/#the-hashless-hex-color-quirk (step 4).

This changes property_database.js to remove various uses of 4 and 8
digit colors as invalid values.  It then adds them in slightly fewer
places as valid values, but more thoroughly testing both initial and
non-initial values on 'color'.

It marks two canvas tests explicitly testing this feature as no longer
known to fail by removing their .ini files.

Finally, it adjusts the web platform test testing the hashless color
quirk to no longer treat 4 and 8 digit colors with hashes as invalid
values.  Removing the relevant test items seems like the right thing
since they're in a section where 3 and 6 digit colors were skipped but
other lengths were tested.  Modifying this imported test is OK since:
  <jgraham> dbaron: Commit the change you want to m-c, it is
    (semi-)automatically upstreamed every so often (typically
    about once a week)

MozReview-Commit-ID: IFq4HxaRkil
2016-05-08 22:16:42 -07:00
L. David Baron 9ee89fe42f Bug 567283 patch 2 - Rename NS_HexToRGB to NS_HexToRGBA and add parameter saying whether 4 and 8 digit colors are allowed. r=xidorn
This patch tells all callers to use the existing behavior, so it is
intended not to change behavior.  Callers that will be modified in later
patches are marked with "FIXME" comments that will be removed in those
later patches (patches 3 and 4).

MozReview-Commit-ID: FaLryfxaeHv
2016-05-08 22:16:41 -07:00
Hiroyuki Ikezoe 4030f03992 Bug 1258904 - Part 4: Set performance warning for small content. r=birtles
MozReview-Commit-ID: 7GyGkPog1Bo

--HG--
extra : rebase_source : c296a35c433af547fe4dd800ec8c8abd3bdba339
2016-05-07 17:37:58 +09:00
Hiroyuki Ikezoe 95f4a2736f Bug 1258904 - Part 2: nsDisplay(Opacity|Transform)::GetLayerState should return LAYER_ACTIVE_FORCE if they have async animations to avoid flattening the layers. r=mattwoodrow
MozReview-Commit-ID: 16QtFJBX97W

--HG--
extra : rebase_source : 3d53df451a5695dcb5967dc3e9723efef36af556
2016-05-07 17:37:57 +09:00
Hiroyuki Ikezoe bce5aea131 Bug 1258904 - Part 1: Don't create layers for compositor animations if the layer size is less than 16x16. r=mattwoodrow
MozReview-Commit-ID: Kb26GeYYr9D

--HG--
extra : rebase_source : ea38aedf3eeb329d86fb1387e8b19ed32ae69ba7
2016-05-07 17:37:57 +09:00
Gregory Szorc e13542b72f Bug 1271035 - Disable Places during reftests, preventing 50 GB of I/O; r=dholbert
It was a cold Friday night in San Francisco. Earlier in the day, I
informed Chris AtLee that I was going to start focusing on improving
the efficiency of Firefox automation and asked him where the biggest
capacity issues were. He said "we're hurting most on Windows tests."

As I was casually drinking a barleywine (note to reader: barleywines
are serious beers - there's nothing casual about them), I found myself
tediously clicking through Treeherder looking at logs for Windows jobs,
looking for patterns and other oddities. As I was clicking through,
something stood out to me: the sheer number of reftest jobs. I
recalled a random project I started a few years ago. Its aim was to
analyze buildbot job metadata so we could better understand where time
was spent in automation. I had mostly written off the side project as
a failure and a near complete waste of my time. Not even a stray
random thought of this project had entered my mind in the past year.
But clicking through Treeherder after a few glasses of barleywine
somehow reminded me of one of the few useful findings of that project:
reftest jobs consumed a seemingly disproportiate amount of machine time,
something like 35 or 40% IIRC of the time spent on all jobs.

Now, this finding was several years ago and almost certainly no longer
relevant. But, again, I had a few glasses of barleywine in me and was
bothered by the amount of reftest jobs and their duration, so I thought
"hey, why don't I run reftests and see why they take so long." So I
built Firefox on Windows - the platform Chris AtLee said we're "hurting
most on."

I decided to start my very casual profiling session by recording a
`mach reftest` run using Sysinternals Process Monitor. To my surprise,
it yielded a very obvious and unexpected result: the Places SQLite
database was incurring a lot of I/O. On my i7-6700K Windows 10 desktop
with a high performance SSD, `mach reftest` yielded the following:

File Time  #Events  #Reads   #Writes  RBytes        WBytes          Path
198s       980,872  243,270  669,231  7,971,471,360 20,667,084,080  places.sqlite-wal
165s       645,853  222,407  367,775  7,287,701,820 14.071,529,472  places.sqlite
  2s       377,121        1        0         32,768              0  places.sqlite-shm

The Places SQLite database accounts for 2,003,846 of the total of
3,547,527 system calls (56.49%) recorded by procmon during `mach
reftest` execution. This represents a staggering 49,997,786,732 of the
50,307,660,589 (99.38%) bytes of I/O recorded! Yes, that's 50 GB.

I reckon the reason the Places database accumulates so much I/O load
during reftests is because the reftest suite essentially loads thousands
of pages as quickly as possible. This effectively performs a stress
test against the Places history recording service.

As effective as reftests are at stress-testing Places, it adds no value
to reftests because reftests are testing the layout features, not the
performance of history recording. So these 2M system calls and 50 GB
of I/O are overhead.

This commit disables Places when executing reftests and prevents
the overhead.

After this commit, `mach reftest` has significantly reduced interaction
with the Places SQLite database:

File Time  #Events  #Reads   #Writes  RBytes        WBytes         Path
0.09s          502     138       302     4,521,984      8,961,528  places.sqlite-wal
0.07s          254      20       140       524,604      8,126,464  places.sqlite
0.01s        3,289       1         0        32,768              0  places.sqlite-shm

Of the 948,033 system calls recorded with this change (26.7% of
original), 691,322 were related to I/O. The Places SQLite database
only consumed ~22MB of I/O, <0.01% of original. It's worth noting that
~half of the remaining I/O system calls are related to reftest.log,
which now accounts for the largest percentage of write I/O (only
~53 MB, however). It's worth noting that reftest.log appears to be
using unbuffered writes and is requiring an excessive amount of
system calls for writing. But that's for another bug and commit.

In terms of wall time, the drastic I/O reduction during `mach reftest`
appears to have minimal impact on my machine: maybe 30s shaved from a
~900s execution, or ~3%. But my machine with its modern SSD doesn't
struggle with I/O.

In automation, it is a different story.

I pushed this change to Try along with the base revision and triggered
4 runs of most reftest jobs. The runtime improvements in automation
are impressive. Here are the fastest reported times for various jobs:

Job                     Before      After     Delta
Linux Opt R1               31m        34m       +3m
Linux Opt R2               43m        35m       -8m
Linux Opt Ru1              40m        34m       -6m
Linux Opt Ru2              43m        37m       -6m
Linux Opt R E10s           89m        72m      -17m
Linux Debug R1             52m        40m      -12m
Linux Debug R2             49m        42m       -7m
Linux Debug R3             60m        51m       -9m
Linux Debug R4             42m        37m       -5m
Linux Debug R1 E10s        84m        72m      -12m
Linux Debug R2 E10s        97m        85m      -12m
Linux64 Opt R1             35m        24m      -11m
Linux64 Opt R2             37m        26m      -11m
Linux64 Opt Ru1            32m        29m       -3m
Linux64 Opt Ru2            37m        26m      -12m
Linux64 Opt TC R1          12m        10m       -2m
Linux64 Opt TC R2          10m         7m       -3m
Linux64 Opt TC R3          11m         9m       -2m
Linux64 Opt TC R4          11m         9m       -2m
Linux64 Opt TC R5          13m        11m       -2m
Linux64 Opt TC R6          11m         9m       -2m
Linux64 Opt TC R7           9m         8m       -1m
Linux64 Opt TC R8          11m        10m       -1m
Linux64 Opt TC Ru1         30m        25m       -5m
Linux64 Opt TC Ru2         36m        27m      -11m
OS X 10.10 Opt             31m        27m       -4m
OS X 10.10 Opt E10s        26m        25m       -1m
OS X 10.10 Debug           68m        55m      -13m
Win7 Opt R                 30m        28m       -2m
Win7 Opt Ru                28m        26m       -2m
Win7 Opt R E10S            29m        27m       -2m
Win7 Debug R               85m        76m       -9m
Win7 Debug R E10S          75m        65m      -10m
Win8 x64 Opt R             29m        26m       -3m
Win8 x64 Opt Ru            27m        25m       -2m
Win8 x64 Debug R           90m        71m      -19m
Android 4.3 API15 Opt R1   89m        71m      -18m
Android 4.3 API15 Opt R2   78m        64m      -14m
Android 4.3 API15 Opt R3   75m        64m      -11m
Android 4.3 API15 Opt R4   74m        68m       -6m
Android 4.3 API15 Opt R5   75m        69m       -6m
Android 4.3 API15 Opt R6   91m        86m       -5m
Android 4.3 API15 Opt R7   87m        66m      -21m
Android 4.3 API15 Opt R8   87m        82m       -5m
Android 4.3 API15 Opt R9   80m        66m      -14m
Android 4.3 API15 Opt R10  80m        67m      -13m
Android 4.3 API15 Opt R11  73m        66m       -7m
Android 4.3 API15 Opt R12 105m        91m      -14m
Android 4.3 API15 Opt R13  72m        59m      -13m
Android 4.3 API15 Opt R14  82m        61m      -21m
Android 4.3 API15 Opt R15  73m        62m      -11m
Android 4.3 API15 Opt R16  79m        78m       -1m

The savings total 6+ *hours* or ~15% when running all reftests. I'd
say this isn't bad for a one-line code change!

MozReview-Commit-ID: H1LkACgSpVn

--HG--
extra : rebase_source : 891a5ce8e1f6c3d70fc646f116c2f49f897ad735
2016-05-07 02:53:14 -07:00
Bobby Holley 21a222e332 Bug 1270515 - Bonus fix: Factor out unnecessary Reset calls during nsStyleCoord initialization. r=dbaron
The previous patches prevent us from generating temporaries at the affected callsites,
but this could still have benefits in other places.
2016-05-06 16:11:10 -07:00
Bobby Holley 23b53c3cad Bug 1270515 - Avoid synthesizing temporary nsStyleCoords in nsStyleSides::ToLength. r=dbaron 2016-05-06 16:11:10 -07:00
Bobby Holley e7fab38387 Bug 1270515 - Avoid synthesizing temporary nsStyleCoords in nsStyleSides::ConvertsToLength. r=dbaron 2016-05-06 16:11:10 -07:00
Cameron McCormack 53c4d9df37 Bug 1270956 - Stub out some ServoRestyleManager methods. r=bholley 2016-05-06 14:19:57 -07:00
Bobby Holley bedd733071 Bug 1270956 - Convert CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE assertion into a warning. r=me 2016-05-06 14:19:57 -07:00
Cameron McCormack 1bc38c297a Bug 1268759 - Make ServoStyleSet handle anonymous content incorrectly but without crashing. r=bholley 2016-05-06 14:19:57 -07:00
Wes Kocher 462fc252b3 Backed out 3 changesets (bug 1190641) for failures in test_dialogArguments.html and test_iframe_sandbox_modal.html
Backed out changeset ef1d1a433415 (bug 1190641)
Backed out changeset b037f2642082 (bug 1190641)
Backed out changeset 733eacd2ed13 (bug 1190641)

--HG--
extra : rebase_source : 218cf6d49e6f71742da7c69cf42b0a6a355e1863
2016-05-06 12:54:16 -07:00
Markus Stange e475933648 Bug 1266161 - Make DrawForcedBackgroundColor fill the entire draw region, not just the layer's visible region. r=mattwoodrow
We need to do this because the entire draw region will be added to the layer's
valid region after drawing. If there are parts in the valid region that are not
in the visible region, we still need those parts to have valid content, because
in a later frame the visible region may grow to include those parts.

MozReview-Commit-ID: 6zESYbPAmrx

--HG--
extra : rebase_source : 24078d1ff802e53a2eb8895d2c5ffd1fe9507f04
2016-05-06 13:53:56 -04:00
Boris Zbarsky f3092cff84 Bug 1190641 part 2. Add the sandboxed modals flag to iframe sandboxing. r=ckerschb
Automated testing for this seems rather difficult; I've done manual testing.
2016-05-06 13:56:36 -04:00
Kartikaya Gupta ec6390b365 Bug 1264592 - When doing thumbnails for fennec, don't mark frames as painted because it can interfere with tests. r=mstange
MozReview-Commit-ID: KOhZZV3aSLv

--HG--
extra : rebase_source : 80e39ca63cf3b3c54b6adcc8bac23bcd148467f9
2016-05-06 10:31:11 -04:00
Sebastian Hengst faffe478f6 Backed out changeset f9d3ea58c195 (bug 1267186) for static bustage in WebIDLGlobalNameHash.cpp. r=backout 2016-05-06 18:11:03 +02:00
Peter Van der Beken 827ee394ba Bug 1267186 - Split lookup of WebIDL DOM class names from lookup of DOMCI DOM class names. r=bz.
--HG--
extra : rebase_source : 5578057666186f58e434767af84fbfeac0cbdc3c
2016-03-09 15:48:12 +01:00
Nathan Froyd efbd9a9b65 Bug 1263197 - part 2 - remove temporary variable in nsPresContext's constructor; r=dholbert
In the upcoming patch to disable logging, we're going to conditionally
turn MOZ_LOG_TEST into a constant false.  But for this instance of
MOZ_LOG_TEST in nsPresContext, turning it into a constant means that
|log| becomes unused.  Since |log| isn't used after this point, let's
move the |gfxPlatform::GetLog| call into the MOZ_LOG_TEST call, removing
the temporary variable, and making the compiler happy.
2016-05-06 09:11:17 -04:00
Cameron McCormack 0e7490d676 Bug 1270741 - Correctly resolve styles for non-elements. r=bholley 2016-05-06 00:32:00 +02:00
Astley Chen cfc3509d01 Bug 859301 : Part 4 - add w3c-css test cases. r=dbaron
MozReview-Commit-ID: ETP2Welagwc

--HG--
extra : rebase_source : 899250d3f3904fd5f3c0cc76ecc06ed41d860e0e
2016-05-06 12:01:46 +08:00
Astley Chen 844639b0ad Bug 859301 : Part 3 - unprefix test cases. r=dbaron
MozReview-Commit-ID: 6KvILd31r9Y

--HG--
extra : rebase_source : 68c820453ca2d27fda63b645cdab65dddfa90c31
2016-05-04 13:31:24 +08:00
Astley Chen d626fe0c49 bug 859301 : Part 2 - unprefix internal css files. r=dbaron
MozReview-Commit-ID: CRyp3zQxayh

--HG--
extra : rebase_source : 6b4a5d3e5292a1bdeceab37c5067c78fac69834a
2016-05-04 13:31:24 +08:00
Astley Chen b21f79d943 Bug 859301 - Part 1 - unprefix :dir. r=dbaron
MozReview-Commit-ID: EyKKRrhARI0

--HG--
extra : rebase_source : 11566e76b725d1d8ad22aed407f841c0f7a096ba
2016-05-05 18:10:57 +08:00
Bobby Holley b852e0988e Bug 1269933 - Add hooks for Servo to manipulate list-style-type. r=xidorn 2016-05-06 00:09:18 -07:00
Bobby Holley 2dfd23a1ac Bug 1269933 - Teach CounterStyles their name and remove the string member from the style structs. r=xidorn 2016-05-06 00:09:18 -07:00
Bobby Holley 7c027eb69c Bug 1269933 - Pass the builtin counter manager corresponding to the appropriate default when initializing style structs for servo. r=xidorn 2016-05-06 00:09:18 -07:00
Makoto Kato 833bf3893a Bug 1261012 - Check whether nsIObserverService is nullptr. r=smaug
During shutdown, mozilla::services::GetObserverServie will return nullptr.  So we should check it.  Add another nullptr check

MozReview-Commit-ID: 9xBbltRatJF

--HG--
extra : rebase_source : a859de09f30eeba344c317aec4cf4ed2cce8da2b
extra : histedit_source : 325aba902eff367d046807e9be3a73ad3100ee67
2016-04-27 19:10:11 +09:00
L. David Baron 608d04db2f Bug 1270626 - Don't leave an unhandled ErrorResult and assert when media query listeners throw exceptions. r=bzbarsky
I'm acting under the assumption that this is what's closest to what the
code does now, except without asserting in ~ErrorResult.  It also seems
closest to what event listeners will do, both based on examining code
(EventListenerManager::HandleEventSubType, which I'm hoping is the right
code to look at, calls StealNSResult, and then stores it in a member
that's ignored by most callers) and based on testing (for both click
events, and for media query listeners with this patch, the exception
gets reported to the console as an unhandled exception).  That said, I'm
not particularly well versed in the current error handling rules so I
may well be off here.

This code should presumably go away when we change this code to use
EventListeners in bug 1265622, so I don't think there's any spec that
covers this.

Without the patch, the mochitest hits the fatal assertion (after
reporting hitting the expected uncaught exception).  With the
patch the test passes.  (Tested locally.)

MozReview-Commit-ID: 5kxp6jzGzX8

--HG--
extra : transplant_source : n%B4%AE%99D%FB%B9NM%C0%A2%F0%D4%B7%8C%E7%DE4E%60
2016-05-05 21:33:47 -07:00
Cameron McCormack e0e0348a4f Bug 1270374 - Create style context with correct pseudo tag in ServoStyleSet::ResolveAnonymousBoxStyle. r=bholley 2016-05-04 22:33:00 -04:00
Ben Tian 88d03021fb Bug 1263116 - Stop throwing for DOMTokenList's.contains() when using empty string or ASCII whitespace, r=baku 2016-05-05 18:07:22 +08:00
Matt Woodrow 23ad434a74 Bug 1265237 - Clear clipping for out-of-flow frames that we are descending into but haven't stored explicit clip data for. r=mstange 2016-05-06 10:53:24 +12:00
Mike Shal 16febf4398 Bug 1269787 - Use _pretty_path instead of full path for inputs; r=glandium
We use _pretty_path when specifying the targets of generated files, so
we need to use _pretty_path for the inputs as well. Otherwise make won't
know that they refer to the same file, and result in "No rule to make
target" errors.


MozReview-Commit-ID: JTdLFbkX1J0
2016-04-29 13:43:25 -04:00
Emilio Cobos Álvarez b479a2256d Bug 1270305: stylo: Replace nsTArray to aid rust binding generation, r=bholley 2016-05-05 19:32:29 +02:00
Ryan VanderMeulen 44fcbd8a7d Bug 1266943 - Add a bit more Windows fuzz. 2016-05-05 09:33:02 -04:00
Kyle Huey 941ab1f522 Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-05-05 01:45:00 -07:00
Bobby Holley 60bd9ae61b Bug 1269901 - Remove mCachedMargin. r=dbaron 2016-05-04 16:56:17 -07:00
Bobby Holley f2c9cdf0d8 Bug 1269901 - Remove mCachedPadding. r=dbaron 2016-05-04 16:56:17 -07:00
Bobby Holley 6e6e20ba47 Bug 1269901 - Refactor Helpers. r=dbaron 2016-05-04 16:56:17 -07:00
Bobby Holley a8015a6b72 Bug 1269936 - Introduce and call a runtime-wide servo initialization hook. r=heycam 2016-05-04 15:34:21 -07:00
Timothy Nikkel bab76c33fa Bug 1265577. r=mats 2016-05-04 16:12:48 -05:00
Markus Stange ebfab32e37 Bug 1227327 - Add tests. r=mattwoodrow
MozReview-Commit-ID: 6BIJJiCUedo

--HG--
extra : rebase_source : c33a071f4117c3e2e4b244ba9bec0c281413a70c
2016-05-04 14:11:05 -04:00
Markus Stange aaac8ed991 Bug 1227327 - Use regular background drawing for XUL groupbox frames. r=mattwoodrow
MozReview-Commit-ID: 7S1gdZJgBCS

--HG--
extra : rebase_source : 3576ab2662eef6ddca3e430c305c3eda18200c71
2016-04-27 17:45:21 -04:00
Markus Stange dcc87ebff1 Bug 1227327 - Make fieldset frames build nsDisplayBackgroundImage items. r=mattwoodrow
Fieldsets break up their border so we need to disable the willPaintBorder optimization for them.

MozReview-Commit-ID: 2zmlxVRLIqe
***

--HG--
extra : rebase_source : 0735ea7651803769721d109d52ca83cddad65aa7
2016-04-28 14:09:06 -04:00
Markus Stange cd46c2a7e9 Bug 1227327 - Use regular background image display items for painting button backgrounds. r=mattwoodrow
This has multiple benefits:
 - It makes DLBI detection of background-position changes work for buttons.
 - It makes background-attachment: fixed work for button backgrounds.
 - It allows the willPaintBorder optimization to be used for button background
   drawing, which reduces the background clip to not overlap with opaque borders.

The willPaintBorder optimization requires a change to the reftest 611574-2.html.
This reftest compares backgrounds to inset box shadows. Box shadows those don't
have a willPaintBorder optimization, so we'd get different results due to the
borders - inset box shadows will bleed through the rounded corner anti-aliasing
of the border, backgrounds won't any more. So we just turn off button borders
and cover the outer edges of the borders with an outline in that reftest.

MozReview-Commit-ID: Lvx2p5szjw7
***
Cover the antialiasing in 611574-2.html with a black outline.

MozReview-Commit-ID: IHC3B7Eq72j

--HG--
extra : rebase_source : 71ae376f482d14e55820879f28b37056e1b857bf
2016-05-04 14:12:23 -04:00
Markus Stange 7a09990486 Bug 1227327 - Allow specifying a background rect for background dislay items. r=mattwoodrow
MozReview-Commit-ID: 5X6FJYRCnWt

--HG--
extra : rebase_source : 990d5724e70858525ebd5732e184b96e1c75d7f3
2016-05-04 14:14:23 -04:00
Markus Stange 0aa0fa1e2b Bug 1227327 - Invalidate table parts and MathML frames when background-position changes on them. r=dbaron
Theoretically we should do the same for nsTreeBodyFrame, but that frame type is
harder to detect and I'm not sure it's worth adding code to support updating
background-position on XUL trees.

MozReview-Commit-ID: 8HPT53MX6bO

--HG--
extra : rebase_source : 1e84e83616832debe8f6da394630a5a2e014e7df
2016-04-28 13:01:22 -04:00
Ryan VanderMeulen 722094b7a5 Bug 1266943 - Add a bit more Linux and Windows fuzz to the 456219-1* testcases. rs=me
--HG--
extra : rebase_source : 92d07cf220eafeb44e445bf2f1b91c645858ce4c
2016-05-04 13:37:00 -04:00
Daniel Holbert fd53b731b2 Bug 1269992: In mochitest test_clip_path_equals (for CSS transitions), don't try to pop a reference box off of the expected value when it doesn't have one. r=jwatt
MozReview-Commit-ID: K0o1y40o6Pe
2016-05-04 08:57:04 -07:00
Neil Deakin 190dbc551b Bug 1251634, release mouse capture when a context menu is opened, r=tn 2016-05-04 10:08:01 -04:00
Neil Deakin 5d2aea87d5 Bug 1266963, stop propagation before other steps, r=masayuki 2016-05-04 10:07:45 -04:00
Andi-Bogdan Postelnicu 1302887134 Bug 1267187 - added assert before doing modulo with the second argument being |num|. r=birtles
MozReview-Commit-ID: eUZeAbudib

--HG--
extra : rebase_source : 870a599119bcc7ecfef7ca89683ec61f41d6016c
2016-04-25 13:47:21 +03:00
Xidorn Quan 67093c6823 Bug 1268347 - Forbid break opportunities inside horizontal-in-vertical. r=jfkthame
MozReview-Commit-ID: K8ao3D0IE93

--HG--
extra : rebase_source : dbdd0ec230181468cacd6aec83dcf12275bd2815
2016-05-03 14:39:24 +10:00
Cameron McCormack (:heycam) e78be5f934 Bug 1270001 - Rename NS_STYLE_TEXT_TRANSFORM_FULLWIDTH to use underscores consistently. r=xidorn
This renaming helps with auto-generated code in stylo.

--HG--
extra : rebase_source : d11cf8190f7aa4a73bf63c55afc97043d7c9c159
2016-05-03 23:32:00 +02:00
Ting-Yu Lin c68250d06d Bug 1267524 followup - Revert list-initialization for array in Part 19. r=me
This revert the new C++11 syntax used in Part 19. which should fix build
errors for msvc 2013.
https://msdn.microsoft.com/en-us/library/9f53ks1w.aspx

--HG--
extra : amend_source : 95d5565f549358d26ffa7136fb4f8a1be1c66050
2016-05-04 13:35:21 +08:00
Xidorn Quan 25d88bda72 Bug 1268749 part 3 - Hide :fullscreen pseudo-class from content when unprefixed API is disabled. r=heycam
MozReview-Commit-ID: 78hlOGCDKn0

--HG--
extra : rebase_source : 3fbdf8fcde0064316b821d1ffde98e9e3f8185a1
2016-05-02 14:24:38 +10:00
Xidorn Quan 89008c7833 Bug 1268749 part 2 - Make pseudo-classes able to present conditionally like properties. r=heycam
MozReview-Commit-ID: 6D3UPQGrS71

--HG--
extra : rebase_source : e059616e5ec853c17614d119d58d3aeb5cb6c7af
2016-05-04 15:09:36 +10:00
Phil Ringnalda f74761a568 Back out 6 changesets (bug 1227327) for Android reftest failures in 942672-1.html, background-position-2b.html and background-position-2c.html
CLOSED TREE

Backed out changeset c9b0ba301426 (bug 1227327)
Backed out changeset c857ad1fa01c (bug 1227327)
Backed out changeset 4ba58cd94310 (bug 1227327)
Backed out changeset 30e394faeb23 (bug 1227327)
Backed out changeset ce7fd04cc749 (bug 1227327)
Backed out changeset e0fe45294034 (bug 1227327)
2016-05-03 21:49:07 -07:00
Phil Ringnalda 6d562f3981 Back out 23bf1e82cc34 (bug 1265237) for reftest failures
CLOSED TREE
2016-05-03 19:24:33 -07:00
Matt Woodrow 071273aa13 Bug 1265237 - Clear clipping for out-of-flow frames that we are descending into but haven't stored explicit clip data for. r=mstange
--HG--
extra : rebase_source : e9f88b3e469a8afdec5c9636751a278a70ae7102
2016-05-04 12:58:01 +12:00
Matt Woodrow 76c8d4c781 Bug 1269184 - Make sure we create an nsDisplayWrapList around nsDisplayPerspective items so that the z-index of the perspective frame gets taken into account. r=mstange
--HG--
extra : rebase_source : 735c30ec166eeab19e26a78864e7626c9f00790a
2016-05-04 12:56:50 +12:00
Matt Woodrow 47cde44daf Bug 1243610 - Refactor UpdateOverflow to separate out local overflow from that contributed by descendants. r=dbaron 2016-05-04 12:27:43 +12:00
Matt Woodrow 7980b88d54 Bug 1243614 - Implement UpdateOverflow for nsMathMLContainerFrame. r=roc 2016-05-04 12:26:42 +12:00
Kartikaya Gupta 65f5105de7 Bug 1269539 - Ensure that the scroll position is restored properly on reloading a page which loads incrementally. r=tnikkel
MozReview-Commit-ID: 1qVA5yU7a7g

--HG--
extra : rebase_source : 032336d7552ece6dbeafa4eb07eceb7ed2a096ba
2016-05-03 10:40:20 -04:00
CJKu 184c33c9c4 Bug 1265715 - followup - Correct dirty region; r=me
MozReview-Commit-ID: 5iI8Cg5wry6
2016-05-04 03:55:26 +08:00
Markus Stange 286449b632 Bug 1227327 - Add tests. r=mattwoodrow
MozReview-Commit-ID: 6BIJJiCUedo

--HG--
extra : rebase_source : e2edbfd148b6a8cff33dd2067a9e3a246a66991f
2016-04-28 14:41:25 -04:00
Markus Stange a1808bf5af Bug 1227327 - Use regular background drawing for XUL groupbox frames. r=mattwoodrow
MozReview-Commit-ID: 7S1gdZJgBCS

--HG--
extra : rebase_source : dfebe31debd02bee286e1db851fca231dfcfc14c
2016-04-27 17:45:21 -04:00
Markus Stange 4fdd26bfa9 Bug 1227327 - Make fieldset frames build nsDisplayBackgroundImage items. r=mattwoodrow
Fieldsets break up their border so we need to disable the willPaintBorder optimization for them.

MozReview-Commit-ID: 2zmlxVRLIqe
***

--HG--
extra : rebase_source : 5ae32cc1b9b7eadf4b28f6b64f0cf26f50f761f7
2016-04-28 14:09:06 -04:00
Markus Stange bb440eec66 Bug 1227327 - Use regular background image display items for painting button backgrounds. r=mattwoodrow
This has multiple benefits:
 - It makes DLBI detection of background-position changes work for buttons.
 - It makes background-attachment: fixed work for button backgrounds.
 - It allows the willPaintBorder optimization to be used for button background
   drawing, which reduces the background clip to not overlap with opaque borders.

The willPaintBorder optimization requires a change to the reftest 611574-2.html.
This reftest compares backgrounds to inset box shadows. Box shadows those don't
have a willPaintBorder optimization, so we'd get different results due to the
borders - inset box shadows will bleed through the rounded corner anti-aliasing
of the border, backgrounds won't any more. So we just turn off button borders
and cover the outer edges of the borders with an outline in that reftest.

MozReview-Commit-ID: Lvx2p5szjw7
***
Cover the antialiasing in 611574-2.html with a black outline.

MozReview-Commit-ID: IHC3B7Eq72j

--HG--
extra : rebase_source : fbd7d3152b819232adfc97dd9df1481a582925c5
2016-04-29 13:16:23 -04:00
Markus Stange 6231d39a7c Bug 1227327 - Allow specifying a background rect for background dislay items. r=mattwoodrow
MozReview-Commit-ID: 5X6FJYRCnWt

--HG--
extra : rebase_source : da85ec302345a64424e08693f3909c185364d913
2016-05-03 15:16:11 -04:00
Markus Stange ea8e203822 Bug 1227327 - Invalidate table parts and MathML frames when background-position changes on them. r=dbaron
Theoretically we should do the same for nsTreeBodyFrame, but that frame type is
harder to detect and I'm not sure it's worth adding code to support updating
background-position on XUL trees.

MozReview-Commit-ID: 8HPT53MX6bO

--HG--
extra : rebase_source : 1e84e83616832debe8f6da394630a5a2e014e7df
2016-04-28 13:01:22 -04:00
Brian Birtles 16e027ce5c Bug 1268858 part 3 - Make CSS Animations store computed values; r=heycam
This allows us to represent values specified using CSS variable references in
a predictable fashion.

MozReview-Commit-ID: D9KUUhCxPW4
2016-05-13 11:56:10 +09:00
Markus Stange 8ece268559 Bug 1263192 - Clip scrolled contents to the display port. r=mattwoodrow
MozReview-Commit-ID: 4Uut8OAmCAd

--HG--
extra : rebase_source : 6b32f018f671ce0028dc558fdecc43c41756e1fa
2016-05-12 18:56:24 -04:00
Brian Birtles 90fb66a530 Bug 1271904 - Rename KeyframeEffectReadOnly.getFrames() and KeyframeEffect.setFrames() to getKeyframes()/setKeyframes(); r=hiro, r=smaug
MozReview-Commit-ID: GwLLY39l1KE

--HG--
rename : dom/animation/test/css-animations/file_keyframeeffect-getframes.html => dom/animation/test/css-animations/file_keyframeeffect-getkeyframes.html
rename : dom/animation/test/css-animations/test_keyframeeffect-getframes.html => dom/animation/test/css-animations/test_keyframeeffect-getkeyframes.html
rename : dom/animation/test/css-transitions/file_keyframeeffect-getframes.html => dom/animation/test/css-transitions/file_keyframeeffect-getkeyframes.html
rename : dom/animation/test/css-transitions/test_keyframeeffect-getframes.html => dom/animation/test/css-transitions/test_keyframeeffect-getkeyframes.html
rename : testing/web-platform/meta/web-animations/keyframe-effect/setFrames.html.ini => testing/web-platform/meta/web-animations/keyframe-effect/setKeyframes.html.ini
rename : testing/web-platform/tests/web-animations/keyframe-effect/setFrames.html => testing/web-platform/tests/web-animations/keyframe-effect/setKeyframes.html
2016-05-13 09:40:52 +09:00
Markus Stange 68f8a0a260 Bug 1271112 - Check transformed gradient end points for fixed point overflow, not the size of the gradient. r=jrmuizel
The gradient on this website had, the float values of xdim and ydim were
about 7500, which is definitely representable by 16.16 fixed point values.
But the matrix had a large (> 32000) translation on it.

MozReview-Commit-ID: 1WVhZQLF99g

--HG--
extra : rebase_source : b60c5e37f7dcb94943dadfc4ac73a58e9e18f1d9
2016-05-12 17:45:38 -04:00
CJKu 3e44bcb79b Bug 1269971 - Part 7. Clean out unused things created in bug 759568; r=jfkthame
MozReview-Commit-ID: 4spLj1fgthI

--HG--
extra : rebase_source : 02261090faab2c37cf5e9c35b223832ec3af59cf
2016-05-13 00:09:39 +08:00
CJKu 2c14cf0ee3 Bug 1269971 - Part 6. Modify reftest according to the way we generate bg-clip:text; r=jfkthame
MozReview-Commit-ID: LhvH5SS0SJY

--HG--
extra : rebase_source : f1b4f885d574e478b59d3155b34491d8a5fdf277
2016-05-13 00:09:28 +08:00
CJKu ffc22638a9 Bug 1269971 - Part 5. Correct draw region in nsDisplayBackgroundColor::Paint; r=jfkthame
MozReview-Commit-ID: LV8lP6NuV85

--HG--
extra : rebase_source : 43a33cf310b644daf55676962c4f5e9ce510e0af
2016-05-13 00:09:16 +08:00
CJKu 39f4a65281 Bug 1269971 - Part 4. Add text stroke into text mask; r=jfkthame
MozReview-Commit-ID: IkaLMEX5q0T

--HG--
extra : rebase_source : 14ef2f4e033121873cbb51e437c3e7690c963fdb
2016-05-13 00:09:05 +08:00
CJKu 31d52bc0c4 Bug 1269971 - Part 3. Handle selection text color and selection backgrond painting; r=jfkthame
MozReview-Commit-ID: CQmqiCmvygr

--HG--
extra : rebase_source : 271b8d2aae82c02678637bcbbb3a77bc7c5b43f8
2016-05-13 00:08:53 +08:00
CJKu b901424670 Bug 1269971 - Part 2. From ClipBackgroundByText to GenerateAndPushTextMask; r=jfkthame,mtseng
MozReview-Commit-ID: 1PK2Huytq3i

--HG--
extra : rebase_source : 71f3e70694d874d5d575b12f882980544b1931e2
2016-05-13 00:08:41 +08:00
CJKu ea85bf6191 Bug 1269971 - Part 1. Rename IsForGenerateGlyphPath to IsForGenerateGlyphMask; r=jfkthame
MozReview-Commit-ID: 80DZsEAvXxB

--HG--
extra : rebase_source : 2b6205ad119265679b28d06056c3b433aab445c8
2016-05-13 00:08:30 +08:00
Andrew Halberstadt aea682d7a3 Bug 1271448 - Stop saving reftest.log for |mach reftest| perf improvements, r=jgraham
In bug 1271035 gps identified disk I/O as a major cause for reftest slowness.
He was able to fix most of it, but the new highest source of I/O in reftest is
reftest.log.

To note, we were only saving reftest.log when running via mach, so this won't
impact automation in any way:
https://hg.mozilla.org/mozilla-central/file/043082cb7bd8/layout/tools/reftest/mach_commands.py#l204

I don't know why we are doing this given that the same output goes to stdout.
And as dholbert pointed out, since bug 1034290 landed, that log contains raw
structured logs, which are not at all useful for debugging. Given that it is
no longer useful and causes slowness, we should stop saving it.

If anyone wishes to keep saving to a log, they can use:
./mach reftest --log-tbpl reftest.log

If they wish this to be the default behaviour they can make a machrc (or
.machrc) in either topsrcdir, ~/.mozbuild or $MACHRC. Then add:
[alias]
reftest = reftest --log-tbpl reftest.log

MozReview-Commit-ID: A3e2X7qF90H

--HG--
extra : rebase_source : 9286e3061c068c6fef55b503017b3f4a9588be46
2016-05-09 17:53:04 -04:00
Jean-Yves Avenard e926d54268 Bug 1206637: P1. Add MediaPrefs convenience class. r=cpearce
Almost identical to gfxPrefs, with the exception that preferences can't be set (as it doesn't work with e10s anyway). The generated code size is tiny enough that we don't have to bother about having duplicates.

MozReview-Commit-ID: 5SZyscvIzzS

--HG--
extra : rebase_source : 1a2577bbe24d2d6644c3f1f5d0c47850b67fdea0
2016-05-09 14:59:02 +10:00
Daniel Holbert 0892fa8f5a Bug 1269174: Fix nsSVGViewBox::HasRect() to return false instead of using stale mBaseVal. r=longsonr
MozReview-Commit-ID: esNxaomT3D
2016-05-03 07:40:26 -07:00
Ting-Yu Lin 1c724eaebc Bug 1267524 Part 19 - Move nsStyleCoord members to initializer list. r=heycam
MozReview-Commit-ID: BOjeQGlCbV9

--HG--
extra : rebase_source : f5372e3b70812ad1777a76d8346dbdfe9913584b
2016-05-03 17:26:30 +08:00
Ting-Yu Lin fd1ce11cba Bug 1267524 Part 18 - Remove "void" from zero argument functions. r=heycam
MozReview-Commit-ID: GW6RsdgcC1j

--HG--
extra : rebase_source : bb272974662b8543bbcb177cf5bacb7bd024bee3
2016-05-03 17:26:30 +08:00
Ting-Yu Lin 2abba94f05 Bug 1267524 Part 17 - Use member initializer list for nsStyleVariables. r=heycam
MozReview-Commit-ID: Ag7VZKgrNf3

--HG--
extra : rebase_source : 4c9c01289a350579c750ed3318593ad7eaca827d
2016-05-03 17:26:30 +08:00
Ting-Yu Lin 8c8ebcd032 Bug 1267524 Part 16 - Use member initializer list for nsStyleUIReset. r=heycam
MozReview-Commit-ID: 58XpFZLLskk

--HG--
extra : rebase_source : 3bc4f084a0dc993544a4f3a248215a46bf35da51
2016-05-03 17:26:30 +08:00
Ting-Yu Lin 6107e10221 Bug 1267524 Part 15 - Use member initializer list for nsStyleUserInterface. r=heycam
MozReview-Commit-ID: KqSikZnyKd0

--HG--
extra : rebase_source : 1ce862d039331b90da0150ba025e50a6b74809ef
2016-05-03 17:26:30 +08:00
Ting-Yu Lin 49fbebcf6b Bug 1267524 Part 14 - Use member initializer list for nsStyleText. r=heycam
MozReview-Commit-ID: 2akpRSE1Kkv

--HG--
extra : rebase_source : 2c36eff15c368fbad0337463ef87de44ab6f00b0
2016-05-03 17:26:29 +08:00
Ting-Yu Lin d46088a7f8 Bug 1267524 Part 13 - Use member initializer list for nsStyleTextReset. r=heycam
MozReview-Commit-ID: GqlFSXXCSZ9

--HG--
extra : rebase_source : a85616e60ee88e913242bbfa126e8f10179e46ab
2016-05-03 17:26:29 +08:00
Ting-Yu Lin 786a0b39e8 Bug 1267524 Part 12 - Use member initializer list for nsStyleContent. r=heycam
MozReview-Commit-ID: L7kQDKfAOVb

--HG--
extra : rebase_source : d239d272c8cd1f67d860490c815cc5f793121876
2016-05-03 17:26:29 +08:00
Ting-Yu Lin 1575e0225d Bug 1267524 Part 11 - Use member initializer list for nsStyleVisibility. r=heycam
MozReview-Commit-ID: I8YHela8U4Z

--HG--
extra : rebase_source : 24572d4dd3745b1b8eef76f777043519007f4be3
2016-05-03 17:26:29 +08:00
Ting-Yu Lin b2bf598458 Bug 1267524 Part 10 - Use member initializer list for nsStyleDisplay. r=heycam
MozReview-Commit-ID: 2tW9RYNTOMD

--HG--
extra : rebase_source : 348e6be67f260c6c8e1b0a41c6e5b940f0d65ca5
2016-05-03 17:26:29 +08:00
Ting-Yu Lin d4f2f311d2 Bug 1267524 Part 9 - Use member initializer list for nsStyleColor. r=heycam
MozReview-Commit-ID: 61fklP4Ojev

--HG--
extra : rebase_source : 6721dde79f9657deee99d33ea36b747c94dc3353
2016-05-03 17:26:29 +08:00
Ting-Yu Lin 757f9e8caf Bug 1267524 Part 8 - Use member initializer list for nsStyleTableBorder. r=heycam
MozReview-Commit-ID: DO40OraGWoj

--HG--
extra : rebase_source : 78d7f004fd9494cbe773fb14d66233383b46abe6
2016-05-03 17:26:29 +08:00
Ting-Yu Lin 1d1d802deb Bug 1267524 Part 7 - Use member initializer list for nsStyleTable. r=heycam
MozReview-Commit-ID: 4WUjx8rONVt

--HG--
extra : rebase_source : efa5ddf886f1ef66bf153e88b250adf47c5c5bb4
2016-05-03 17:26:28 +08:00
Ting-Yu Lin 707e8fda33 Bug 1267524 Part 6 - Use member initializer list for nsStylePosition. r=heycam
MozReview-Commit-ID: En2yLFd0WGs

--HG--
extra : rebase_source : a5c3b466aa0dabf226f2faacefdb48a40091f560
2016-05-03 17:26:28 +08:00
Ting-Yu Lin 39663f3b8d Bug 1267524 Part 5 - Use member initializer list for nsStyleSVGReset. r=heycam
MozReview-Commit-ID: 8Lzhifb6uir

--HG--
extra : rebase_source : 659cf302e0daa0b6bf3d922594e38f0d6a5784b4
2016-05-03 17:26:28 +08:00
Ting-Yu Lin 336393cc4e Bug 1267524 Part 4.2 - Use member initializer list for nsStyleSVG. r=heycam
In the initializer list of the copy constructor, mStrokeDasharray and
mStrokeDasharrayLength are both initialized to nullptr and 0
respectively. If aSource.mStrokeDasharray has value, they're further be
set to proper values later in the function body. In this way, the two
'else' clauses can be removed.

MozReview-Commit-ID: DGybV7zFcyo

--HG--
extra : rebase_source : fe7d6e73323e226ab304d1a45e29d192cdc8f39c
2016-05-03 17:26:28 +08:00
Ting-Yu Lin 8864b85d3a Bug 1267524 Part 4.1 - Add Reset() and rewrite methods for nsStyleSVGPaint. r=heycam
Eliminate the explicit destructor / placement new calls in SetType().

MozReview-Commit-ID: 1CtjX1AEbFR

--HG--
extra : rebase_source : 85c46087bb0aa1debe08789caecf15066a0f4704
2016-05-03 17:26:27 +08:00
Ting-Yu Lin 4420a4b3a8 Bug 1267524 Part 3 - Use member initializer list for nsStyleColumn. r=heycam
MozReview-Commit-ID: 8xvVUe9QaRF

--HG--
extra : rebase_source : d065de11cde5779e4ad489dc10d4fb063a25610f
2016-05-02 11:11:45 +08:00
Ting-Yu Lin 49a65a5200 Bug 1267524 Part 2 - Use member initializer list for nsStyleXUL. r=heycam
MozReview-Commit-ID: FHb0yTvYAXR

--HG--
extra : rebase_source : 6158f8d7ec97ef93dd0ff7efedea2c0bfb65b10f
2016-05-02 11:11:45 +08:00
Ting-Yu Lin b375f10f47 Bug 1267524 Part 1 - Use member initializer list for nsStyleOutline. r=heycam
mCachedOutlineWidth was not initialized. I set it to 0.

MozReview-Commit-ID: fqaoZj1iMm

--HG--
extra : rebase_source : 54b158e52fb2600602a93c8a6921716a16b4b32b
2016-05-02 11:11:45 +08:00
Andrea Marchesini 3df261e948 Bug 1269303 - Remove RequestSync API, r=fabrice 2016-05-03 11:13:03 +02:00
Xidorn Quan 2bb1280ba1 Bug 1267568 part 4 - Replace InFullscreenChange flag of PresShell with IsResizeSuppressed flag in RefreshDriver. r=smaug
MozReview-Commit-ID: FB3vGXwKZ9O

--HG--
extra : source : 84878dbedf8c2efe2221d7562fd69a7c4cf20971
2016-05-03 17:58:57 +10:00
Xidorn Quan 1327931cba Bug 1267568 part 2 - Add helper method to nsIPresShell to get the RefreshDriver. r=smaug
MozReview-Commit-ID: Cxbmr2CVXJz

--HG--
extra : source : fbf8cd895abbb69d3b5d3c2b3afe36984db5f985
2016-05-03 17:58:57 +10:00
Phil Ringnalda 5387bf0160 Back out 6 changesets (bug 1227327) for failures in est_fixed_bg_scrolling_repaints.html
Backed out changeset 529ff32ced48 (bug 1227327)
Backed out changeset b726c30c4290 (bug 1227327)
Backed out changeset 5453b1ce4e85 (bug 1227327)
Backed out changeset 462dc0904d05 (bug 1227327)
Backed out changeset 1515512d3731 (bug 1227327)
Backed out changeset 2276fc059bf7 (bug 1227327)
2016-05-02 22:23:10 -07:00
Xidorn Quan 3e68c8e1d2 Bug 1097499 followup 2 - Fix metadata of tests submitted to w3c. DONTBUILD
MozReview-Commit-ID: 3CJjby828W3

--HG--
extra : source : 8703ab2933f674756d48d05a675a24b20a787408
2016-05-03 14:43:40 +10:00
L. David Baron b88cf97913 Bug 1187851 followup - Use versioned specification link to make CSSWG test system happy. No review.
Fixes "Needs Work" status in:
https://test.csswg.org/shepherd/testcase/::2760731a1e82/filter-containing-block-dynamic-1a/
https://test.csswg.org/shepherd/testcase/::2760731a1e82/filter-containing-block-dynamic-1b/
2016-05-02 21:33:44 -07:00
Xidorn Quan a5181b3238 Bug 1097499 followup - Fix metadata of tests submitted to w3c. DONTBUILD
MozReview-Commit-ID: DyUFx8i499B

--HG--
extra : source : 8c937354212f892ebac2350f65d2c0d8c83a534b
extra : amend_source : 44a298d1cd5f97617de5a4e7fcdd652af6b36d2d
2016-05-03 11:16:56 +10:00
Markus Stange ba28165566 Bug 1227327 - Add tests. r=mattwoodrow
MozReview-Commit-ID: 6BIJJiCUedo

--HG--
extra : rebase_source : 86a311c3c6b66a57246d5c4ac89455255ba399c3
2016-04-28 14:41:25 -04:00
Markus Stange 64035d7f81 Bug 1227327 - Use regular background drawing for XUL groupbox frames. r=mattwoodrow
MozReview-Commit-ID: 7S1gdZJgBCS

--HG--
extra : rebase_source : 99d4be46d60582b3c6d55b720f2fcca08458a06a
2016-04-27 17:45:21 -04:00
Markus Stange 1a6baf6d28 Bug 1227327 - Make fieldset frames build nsDisplayBackgroundImage items. r=mattwoodrow
Fieldsets break up their border so we need to disable the willPaintBorder optimization for them.

MozReview-Commit-ID: 2zmlxVRLIqe
***

--HG--
extra : rebase_source : 8093b69502ad849a4b8bb6d254967a6051f1909d
2016-04-28 14:09:06 -04:00
Markus Stange 50c5f916d0 Bug 1227327 - Use regular background image display items for painting button backgrounds. r=mattwoodrow
This has multiple benefits:
 - It makes DLBI detection of background-position changes work for buttons.
 - It makes background-attachment: fixed work for button backgrounds.
 - It allows the willPaintBorder optimization to be used for button background
   drawing, which reduces the background clip to not overlap with opaque borders.

The willPaintBorder optimization requires a change to the reftest 611574-2.html.
This reftest compares backgrounds to inset box shadows. Box shadows those don't
have a willPaintBorder optimization, so we'd get different results due to the
borders - inset box shadows will bleed through the rounded corner anti-aliasing
of the border, backgrounds won't any more. So we just turn off button borders
and cover the outer edges of the borders with an outline in that reftest.

MozReview-Commit-ID: Lvx2p5szjw7
***
Cover the antialiasing in 611574-2.html with a black outline.

MozReview-Commit-ID: IHC3B7Eq72j

--HG--
extra : rebase_source : e2c625e25ebce052948dc39de6f9af91d4987315
2016-04-29 13:16:23 -04:00
Markus Stange 2fc65c65af Bug 1227327 - Allow specifying a background rect for background dislay items. r=mattwoodrow
MozReview-Commit-ID: 5X6FJYRCnWt

--HG--
extra : rebase_source : 334ea74abc71041246fcf9cbf25ff642c9e92b67
2016-04-27 17:39:25 -04:00
Markus Stange 6ae2cdbdd0 Bug 1227327 - Invalidate table parts and MathML frames when background-position changes on them. r=dbaron
Theoretically we should do the same for nsTreeBodyFrame, but that frame type is
harder to detect and I'm not sure it's worth adding code to support updating
background-position on XUL trees.

MozReview-Commit-ID: 8HPT53MX6bO

--HG--
extra : rebase_source : 1e84e83616832debe8f6da394630a5a2e014e7df
2016-04-28 13:01:22 -04:00
Kartikaya Gupta bf75215060 Bug 1266833 - When the scroll position is clamped during a frame reconstruction, send a scroll offset update to APZ. r=tnikkel
MozReview-Commit-ID: 2UBM4AWWIVI
2016-05-02 15:44:29 -04:00
Kit Cambridge 9265c4b746 Back out 3 changesets (bug 1263799) for bustage.
Backed out changeset d379317d86df (bug 1263799)
Backed out changeset 067e84f524d1 (bug 1263799)
Backed out changeset 8f31424a9d07 (bug 1263799)

MozReview-Commit-ID: KJ9b8tC5k4n

--HG--
extra : rebase_source : 125da6dbfe299e6f4621fce20e88d796d123fce0
2016-05-02 11:38:55 -07:00
Kevin Chen f0c6c43d98 Bug 1263799 - Support IPC for TV service between B2G and content processes. Part 1 - Refactor TV service and pass TV stream handle. r=schien
MozReview-Commit-ID: 7vjmcxcjGQl

--HG--
extra : rebase_source : 30ec37fdd8203dbdeb762182aecf51e4f28c2218
2016-04-15 13:40:34 +08:00
Jonathan Watt 23c872cc11 Bug 1266868, part 3 - Avoid Maybe::ref() where not necessary. r=dholbert 2016-05-02 18:54:58 +01:00
Jonathan Watt aa8b43ad6e Bug 1266868, part 2 - Fix leaks of the values passed to nsCSSValue::.SetPairValue in the StyleAnimationValue code. r=dholbert 2016-05-02 18:40:08 +01:00
Jonathan Watt 96b50de4f0 Bug 1266868, part 1 - Fix nsCSSValue::Array leaks in the StyleAnimationValue code. r=dholbert 2016-05-02 18:39:23 +01:00
Kyle Machulis 85146b9ee1 Bug 1263696 - Block embed content loading when ancestor of object element with content; r=bz 2016-05-02 09:54:16 -07:00
Carsten "Tomcat" Book 548d98c27e merge mozilla-inbound to mozilla-central a=merge 2016-05-02 11:25:32 +02:00
Nicholas Nethercote 2ae68d12e9 Bug 1268772 (part 4) - Use MOZ_MUST_USE with NS_NewISupportsArray(). r=erahm.
A few callers of NS_NewISupportsArray() didn't use the return value to detect
failure, but instead checked if the |array| argument was null after the call.
This is inconsistent with the majority of the calls to NS_NewISupportsArray().
This patch changes them to be checked in the normal way.

--HG--
extra : rebase_source : bf91836d7c3b159833c303a3716f4d9366f8b76a
2016-05-02 09:06:47 +10:00
Boris Chiou 41989567c2 Bug 1250820 - Part 4: Add MAX to CSSPseudoClassType. r=heycam
Just like CSSPseudoElementType, which uses a special type to represent the
maximum length. We can replace "CSSPseudoClassType::NotPseudo + 1" with
"CSSPseudoClassType::MAX", which means the maximum length.

MozReview-Commit-ID: 4xH0avpWPqX

--HG--
extra : rebase_source : bc8b6a5bb5a84782dea891054b8ea4c5d7ea3db8
2016-04-22 22:18:21 +08:00
Boris Chiou 4487e71e34 Bug 1250820 - Part 3: Replace notPseudo with negation. r=heycam
notPseudo is easy to be confused with NotPseudo, so using negation would be
better.

MozReview-Commit-ID: BtlS1A5YgD3

--HG--
extra : rebase_source : 9c9233fefd826f3c912ef4b31bf096f2d2c4d693
2016-04-22 22:09:20 +08:00
Boris Chiou 66ed914313 Bug 1250820 - Part 2: Replace nsCSSPseudoClasses::Type with CSSPseudoClassType. r=heycam
MozReview-Commit-ID: 6w4SoaS7gRi

--HG--
extra : rebase_source : 6e3c05aedf910616def9f9f43fc0e135a2d84359
2016-04-22 21:38:46 +08:00
Boris Chiou 0fda46ccb4 Bug 1250820 - Part 1: Define scoped enum for CSSPseudoClass::Type. r=heycam
MozReview-Commit-ID: 6RHot1LaUOs

--HG--
extra : rebase_source : 8ad8ffa344091eb0bda6be7986de676be9f7f3ba
2016-04-22 20:40:45 +08:00
Brian Birtles 02700078d5 Bug 1267018 - Split tests that rely on pref-based changes to Element.prototype into two files; r=heycam
MozReview-Commit-ID: KqLCYOknFRX
2016-05-02 09:28:45 +09:00
Aryeh Gregor f14f1babe8 Bug 1193762 part 8 - Fix things that will break; r=froydnj
It looks like VC++ doesn't like comparisons of nsCOMPtr to 0 after this
change, but those are bad style anyway, so I removed them from
TestCOMPtr.cpp instead of trying to make them work.
2016-05-01 21:29:23 +03:00
Aryeh Gregor f7bc47d59b Bug 1193762 part 7 - Use .get() when assigning to variables; r=froydnj
Unlike when returning an nsCOMPtr in a ternary operator or passing to a
function, I used .get() here, since the operation is actually unsafe and
deserves to be marked explicitly.
2016-05-01 21:29:23 +03:00
Aryeh Gregor 585263dafa Bug 1193762 part 4 - Avoid nsCOMPtr in ternary operator; r=froydnj 2016-05-01 21:29:22 +03:00
Mats Palmgren 7364d9ac57 Bug 842853 - Follow-up to fix a test typo. r=me 2016-05-01 00:38:32 +02:00
Hiroyuki Ikezoe 28256ab21a Bug 1267937 - Part 2: A reftest which checks mProgressOnLastCompose is surely cleared in before phase. r=birtles
--HG--
extra : amend_source : f368a7e3b62c8ecae30b423cf5b87ce5516d6492
2016-04-30 07:08:14 +09:00
Kartikaya Gupta 0858e31ab6 Bug 1268195 - When restoring a scroll position outside of incremental load, don't keep trying in a loop - just do it once and stop. r=tnikkel
It may be that when the frame is reconstructed after load, the frame gets shorter,
and the old scroll position cannot be restored, because it is out of bounds. In
such a case, we don't want to keep mRestorePos tracking the old scroll position,
because it can get incorrectly applied on a future frame reconstruction. Instead,
for scroll position restorations during frame reconstructions, we just try the
restore once and then clear mRestorePos.

MozReview-Commit-ID: BHoJHz0mGmf
2016-04-29 23:06:18 -04:00
Bobby Holley ef87858910 Bug 1268748 - Implement {Resolve,Probe}PseudoElementStyle. r=heycam 2016-04-29 19:21:48 -07:00
David Anderson 77e3700565 Move CompositorWidgetProxy inheritance out of nsIWidget. (bug 1264545 part 6, r=jimm) 2016-04-29 19:23:17 -04:00
Wes Kocher 56fe7c4bcb Merge m-c to fx-team a=merge
MozReview-Commit-ID: 3H9BxQQQnNI
2016-04-29 16:05:30 -07:00
Botond Ballo b198a432f2 Bug 1268009 - If APZ is force-disabled, disable paint skipping even for apz-originated scrolls. r=kats
MozReview-Commit-ID: 2HgM5XiTcgA

--HG--
extra : rebase_source : 86ced7735a7db45a74209efc6a1d8a2e0c5d77ab
2016-04-27 16:55:34 -04:00
Jared Wein e889366796 Bug 1268159 - Use GreD in addition to XCurProcD for browser_misused_characters_in_strings.js to cover more string files. r=gijs
MozReview-Commit-ID: IlC170W0nlG
* * *
[mq]: temp

MozReview-Commit-ID: GF0k4zvONPD
2016-04-29 09:28:48 -04:00
Ms2ger e54df95e1a Bug 1268290 followup: remove stray semicolon on a CLOSED TREE. 2016-04-28 11:37:01 +02:00
Emilio Cobos Álvarez 3a00e86293 Bug 1268290: stylo: Pass SheetParsingMode to Servo, r=bholley 2016-04-28 11:13:45 +02:00
Mantaroh Yoshinaga c34b85860e Bug 1134163 - Part2 - Modify animation tests which rely on animationstart timing. r=birtles
MozReview-Commit-ID: 2IaCejiFgY2

--HG--
extra : transplant_source : %1Dp%CA%B3%E2%D4%15%CDH%EA%CEzbdI-B2%3D%9C
2016-04-28 16:30:23 +09:00
Mantaroh Yoshinaga 240de53183 Bug 1134163 - Part1.Modify animationstart event timing in order to fire event after end of pending task. r=birtles
MozReview-Commit-ID: 8BwLRIKe1kV

--HG--
extra : transplant_source : %B0%C7f%92pi%E9cR%A8%A7%D2%EB%AEF0%A9%278%1E
2016-04-28 16:29:12 +09:00
Ting-Yu Lin f24a9b7431 Bug 1266782 - Use RefPtr to hold document and selection in ExtendPhoneNumberSelection. r=mats
MozReview-Commit-ID: 3zAgKt7r8TO

--HG--
extra : rebase_source : 1ee468762812a955a41908bd0ce7f4b41aee8859
2016-04-28 13:59:39 +08:00
Carsten "Tomcat" Book ba3fe0975c Backed out changeset 85ce8cb0639a (bug 1268313)
--HG--
extra : rebase_source : 56d1cf41a2dc4959b67f834e07192a5c772176a8
2016-04-29 14:21:16 +02:00
Cameron McCormack d222b3159d Bug 1268404 - Part 2: Implement ServoStyleSet::ResolveStyleForText. r=bholley 2016-04-29 14:04:16 +10:00
Cameron McCormack 3aadcf811c Bug 1268404 - Part 1: Split out ResolveStyleForText from ResolveStyleForNonElement and pass in the text node. r=bholley 2016-04-29 14:01:44 +10:00
Cameron McCormack 022c4340ae Bug 1268390 - Part 3: Add support for doc style sheets in ServoStyleSet. r=bholley 2016-04-29 14:01:44 +10:00
Cameron McCormack 9eeb5dc2a9 Bug 1268390 - Part 2: Add bindings for Servo_InsertStyleSheetBefore. r=bholley 2016-04-29 14:01:44 +10:00
Cameron McCormack 2617364266 Bug 1268390 - Part 1: Factor out most of nsStyleSet::AddDocStyleSheet for re-use. r=bholley 2016-04-29 14:01:44 +10:00
Cameron McCormack 26c0413d34 Bug 1268392 - Make Servo_GetComputedValues take a node rather than an element. r=bholley 2016-04-29 14:01:44 +10:00
Daniel Holbert 1460a1dde0 Bug 1030952 part 5: Add reftests for flex items with intrinsic aspect ratios and various constraints & stretching in each dimension. (no review)
DONTBUILD

MozReview-Commit-ID: LCCtzC6OBtX
2016-04-28 20:17:10 -07:00
Daniel Holbert 43a6f6d5c0 Backed out changeset 3f3dc83fdd26 (reftests for Bug 1030952) to fix commit message.
DONTBUILD
2016-04-28 20:39:50 -07:00
Daniel Holbert 49d31c1196 Bug 1030952 part 4: Add reftests for flex items with intrinsic aspect ratios and various constraints & stretching in each dimension. (no review)
MozReview-Commit-ID: FeUrQ8sS4C1
2016-04-28 20:17:10 -07:00
Daniel Holbert 880ec173d2 Bug 1030952 part 4: For flex items with an aspect ratio, stomp on reflow state's main size *and cross size* in final reflow. r=mats
MozReview-Commit-ID: CzZzy9gOHFK
2016-04-28 20:17:03 -07:00
Daniel Holbert 774f83d738 Bug 1030952 part 3: Add a frame property to allow flex container to impose a different main-size on a flex item for aspect ratio calculations. r=mats
MozReview-Commit-ID: HZylbVhO1Iv
2016-04-28 20:17:02 -07:00
Daniel Holbert 924d376db3 Bug 1030952 part 2: Change flex layout to recognize that an aspect ratio allows main-size to influence cross-size. r=mats
MozReview-Commit-ID: E2htKm7XGLY
2016-04-28 20:16:59 -07:00
Daniel Holbert 7800939204 Bug 1030952 part 1: Save each flex item's intrinsic ratio during reflow, for easy reuse. r=mats
MozReview-Commit-ID: 84dtBQUJZP7
2016-04-28 20:16:58 -07:00
Andrea Marchesini 1c0c183890 Bug 1261009 - Remove the Data Store API, r=fabrice 2016-04-29 09:02:45 +08:00
Nicholas Nethercote 2511b2c327 Bug 1267550 (part 2) - Rename MOZ_WARN_UNUSED_RESULT as MOZ_MUST_USE. r=froydnj.
It's an annotation that is used a lot, and should be used even more, so a
shorter name is better.

MozReview-Commit-ID: 1VS4Dney4WX

--HG--
extra : rebase_source : b26919c1b0fcb32e5339adeef5be5becae6032cf
2016-04-27 14:16:50 +10:00
Kyle Machulis bb87072fdb Backout of 541618e4babd (bug 1263696) due to performance timeline test bustage 2016-04-28 14:48:14 -07:00
Matt Woodrow 8a17b3e85d Bug 1266380 - Don't try to untransform visible regions for inactive perspective layers. r=thinker 2016-04-28 17:05:46 +12:00
Botond Ballo 80791b18a4 Bug 1267470 - Move more fields from FrameMetrics to ScrollMetadata. r=kats
MozReview-Commit-ID: zxtt1NNcDe

--HG--
extra : rebase_source : 65cdc94615ccbb51901e8c4ac086987ff2183719
2016-04-27 16:06:34 -04:00
Hiroyuki Ikezoe a4b111280b Bug 1267908 - Don't call flushApzRepaints if reftest-no-flush is specified. r=kats
flushApzRepaints leads flush paint.

MozReview-Commit-ID: 5pt7Gq5zHTx

--HG--
extra : rebase_source : 90416872d2e271654767bfc7bd73ecbc451c65d6
2016-04-28 06:16:30 +09:00
Geoff Brown 71f1e3bc75 Bug 1267020 - Dump reftest assertion count mismatches to log file on Android; r=jmaher 2016-04-27 14:56:09 -06:00
Nathan Froyd 5672bb749c Bug 1259733 - use forward declarations for nsIDocument in a few places; r=dholbert
This is sufficient for nsCSSFrameConstructor.h's needs, and the
corresponding C++ file already includes nsIDocument.h.
2016-04-27 14:48:36 -04:00
Christoph Kerschbaumer da0d241d98 Bug 1206961 - Use channel->AsyncOpen2() for imageLoader; Remove security checks from callsites (r=bz) 2016-04-27 19:41:13 +02:00
Sebastian Hengst b4020b78c0 Backed out changeset e786ecce31b2 (bug 1266875) for pgo build bustage in xpcshell/xpcom/tests/unit/nsIFileEnumerator. r=backout on a CLOSED TREE 2016-04-27 18:35:41 +02:00
Ting-Yu Lin b8bf17b6b3 Bug 1267929 - Bail out from ExtendPhoneNumberSelection if GetAnchorFocusRange() is nullptr. r=mats
MozReview-Commit-ID: HvNhZ5o0owh

--HG--
extra : rebase_source : d003f7fc6d065bb439d24e0364fe34086f14ad88
2016-04-27 17:19:51 +08:00
Ting-Yu Lin 3256e20da1 Bug 1267209 - Convert nsLayoutUtils::PaintFrame flags to be an enum class. r=jfkthame
MozReview-Commit-ID: 4IFOlP9oVHl

--HG--
extra : rebase_source : 012b15e5e7b7489cf8ea9a2c812719ed009ef72e
2016-04-27 12:01:54 +08:00
Mike Shal a204083dd1 Bug 1266875 - Remove custom install rules; r=chmanchester
MozReview-Commit-ID: CoWdHidlDrV
2016-04-18 10:36:07 -04:00
Bobby Holley 70f077146d Bug 1267833 - Pass the RawServoStyleSet to Servo_GetComputedValuesForAnonymousBox. r=heycam 2016-04-26 23:39:44 -07:00
Cameron McCormack 90c9880ccc Bug 1267564 - Implement a couple of Servo-backed style object methods. r=bholley 2016-04-27 12:34:49 +10:00
Cameron McCormack 75c6df145e Bug 1267560 - Get style structs from ServoComputedValues rather than the rule node, when using the Servo-backed style system. r=bholley 2016-04-27 12:34:49 +10:00
Markus Stange ecfd9e6a55 Bug 550426 - Add a few reftests for background-position-x/-y. r=dbaron
MozReview-Commit-ID: 7SoQqnS46A9

--HG--
rename : layout/reftests/backgrounds/background-position-1a.html => layout/reftests/backgrounds/background-position-1d.html
rename : layout/reftests/backgrounds/background-position-1b.html => layout/reftests/backgrounds/background-position-1e.html
rename : layout/reftests/backgrounds/background-position-1c.html => layout/reftests/backgrounds/background-position-1f.html
rename : layout/reftests/backgrounds/background-position-2a.html => layout/reftests/backgrounds/background-position-2c.html
rename : layout/reftests/backgrounds/background-position-2b.html => layout/reftests/backgrounds/background-position-2d.html
rename : layout/reftests/backgrounds/background-position-3a.html => layout/reftests/backgrounds/background-position-3c.html
rename : layout/reftests/backgrounds/background-position-3b.html => layout/reftests/backgrounds/background-position-3d.html
rename : layout/reftests/backgrounds/background-position-4a.html => layout/reftests/backgrounds/background-position-4d.html
rename : layout/reftests/backgrounds/background-position-4b.html => layout/reftests/backgrounds/background-position-4e.html
rename : layout/reftests/backgrounds/background-position-6.html => layout/reftests/backgrounds/background-position-6a.html
rename : layout/reftests/backgrounds/background-position-6.html => layout/reftests/backgrounds/background-position-6b.html
extra : rebase_source : d0be4cc560b9e84d399aec0bdf3144367f683338
2016-04-20 23:56:58 -04:00
Markus Stange 161986900b Bug 550426 - Use background-position-x/y when detecting scroll-linked effects. r=dbaron
MozReview-Commit-ID: 6qDFcaEBYEF

--HG--
extra : rebase_source : 1bee538433c7cc5ca7cfef6fd73db44632cf8bed
2016-04-25 18:56:47 -04:00
Markus Stange 45015d5109 Bug 550426 - Use background-position-x/y in ActiveLayerTracker. r=dbaron
MozReview-Commit-ID: 4gBWTOLfX0i

--HG--
extra : rebase_source : b89a35fef04ed990d67c05ebd79528d9c4b4462b
2016-04-20 23:34:46 -04:00
Kyle Huey 48a594a09e Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-04-28 14:08:25 -07:00
Mike Shal 8689f72e8b Bug 1266875 - Remove custom install rules; r=chmanchester
MozReview-Commit-ID: CoWdHidlDrV
2016-04-18 10:36:07 -04:00
Kyle Machulis 58d9018e54 Bug 1263696 - Block content loading for embed nodes that are ancestors of objects with data; r=bz 2016-04-28 13:08:12 -07:00
Daniel Holbert b199fea9a7 Bug 1268588: Add missing space to "assertion count[...] is less than expected" reftest log message. r=gbrown
MozReview-Commit-ID: GA2mvt4WyqU

--HG--
extra : rebase_source : ed194ccc7f1e116b7d8b01ea15b2281ba08bfd47
2016-04-28 10:52:42 -07:00
Mats Palmgren c96fa5c0c8 Bug 1267555 part 2 - [css-grid] Adjust reftests for abs.pos. "auto/first-line" and "last-line/auto" change. 2016-04-28 21:21:20 +02:00
Mats Palmgren 5ed9f29039 Bug 1267555 part 1 - [css-grid] Make grid-aligned abs.pos. descendants that span from 'auto' to the first/last line stretch to the outer edge of the first/last track respectively. r=dholbert 2016-04-28 21:21:19 +02:00
Boris Chiou 44367b12f2 Bug 1067769 - Part 12: Use Maybe<OwningAnimationTarget> in KeyframeEffect(ReadOnly) constructors. r=birtles
MozReview-Commit-ID: Euv76D6sIFX

--HG--
extra : rebase_source : 7ef6e5d70104942b21671e2143c107e678f400a7
2016-04-28 23:22:44 +08:00
Markus Stange 6950386ff3 Bug 550426 - Fix test_transitions_per_property.html. r=dbaron
This adds testing for transitions on background-position-x/y, and makes sure we
no longer call check_distance for background-position, because
background-position is now a shorthand and no longer has its own distance
computation.

MozReview-Commit-ID: 82KVruCghGe

--HG--
extra : rebase_source : c7c85abc9bb7ff1987d7372635c0a9702715b761
2015-12-16 12:27:20 +01:00
Markus Stange d2f8263023 Bug 550426 - In PropertySupportsVariant, add {background,mask}-position-{x,y} to the list of properties that are parsed by functions. r=dbaron
MozReview-Commit-ID: 8PFNIic38f5

--HG--
extra : rebase_source : 714de85d166e727a9f004c3321ae0c4352565d82
2016-04-21 20:22:46 -04:00
Markus Stange 72c6eb0561 Bug 550426 - Add support for {background,mask}-position-{x,y}, computed style additions. r=dbaron
MozReview-Commit-ID: 5GSsS7EYwfB

--HG--
extra : rebase_source : 93696befce34ea8c2d9b1bf4aed47debf7ea2b5f
2016-04-21 20:23:02 -04:00
Markus Stange 3bbd4e65d4 Bug 550426 - Add support for {background,mask}-position-{x,y}, StyleAnimation changes. r=dbaron
MozReview-Commit-ID: 8Qb0asWMgVA

--HG--
extra : rebase_source : d43ab6905e0b39e03680e2266e16737d0d445a31
2016-04-21 20:23:35 -04:00
Markus Stange 1a43349a44 Bug 550426 - Add support for {background,mask}-position-{x,y}, most of the style system changes. r=dbaron
MozReview-Commit-ID: JgZIoj43aZv

--HG--
extra : rebase_source : cf90a8cf7c10ee90f4c312b7ff5c1107aa8571f2
2016-04-29 14:12:10 -04:00
Markus Stange 7189351aab Bug 550426 - Add support for {background,mask}-position-{x,y}, property_database.js changes. r=dbaron
MozReview-Commit-ID: 1vKeywCAF7O

--HG--
extra : rebase_source : 3c3e8860ea4ed61ef20a1ccc9450d9734cca1c01
2016-04-21 20:25:56 -04:00
Wes Kocher 6521757101 Backed out 10 changesets (bug 550426) for failures in browser_css_autocompletion.js
Backed out changeset 6ff2e12738ca (bug 550426)
Backed out changeset 10ee68fd318e (bug 550426)
Backed out changeset 324f4f602730 (bug 550426)
Backed out changeset 81306e78ccaa (bug 550426)
Backed out changeset 44b820f6fb3d (bug 550426)
Backed out changeset 987b6ff7262e (bug 550426)
Backed out changeset d505646974c7 (bug 550426)
Backed out changeset 2162ecc18859 (bug 550426)
Backed out changeset 1a030aba3acc (bug 550426)
Backed out changeset 3655883e7faf (bug 550426)

MozReview-Commit-ID: AlUihrLtlhL

--HG--
rename : layout/reftests/backgrounds/background-position-6b.html => layout/reftests/backgrounds/background-position-6.html
2016-04-29 14:47:43 -07:00
Andrew Halberstadt 48a50c124b Bug 1265124 - [reftest] Make sure marionette waits long enough when attaching a debugger, r=chmanchester
As of bug 1245092, reftest depends on marionette. Normally marionette client has an internal timeout of around
60 seconds where it waits for the server to become available. But when using debuggers (and especially valgrind),
it can take much much longer than a minute for Firefox to start. This patch adds a couple hidden command line
args to reftest to tweak the marionette timeouts.

MozReview-Commit-ID: 3xF0InBJNEf

--HG--
extra : rebase_source : f18092bc90a7d8aab34b527a15bd3b1dc6afc997
2016-04-29 15:41:23 -04:00
Markus Stange ec33572f28 Bug 550426 - Add a few reftests for background-position-x/-y. r=dbaron
MozReview-Commit-ID: 7SoQqnS46A9

--HG--
rename : layout/reftests/backgrounds/background-position-1a.html => layout/reftests/backgrounds/background-position-1d.html
rename : layout/reftests/backgrounds/background-position-1b.html => layout/reftests/backgrounds/background-position-1e.html
rename : layout/reftests/backgrounds/background-position-1c.html => layout/reftests/backgrounds/background-position-1f.html
rename : layout/reftests/backgrounds/background-position-2a.html => layout/reftests/backgrounds/background-position-2c.html
rename : layout/reftests/backgrounds/background-position-2b.html => layout/reftests/backgrounds/background-position-2d.html
rename : layout/reftests/backgrounds/background-position-3a.html => layout/reftests/backgrounds/background-position-3c.html
rename : layout/reftests/backgrounds/background-position-3b.html => layout/reftests/backgrounds/background-position-3d.html
rename : layout/reftests/backgrounds/background-position-4a.html => layout/reftests/backgrounds/background-position-4d.html
rename : layout/reftests/backgrounds/background-position-4b.html => layout/reftests/backgrounds/background-position-4e.html
rename : layout/reftests/backgrounds/background-position-6.html => layout/reftests/backgrounds/background-position-6a.html
rename : layout/reftests/backgrounds/background-position-6.html => layout/reftests/backgrounds/background-position-6b.html
extra : rebase_source : a0b1bad96600e479369eec0ddcf20b735c136725
2016-04-20 23:56:58 -04:00
Markus Stange be2322f1ad Bug 550426 - Use background-position-x/y when detecting scroll-linked effects. r=dbaron
MozReview-Commit-ID: 6qDFcaEBYEF

--HG--
extra : rebase_source : b1055f871651f9dc71ba4e34f16afb06bf871b84
2016-04-25 18:56:47 -04:00
Markus Stange 1dbcb6b940 Bug 550426 - Use background-position-x/y in ActiveLayerTracker. r=dbaron
MozReview-Commit-ID: 4gBWTOLfX0i

--HG--
extra : rebase_source : bbda2f43f1cb2430a93c86b03a1f94cc4a1a932f
2016-04-20 23:34:46 -04:00
Markus Stange e8cb10c2d9 Bug 550426 - Fix test_transitions_per_property.html. r=dbaron
This adds testing for transitions on background-position-x/y, and makes sure we
no longer call check_distance for background-position, because
background-position is now a shorthand and no longer has its own distance
computation.

MozReview-Commit-ID: 82KVruCghGe

--HG--
extra : rebase_source : 65e52287c141044df8ae490d461ebef3e8d403ec
2015-12-16 12:27:20 +01:00
Markus Stange 5f2e22aaf2 Bug 550426 - In PropertySupportsVariant, add {background,mask}-position-{x,y} to the list of properties that are parsed by functions. r=dbaron
MozReview-Commit-ID: 8PFNIic38f5
***

--HG--
extra : rebase_source : 916519d7d6f603bb10721e01c9cc061976bc033e
2016-04-21 20:22:46 -04:00
Markus Stange 7faa93d72a Bug 550426 - Add support for {background,mask}-position-{x,y}, computed style additions. r=dbaron
MozReview-Commit-ID: 5GSsS7EYwfB

--HG--
extra : rebase_source : b39afc56452665ed02d79124557a7b8d3b984350
2016-04-21 20:23:02 -04:00
Markus Stange de8b8de801 Bug 550426 - Add support for {background,mask}-position-{x,y}, StyleAnimation changes. r=dbaron
MozReview-Commit-ID: 8Qb0asWMgVA
***

--HG--
extra : rebase_source : 694f057c76a2632ed5b6280ddc84bd1cc34d3ecb
2016-04-21 20:23:35 -04:00
Markus Stange 10d8636821 Bug 550426 - Add support for {background,mask}-position-{x,y}, most of the style system changes. r=dbaron
MozReview-Commit-ID: JgZIoj43aZv

--HG--
extra : rebase_source : 5c7663c042e6507f9979d769db26eef22dc8ba79
2016-04-29 14:12:10 -04:00
Markus Stange 83232444db Bug 550426 - Add support for {background,mask}-position-{x,y}, property_database.js changes. r=dbaron
MozReview-Commit-ID: 1vKeywCAF7O
***
test/property_database.js mask-position

--HG--
extra : rebase_source : 2710ce2f4a4365473ace7d0f0643c8d06d6b5372
2016-04-21 20:25:56 -04:00
L. David Baron 65891d5c0e Fix temporary debugging patch for bug 1265280 so we'll hit the condition. r=khuey
MozReview-Commit-ID: 11gaY1Fz9nf

--HG--
extra : rebase_source : 0d75310f5c8700d503b2ea5308d4f661302dedd1
2016-04-26 13:33:28 -07:00
Mason Chang 3c536bb168 Bug 1267363. Disable hinting on osx fonts only if we have expclity grayscale AA. r=mstange 2016-04-26 13:14:15 -04:00
CJKu 3acf2e463b Bug 1266948 - text-decoration-color: currentcolor should not use value from -webkit-text-fill-color; r=jfkthame
MozReview-Commit-ID: 2SfENZieSzQ

--HG--
extra : rebase_source : 3880f8fd6ae18e9f4b1cbf0a2f5eff48c060548b
2016-04-26 23:56:44 +08:00
Boris Zbarsky b7702c0119 Bug 1263845. When a parent changes from auto height to non-auto height or vice versa, a percentage height non-block child needs to realize it's doing a vertical resize. r=dbaron 2016-04-26 12:56:26 -04:00
Mats Palmgren cbec7476c1 Bug 623432 part 3 - Check nsFrameSelection::GetDragState() earlier to optimize away some more expensive calls. r=tn 2016-04-26 14:43:55 +02:00
Mats Palmgren c491890f51 Bug 623432 part 2 - Ignore scrollbars while drag-selecting content. r=tn 2016-04-26 14:43:55 +02:00
Mats Palmgren 36610cc2fe Bug 623432 part 1 - When the target scroll point is at the screen edge and no scrolling occured, then try to scroll 10px in that direction anyway. r=tn 2016-04-26 14:43:55 +02:00
Jonathan Kew 545b8fc9cc Bug 1265631 - patch 3 - Add surrogate support to nsJISx4051LineBreaker so that supplementary-plane characters get correct line-breaking behavior. r=masayuki 2016-04-26 10:32:19 +01:00
Jonathan Kew 5de38fc4e9 Bug 1265631 - Reftests for line-breaking with supplementary-plane characters. r=masayuki 2016-04-26 10:32:13 +01:00
Bob Owen c4ec1107e4 Bug 1258609: Initialize nsICanvasRenderingContextInternal with a DrawTarget instead of a gfxASurface. r=jrmuizel
MozReview-Commit-ID: JNQ9GWvDUSq
2016-04-21 10:30:38 +01:00
Matt Woodrow 083b9cd7fc Bug 1265256 - Use the canvas positioning area when computing the background-attachment:fixed rect for canvas frames. r=mstange 2016-04-22 17:50:11 +12:00
CJKu 2dd9807243 Bug 1265715 - Part 5. bg-clip:text transform reftest; r=jfkthame
MozReview-Commit-ID: BYswWA9fH2F

--HG--
extra : rebase_source : 6eeb45abb146053aedc438614011f35b57a4fe14
2016-04-26 00:27:15 +08:00
CJKu fa37f68a70 Bug 1265715 - Part 4. Fix transform problem; r=jfkthame
MozReview-Commit-ID: Bl88WTZDel

--HG--
extra : rebase_source : 0796217a925587c865c1b918377166c200bb474d
2016-04-26 00:27:03 +08:00
CJKu f934d566c4 Bug 1265715 - Part 3. Use nsLayoutUtils::PaintFrame in ClipBackgroundByText; r=jfkthame
MozReview-Commit-ID: LRh54GNT0qW

--HG--
extra : rebase_source : ad03f0a22b6eb285f6abb622396caf1da48021b7
2016-04-26 00:26:51 +08:00
CJKu f75bface0f Bug 1265715 - Part 2. Add nsDisplayListBuilderMode parameter into nsLayoutUtils::PaintFrame; r=jfkthame
MozReview-Commit-ID: 1jkJOOH8KCi

--HG--
extra : rebase_source : c3a67cf66bb1f19cb3a0acc0cab3a45f1f02ea00
2016-04-26 00:26:40 +08:00
CJKu 3059aafb03 Bug 1265715 - Part 1. Pull Mode out of nsDisplayListBuilder; r=jfkthame
MozReview-Commit-ID: BBIoHfcJ6hz

--HG--
extra : rebase_source : c21cc10558a2a6c44b601bdfd087edd52d37c3df
2016-04-26 00:26:28 +08:00
Botond Ballo 992cbd5b93 Bug 735857 - Treat background-attachment:fixed as background-attachment:scroll if it's on a non-root element affected by a transform. r=mstange
MozReview-Commit-ID: 1lnQoD98xv3

--HG--
extra : rebase_source : 0cfd2c2a7926210775b6a1beff69ba32f2a10d6c
2016-04-25 17:20:13 -04:00
Botond Ballo 76d7859745 Bug 735857 - Factor out a helper function nsLayoutUtils::IsTransformed(). r=mstange
MozReview-Commit-ID: 4AJUVDLAYrc

--HG--
extra : rebase_source : a84cda133f64388c496e035f018d27fb197001ee
2016-04-25 14:21:24 -04:00
Kyle Huey c73656947b Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
Daniel Holbert 1baa102033 Bug 1180107: Factor out logic for determining whether a flex item's main size could influence cross size. r=mats
MozReview-Commit-ID: 702zyjj4TPd
2016-04-25 15:58:55 -07:00
Wes Kocher 9e4d1f728a Bug 1267054 - Annotate the android assertion a=testonly
MozReview-Commit-ID: 1sTIFwhjlZR

--HG--
extra : source : 80befee8ec527372547b547cc592e555d3b6c11a
2016-04-25 15:46:55 -07:00
Mats Palmgren f469939664 Bug 1266131 part 3 - [css-grid] Adjust tests to reflect the new behavior for 'order' on grid-aligned abs.pos. descendants. 2016-04-25 18:43:04 +02:00
Mats Palmgren 9f53935bce Bug 1266131 part 2 - [css-grid] Remove unused nsDisplayList::SortByCSSOrder() function. r=dholbert 2016-04-25 18:43:04 +02:00
Mats Palmgren 91532abbc2 Bug 1266131 part 1 - [css-grid] 'order' doesn't apply to grid-aligned abs.pos. descendants (anymore). r=dholbert 2016-04-25 18:43:04 +02:00
Mats Palmgren adbc189b42 Bug 1264067 - [css-grid] Update tests that use 'fr' min-sizing. 2016-04-25 18:43:04 +02:00
Mats Palmgren 50649ed4b4 Bug 1264067 - [css-grid] 'fr' min-sizing is now invalid. r=dholbert 2016-04-25 18:43:04 +02:00
Daniel Holbert a7f628c506 Bug 1248708 followup: Use MOZ_ARRAY_LENGTH instead of ArrayLength for expression used at compile time, to fix MSVC 2013 bustage. (trivial/bustage-fix, no review)
MozReview-Commit-ID: A1thxdXB2RT
2016-04-25 09:06:54 -07:00
Sotaro Ikeda 62df9daebb Bug 1261605 - Extend fuzz r=mstange 2016-04-24 18:17:19 -07:00
Wei-Cheng Pan daa8e38158 Bug 1259641 - Do not force reflow for all tabs when size mode changed. r=smaug
MozReview-Commit-ID: GoTCM60Hmlf

--HG--
extra : transplant_source : S%88%AD%A3%99%9Bk%D3%E4U%0302%82%87o3%28%FFK
2016-04-20 11:41:42 +08:00
Lee Salzman 81e6150f5c Bug 1244918 - avoid using Infs for line start and end when painting gradients. r=mstange 2016-04-23 20:54:07 -04:00
L. David Baron 5036e4c66e Bug 1265280 - Temporary debugging code to crash with a useful abort message. r=khuey
MozReview-Commit-ID: G1XOUcfwY20

--HG--
extra : transplant_source : %3E%09%CFW%F0%7E%EA%3A0%F3AU%B1%89%F8%A0%24%07%86%BC
2016-04-23 14:17:24 -07:00
Sebastian Hengst c108701a85 Backed out changeset 68442febc36c (bug 1160200) for almost permafailing added test apng-mime/test.html Android 4.3 API15+ opt. r=backout 2016-04-23 22:33:26 +02:00
Timothy Nikkel e78e313fa5 Bug 1259246. Simplify nsDocumentViewer::FindContainerView. r=dholbert
Turn a series of nested if's into early return if's with no nesting so it is easier to follow.
2016-04-04 02:59:15 -05:00
Timothy Nikkel 4fa1d92384 Bug 1259246. Move nsIPresShell::GetRealPrimaryFrameFor to nsLayoutUtils::GetRealPrimaryFrameFor. r=dholbert
The function doesn't need to be a non-static member of nsIPresShell: it only checks if the document of the passed in element matches the presshell's document, and then the remaining code could be static. It has only one user, nsDocumentViewer::FindContainerView, and it doesn't care about the specific presshell, it just wants the primary frame, so it doesn't need the document check.

This lets us simplify nsDocumentViewer::FindContainerView because it had to jump through hoops to get the presshell.
2016-04-23 15:18:26 -05:00
Masayuki Nakano eb041d2df7 Bug 1257759 part.7 Add new internal events which represent key events on plugin r=smaug
If a plugin process posts native key events to the widget, it needs to check if the key combination is reserved by chrome because if it's reserved by chrome, the reserved shortcut key handler should be executed and the event shouldn't be handled by the focused plugin.

This patches add eKeyDownOnPlugin and eKeyUpOnPlugin.  nsXBLWindowKeyHandler will listen to them and handle them as normal keydown and keypress or keyup event.  Note that these events won't be fired on content in the default event group and won't be sent to the remote process.

MozReview-Commit-ID: H5OKPLtVdr6

--HG--
extra : rebase_source : c6852423e47c40e9953b72061262730f7cce35d7
2016-04-23 01:22:49 +09:00
Jeremy Chen f7a19af3e7 Bug 1248708 - Part2.2: render -webkit-text-stroke property. r=jfkthame 2016-04-23 01:40:39 +08:00
Jeremy Chen 84a70f3910 Bug 1248708 - Part1: parse and compute -webkit-text-stroke property. r=heycam 2016-04-23 01:40:39 +08:00
Jeremy Chen 51c6f6da30 Bug 1248708 - Part3: add reftests. r=jfkthame 2016-04-23 01:40:38 +08:00
Botond Ballo 25a9b005e6 Bug 1255214 - Only repaint GTK scrollbar button if its enablement actually changed. r=mstange
MozReview-Commit-ID: ITLeksQzvVM

--HG--
extra : rebase_source : 1a3779ab7154282388c2e57251886863e818b168
2016-04-20 19:49:09 -04:00
Benoit Girard 7320608b23 Bug 1265825 - Remove mSuppressionActive assert. r=kats
MozReview-Commit-ID: I84IfyxwusB

--HG--
extra : rebase_source : 6d1bbe4e045875aa157cd2f50f7f9f9dcc790f84
2016-04-22 11:45:35 -04:00
Ben Kelly 67cfa5a9ee Bug 1265795 P4 Always call nsDocument::SetScriptGlobalObject(nullptr) from nsDocument::Destroy(). r=bz
Currently there are certain paths in nsDocumentViewer that can call
nsDocument::Destroy(), but fail to call SetScriptGlobalObject(nullptr).  This
results in the global never being cleared.

This patch refactors things so nsDocument::Destroy() always clears the global.
This ensures a more consistent document teardown since we don't rely on
external callers to get multiple method calls correct.
2016-04-21 16:10:40 -07:00
Edwin Flores a3618f3ddb Bug 1253995 - Display stale image in nsImageFrame if we have a new src but haven't decoded it yet - r=seth 2016-04-22 14:08:25 +01:00
Ting-Yu Lin 87d7ee9f5c Bug 1262755 - Enlarge caret touch target by 59% for Fennec. r=capella,snorp
Enlarge the touch target of the caret to the left, bottom, and right by
59% (13px) per bug 1262755 comment 7.

Since the touch target becomes larger, the carets on the <input> in
previous test might cause the next test to fail on <textarea> because it
will press on the caret when trying to focus on <textarea>. Add <br>
elements to testAccessibleCarets.html to separate these test fields.

MozReview-Commit-ID: JIwmuHJ2QsQ

--HG--
extra : rebase_source : 6fbfede7cc0e395402b5858d74480dcdd5606c35
2016-04-22 18:23:47 +08:00
Jonathan Watt debbbba148 Bug 752638, part 1 - Move SVGTextFrame::SetupContextPaint to nsSVGUtils. r=heycam 2016-04-22 11:52:19 +01:00
Ting-Yu Lin bcbf8175b8 Bug 1249201 Part 2 - Show carets continuously when panning or zooming. r=mats,sebastian
Add a pref "layout.accessiblecaret.always_show_when_scrolling" defaults
to true on all platforms except b2g. When it is set to false, the carets
will be hidden during scrolling, which is the current behavior before
applying this change.

The pref "layout.accessiblecaret.extendedvisibility" was added for
Fennec to keep ActionBar open when carets temporarily hiding during
panning or zooming. Now we make carets always show by default, so the
pref can be removed. However, the floating toolbar still need to be
notified when the scrolling begins, so we dispatch "scroll" instead.

In gtest, the preference changes were in the middle of the test
function. To make the preference change clearer, I add new pref changes
or move the existing ones to the beginning of the test functions.

The 250ms transition effect added in ua.css is per request of UX
designer in bug 1249201 comment 12.

MozReview-Commit-ID: 8NGvDLPbtNY

--HG--
extra : rebase_source : 3f7a9ebdf4c70b0282dbf9e8f18cbe5cca656dbe
2016-04-21 16:53:40 +08:00
Carsten "Tomcat" Book 55fea48a3f Backed out changeset 637e80ab4fca (bug 1262755) for rc4 android perma failures
--HG--
extra : rebase_source : 26893c1afaa1c4fc23808b92d8738d847d9ff5f3
2016-04-22 09:12:50 +02:00
Timothy Nikkel 7157850587 Bug 1251150. Back out crash annotations used to try to diagnose crash.
They didn't find any problems.
2016-04-22 00:17:15 -05:00
Timothy Nikkel d5ab4ae492 Back out changesets 4bbf54c1bcd9 and ffcc3708103a from bug 1259246.
Backed out to see if they caused bug 1262027.
2016-04-21 23:14:37 -05:00
David Newton f44103a43f Bug 1160200 - APNG can't be used with type switching. r=mcaceres,r=jrmuizel 2016-04-20 23:57:00 +02:00
Ting-Yu Lin 2d3ac9ab7f Bug 1262755 - Enlarge caret touch target by 59% for Fennec. r=capella,snorp
Enlarge the touch target of the caret to the left, bottom, and right by
59% (13px) per bug 1262755 comment 7.

Since the touch target becomes larger, the carets on the <input> in
previous test might cause the next test to fail on <textarea> because it
will press on the caret when trying to focus on <textarea>. Add two <br>
to testAccessibleCarets.html to separate the <input> and <textarea>.

MozReview-Commit-ID: JIwmuHJ2QsQ

--HG--
extra : rebase_source : 73b662980a5be55a4e3e31506437f2c26f65cd85
2016-04-15 17:10:02 +08:00
Xidorn Quan c43f5c933c Bug 1260543 followup - Fix the function name in test_transitions_per_property.html. DONTBUILD
MozReview-Commit-ID: CKUpbBhN2KT

--HG--
extra : source : f2327d92b118737c4294ae61bd6d10631f0671ef
2016-04-22 12:01:16 +10:00
Xidorn Quan 1f5f8a54d0 Bug 1260543 - Treat currentcolor as computed value which is not interpolatable with actual color for text-emphasis-color and -webkit-text-fill-color. r=birtles
MozReview-Commit-ID: GUXEDHxOdNC

--HG--
extra : rebase_source : 83f47535dc6f5a1f5fe72f60ba4877ec9a16a6df
2016-04-08 13:43:09 +10:00
Bobby Holley 37c8b13e17 Bug 1266249 - Remove mHasCachedOutline. r=dbaron 2016-04-21 17:44:32 -07:00
Seth Fowler ea6f023ffe Bug 1261554 (Followup) - Fix memory reporting for PresShell::mVisibleRegions. r=me
--HG--
extra : rebase_source : ae1a692b5b89738720c728a23a81d9f71cb83e28
2016-04-21 17:38:09 -07:00
Cameron McCormack cd6a2cb8f8 Bug 1266324 - Rename style const macro for unicode-bidi:bidi-override to be consistent with other style consts. r=jfkthame 2016-04-22 10:37:21 +10:00
Xidorn Quan a6096a3c0b Bug 1097499 part 15 - Add reftests for text-combine-upright. r=jfkthame
MozReview-Commit-ID: 2PhaUnUMF5l

--HG--
extra : source : 407f4b5e701aa1aab7830dd3298ead2b37b349bf
2016-04-22 09:18:41 +10:00
Xidorn Quan f819b73b7b Bug 1097499 part 14 - Draw emphasis marks properly for text-combine-upright. r=jfkthame
MozReview-Commit-ID: 2bHWXxZDVGk

--HG--
extra : source : 492cd1cb7e3bc5e776042fddc2a656ec9160a2a9
2016-04-22 09:18:41 +10:00
Xidorn Quan e775e87790 Bug 1097499 part 13 - Draw decoration line properly for text-combine-upright. r=jfkthame
MozReview-Commit-ID: AymG09nvxh1

--HG--
extra : source : 579ca910016a1af95bb36b66d2ceb309d40288d3
2016-04-22 09:18:41 +10:00
Xidorn Quan 5f02c3cba1 Bug 1097499 part 12 - Handle spacing sensibly for text-combine-upright. r=jfkthame
MozReview-Commit-ID: DSBMUcccfNi

--HG--
extra : source : f03b556d12d5c28f7d8e3af3d7977470784eea76
2016-04-22 09:18:41 +10:00
Xidorn Quan d2e9e4f2b9 Bug 1097499 part 11 - Set width variant for text-combined frame. r=jfkthame
MozReview-Commit-ID: 60QB0PGtOKM

--HG--
extra : source : 914b8a7151bbd7ed385abb2696e6d5cefc3fadcb
2016-04-22 09:18:41 +10:00
Xidorn Quan d8f6beea61 Bug 1097499 part 9 - Transform full-width characters to non-full-width correspondents for combined text. r=jfkthame
MozReview-Commit-ID: CXntBz9HPJu

--HG--
extra : source : 950029490bd0f6d5900140693e8ab193a9efe543
2016-04-22 09:18:41 +10:00
Xidorn Quan 19931babd5 Bug 1097499 part 8 - Move CountGraphemeClusters to mozilla::unicode. r=emk
MozReview-Commit-ID: J9yR8RPs5u8

--HG--
extra : source : 7b937b3ba984e84da808cd072037726b56da1826
2016-04-22 09:18:41 +10:00
Xidorn Quan 752571191a Bug 1097499 part 6 - Inherit move direction from parent for horizontal-in-vertical text. r=jfkthame
MozReview-Commit-ID: 28mBKQnYydp

--HG--
extra : source : cf2271efff54b97ccbf30a73c903d577fca72dab
2016-04-22 09:18:41 +10:00
Xidorn Quan 79d3a9f880 Bug 1097499 part 5 - Layout text combine upright. r=jfkthame
MozReview-Commit-ID: 2HnXJ8bEvJH

--HG--
extra : source : bb721afad795a27f30e5a25479a1fd5c346970a4
2016-04-22 09:18:41 +10:00
Xidorn Quan 68af7e6457 Bug 1097499 part 4 - Adjust computed value of writing-mode on text frames when text-combine-upright is used. r=heycam
MozReview-Commit-ID: KNRe0ZpzxGr

--HG--
extra : source : dfd24ab49704b6542207aaab5b1283a4db355e60
2016-04-22 09:18:41 +10:00
Xidorn Quan d5599a3104 Bug 1097499 part 3 - Add a separate anonbox for text nodes. r=heycam
MozReview-Commit-ID: 1GfoFEGhyka

--HG--
extra : source : 38b806fd0fa54934439db0de75600def43142272
2016-04-22 09:18:41 +10:00
Xidorn Quan 747a0b5474 Bug 1097499 part 2 - Add a macro to simplify usage of nsStyleContext::GetUniqueStyleData. r=heycam
MozReview-Commit-ID: IS8KUbkXp8m

--HG--
extra : source : 5ee7bfeb7ceafcfff6c0bbd90507ed0b7b8de351
2016-04-22 09:18:41 +10:00
Xidorn Quan b1521c643f Bug 1097499 part 1 - Control support of 'text-combine-upright: digits' via a separate pref. r=heycam
MozReview-Commit-ID: JerTsxaQCL4

--HG--
extra : source : 999d1d2997591935fa1259fa42a91658da8ee078
2016-04-22 09:18:41 +10:00
Wes Kocher e80ed17c41 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 5AQXGbI0ke2
2016-04-21 15:02:19 -07:00
Ryan VanderMeulen 3b377513d8 Bug 1265913 - Re-add fuzz needed for D2D that was removed in the previous patch. r=me a=merge
MozReview-Commit-ID: IolY0nf410g

--HG--
extra : source : d65b7e80b494915e5a07bb8d4b5104688677c565
2016-04-21 12:47:08 -04:00
Wes Kocher aac511837d Merge inbound to m-c a=merge
MozReview-Commit-ID: GW9vcSRPgYc
2016-04-21 14:41:08 -07:00
Mats Palmgren 51f6396852 Bug 1266250 part 2 - [css-grid] Resurrect the 'grid-template' shorthand (backs out bug 1253529). 2016-04-21 16:18:34 +02:00
Mats Palmgren 784d6b392f Bug 1266250 part 1 - [css-grid] Resurrect the 'grid-template' shorthand (backs out bug 1253529). r=dholbert 2016-04-21 16:18:34 +02:00
Bobby Holley 1c7f68df06 Bug 1258017 - Cleanup fixes for trunk. r=me 2016-04-21 13:56:40 -07:00
Ryan VanderMeulen ac47e07f5a Bug 1265913 - Add some fuzz to the 456219-1 reftests. rs=mstange
--HG--
extra : rebase_source : d41c9faef288b83b19602c579f670b6daa87ca80
2016-04-21 10:08:02 -04:00
Jonathan Watt c7da421b17 Bug 1266101, part 1 - Remove various bits of dead code related to painting SVG text. r=heycam 2016-04-21 14:39:30 +01:00
Seth Fowler 4b0251d526 Bug 1261554 (Part 3) - Visualize Visibility::IN_DISPLAYPORT regions in the APZ minimap visibility debugger. r=botond 2016-04-21 01:22:10 -07:00
Seth Fowler 82aae6c3ed Bug 1261554 (Part 2) - Mark frames which are added to the display list when painting to the window as having Visibility::IN_DISPLAYPORT. r=mstange 2016-04-21 01:22:10 -07:00
Seth Fowler 0847460298 Bug 1261554 (Part 1) - Prepare for implementing in-displayport visibility tracking. r=mstange 2016-04-21 01:21:58 -07:00
Brian Birtles 383f4aa97c Bug 1265611 - Add tests for CSS animations; r=heycam
MozReview-Commit-ID: LTnRxQixqzJ
2016-04-21 17:05:47 +09:00
Brian Birtles 825d83d3fc Bug 1265611 - Don't trigger transitions for properties that are disabled; r=heycam
Currently if we have transition-property: 'all' and trigger a transition
on the 'color' property we will end up generating a transition on
-webkit-text-fill-color even if that property is disabled.

However, when we later call StyleAnimationValue::ToValue() in
nsTransitionManager::UpdateTransitions() to see if there are any transitions we
need to cancel, the comparison for currentValue != anim->ToValue() will pass
(since, as of the first patch in this patch series, ToValue() returns a null
value) so we end up cancelling the transition as soon as we create it).

Nevertheless, we will still trigger the warning introduced in the first patch
in this series when we call ToValue().

This patch stops us from creating transitions in the first place (and hence
triggering the warning). It also removes the code that suppresses transition
events for transitions on disabled properties since we should no longer be
generating such transitions in the first place (unless the pref is switched
while the transition is in motion which is probably not worth worrying about).

Note that we only test if the property is enabled for all content. This is
consistent with what we do throughout animation code including the existing
code in nsTransitionManager which iterates through shorthand sub-properties
using CSSPROPS_FOR_SHORTHAND_SUBPROPERTIES with the flag
nsCSSProps::eEnabledForAllContent.

The test case in this patch doesn't actually fail without this change, all it
does it trigger the warning in StyleAnimationValue::ToValue() introduced
in the first patch in this series. It's still a useful regression test however,
particularly if we later upgrade the warning in StyleAnimationValue::ToValue()
to a fatal assertion.

MozReview-Commit-ID: H9swDKLyiOf
2016-04-21 17:05:46 +09:00
Brian Birtles 135b397103 Bug 1265611 - Crashtest; r=heycam
I have verified that without the fix in the first patch in this series this
test fails, but passes with the fix applied.

MozReview-Commit-ID: JmncnapbVLa
2016-04-21 17:05:46 +09:00
Brian Birtles 99ba8fd7de Bug 1265611 - Make TransitionProperty() and ToValue() safe when mProperties is not set; r=heycam
MozReview-Commit-ID: KIzE5jdvPfT
2016-04-21 17:05:46 +09:00
L. David Baron 1fff16a212 Bug 1053986 - Rename nsBox::DoLayout to DoXULLayout. r=dholbert
Written purely with sed, over .h and .cpp files in layout/.

(While this wasn't explicitly reviewed, I'm considering it as r=dholbert
based on the request in comment 47 in the bug.)

MozReview-Commit-ID: 6Q0F4ViOyjJ
2016-04-20 21:28:35 -07:00
L. David Baron a5934125bf Bug 1053986 - Rename nsBox::EndLayout to EndXULLayout. r=dholbert
Written purely with sed, over .h and .cpp files in layout/.

(While this wasn't explicitly reviewed, I'm considering it as r=dholbert
based on the request in comment 47 in the bug.)

MozReview-Commit-ID: 6D6A0XqArES
2016-04-20 21:28:35 -07:00
L. David Baron 5d96d363af Bug 1053986 - Rename nsBox::BeginLayout to BeginXULLayout. r=dholbert
Written purely with sed, over .h and .cpp files in layout/.

(While this wasn't explicitly reviewed, I'm considering it as r=dholbert
based on the request in comment 47 in the bug.)

MozReview-Commit-ID: 5gQYEEY6jJ1
2016-04-20 21:28:34 -07:00
L. David Baron 7f9ad26421 Bug 1053986 - Fix ordering of methods in nsIFrame.h r=dholbert
This moves the declaration of a method that was incorrectly inserted between:
  // BOX LAYOUT METHODS
and:
  // END OF BOX LAYOUT METHODS

MozReview-Commit-ID: AbboPVCM4Gx
2016-04-20 21:28:34 -07:00
L. David Baron e0db98947a Bug 1053986 - Rename nsIFrame::AddCSSPrefSize, AddCSSMinSize, AddCSSMaxSize, and AddCSSFlex by replacing CSS with XUL. r=dholbert
Written purely with sed, over .h and .cpp files in layout/.

MozReview-Commit-ID: BTsQw1EMqvY
2016-04-20 21:28:34 -07:00
L. David Baron 29a427f28f Bug 1053986 - Rename nsIFrame::DumpBox to XULDumpBox. r=dholbert
Written purely with sed, over .h and .cpp files in layout/.

MozReview-Commit-ID: 7fWf9Z1ugB9
2016-04-20 21:28:34 -07:00