Commit Graph

49409 Commits

Author SHA1 Message Date
Xidorn Quan
8e3206382b Bug 1251995 part 2 - Add gfxTextRun::Range to replace parameter pairs like (offset, length) and (start, end). r=jfkthame
Although this makes some places more complicated, code should generally
be simpler and clearer. It could slightly improve performance on x64 for
functions with more than four parameters, since it makes more data be
passed via registers rather than the stack.

MozReview-Commit-ID: D0GM2Jyrr6W

--HG--
extra : rebase_source : 29961e56b5fe14b244046b3dc52b1f922c206218
2016-02-29 16:50:17 +08:00
Xidorn Quan
5b1f34e2f6 Bug 1251995 part 1 - Add helper functions to simplify code. r=jfkthame
MozReview-Commit-ID: 6UBvmEpo12f

--HG--
extra : rebase_source : e967015366b727f199fe3febedc70f1f43f19725
2016-03-04 19:20:43 +08:00
Timothy Nikkel
3849e26998 Bug 1253044. Fix fall through of observer topics when other conditions aren't met in PresShell::Observe. r=dholbert 2016-03-06 23:43:47 -06:00
Daniel Holbert
09bd32b41a Bug 458634 trivial followup: Drop executable bit from a reftest font & its license text-file. (no review) 2016-03-06 16:51:50 -08:00
Bobby Holley
9440c9f754 Bug 1253149 - Use bool instead of int for boolean return values. r=SimonSapin 2016-03-05 19:58:04 -08:00
Bobby Holley
293f493107 Bug 1253149 - Remove the #ifdef __cplusplus bits from ServoBindings.h. r=SimonSapin 2016-03-05 19:58:03 -08:00
Ryan VanderMeulen
54367e83bf Merge fx-team to m-c. a=merge 2016-03-05 19:22:45 -05:00
Phil Ringnalda
cabee82044 Back out 9 changesets (bug 801176) for frequent crashes in test_offscreencanvas_dynamic_fallback.html
Backed out changeset 82320c900699 (bug 801176)
Backed out changeset 624fb8512ba5 (bug 801176)
Backed out changeset a2a7b1c4dc5b (bug 801176)
Backed out changeset e210473d793c (bug 801176)
Backed out changeset 0fb279e041e1 (bug 801176)
Backed out changeset c090dc98c670 (bug 801176)
Backed out changeset fc509e59a0cd (bug 801176)
Backed out changeset 134a8c56335a (bug 801176)
Backed out changeset 2022afa9aef2 (bug 801176)
2016-03-05 07:20:47 -08:00
Hiroyuki Ikezoe
9cacbd5b2d Bug 1196114 - Part 5: Store performce warning information as enum type. r=birtles
Each warning message is generated only when getPropertyState() is called.

MozReview-Commit-ID: C03ZSvPv9ff

--HG--
extra : rebase_source : 5932957f8f0b171c7b100b1c22e70513959c819e
2016-03-04 17:54:25 +09:00
Hiroyuki Ikezoe
53fd8ccffb Bug 1196114 - Part 4: Localize messages for animation performance warnings. r=birtles
MozReview-Commit-ID: LPSHU2T3oP4

--HG--
extra : rebase_source : 898e11b02edd3f80452c8c2714b8364288a3fe75
2016-03-04 15:48:50 +09:00
Hiroyuki Ikezoe
d7ac86e556 Bug 1196114 - Part 3: Set AnimationPerformanceWarning messages. r=birtles
Those message will be modified in part 4 (localization).

MozReview-Commit-ID: 6TMUxemVLcu

--HG--
extra : rebase_source : 65ef1879b3e606ae6dc279981b1e995c7b2cd40b
2016-03-04 15:07:04 +09:00
Carsten "Tomcat" Book
6e681479dc Merge mozilla-central to fx-team 2016-03-04 13:40:08 +01:00
Neil Deakin
b4405ac04b Bug 1246669 - Enable test_bug749186.html and test_bug345267.html for e10s. r=dao 2016-03-04 08:49:09 +01:00
Daniel Holbert
f73795cc3b Bug 1253354: Update flexbox reftests that deal with table parts in a flex container; now these elements will be blockified & will become flex items. r=mats
Specific changes:
 - flexbox-table-fixup-001a.xhtml previously tested that table parts would get wrapped in an anonymous table, which would form a single flex item. This patch changes it to instead test that each table-part forms its own flex item.
 - flexbox-table-fixup-001b.xhtml previously was a "belt and suspenders" afterthought to its "001a" counterpart. It verified that flex-item properties (like "flex") had no effect on table parts in a flex container. This patch removes this test (since it's no longer valid) and renames the "001a" test to simply "001" as a result.
 - flexbox-with-pseudo-elements-003.html previously tested that ::before/::after pseudo-elements with table-part display values would have their flex-item-related properties ignored (because they'd be wrapped in an anonymous table). This patch flips that expectation, because now these pseudo-elements will directly become flex items and these properties should be honored.

--HG--
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-table-fixup-001a.xhtml => layout/reftests/w3c-css/submitted/flexbox/flexbox-table-fixup-001.xhtml
2016-03-03 17:15:22 -08:00
Timothy Nikkel
cd3746d910 Bug 1253052. Only schedule paint when apz aware event listener is added if event regions/apz are enabled. r=kats
Bug 1210057 added this, we should only do it if apz/event regions are enabled.
2016-03-03 15:52:09 -06:00
Ryan VanderMeulen
9dabe43310 Bug 1252266 - Fuzz some APZ reftests with off-by-one failures. 2016-03-01 16:29:30 -05:00
Ryan VanderMeulen
e5d256eaa8 Bug 1252630 - Move the asyncPan skip-if for APZ reftests to the manifest level instead of per-test. r=kats 2016-03-01 16:56:41 -05:00
Nicholas Nethercote
933e726105 Bug 1252790 - Remove RuleHashTableOps. r=dbaron.
It's a confusing and non-standard way of doing things.

--HG--
extra : rebase_source : 0aa66f4d8b028a0b002a664f18ba3b98d936d00f
2016-03-03 09:21:49 +11:00
Bobby Holley
4d0a8d44bd Bug 1253078 - Switch MOZ_STYLO environmental variable to MOZ_DISABLE_STYLO. r=dholbert 2016-03-02 15:14:55 -08:00
Mats Palmgren
3078b89191 Bug 1225005 - Clamp negative values in containing block size. r=roc 2016-03-02 23:39:34 +01:00
Mats Palmgren
a6b962bbed Bug 1251999 - [css-grid] Reftests for repeat(auto-fill/fit, <fixed-size>) where <fixed-size> has one or more intrinsic sizing functions (one is allowed). 2016-03-02 23:39:34 +01:00
Mats Palmgren
ed62d7ab53 Bug 1251999 - [css-grid] Update <fixed-size> parsing to the latest spec. r=dholbert 2016-03-02 23:39:34 +01:00
Mats Palmgren
93262a673a Bug 1250315 - Make <input type=number readonly> match :-moz-read-only and allow context events. r=jwatt 2016-03-02 23:39:34 +01:00
Mats Palmgren
f3bc22c342 Bug 1249913 - True overflow containers shouldn't have borders or background. r=dholbert 2016-03-02 23:39:34 +01:00
Mats Palmgren
5514483d5d Bug 1249913 - Reftests for 'box-decoration-break' with child overflow. 2016-03-02 23:39:33 +01:00
Nathan Froyd
bced2f7575 Bug 1253007 - part 2 - pass a const& to PaintRangePaintInfo; rs=dholbert 2016-03-02 16:40:24 -05:00
Nathan Froyd
825414ab6a Bug 1253007 - part 1 - use UniquePtr for RangePaintInfo in nsPresShell.cpp; r=dholbert 2016-01-20 16:24:28 -05:00
Stanley Mwangi
ecaaff970b Bug 1243083 - Added --disable-e10s to mochitest_options.py and reftestcommandline.py. r=ahal
MozReview-Commit-ID: I3UIS8eEZ8D

--HG--
extra : rebase_source : cad52821f891915b2d174f60c250fb80ec307525
extra : amend_source : fe1a47030662a58c409e3cf2b42dc0ace452178d
2016-03-02 16:33:13 -05:00
Felipe Gomes
0fcf346707 Bug 1250744 - Disable e10s add-ons blocking on testing profiles. r=jmaher 2016-03-02 13:50:55 -03:00
CJKu
b33d045deb Bug 1252739 - nsStyleImageLayers::HasLayerWithImage should return true when we have mask-image:<element-reference> | <gradient>; r=dbaron
MozReview-Commit-ID: 876p0IfKoUi
2016-03-02 16:27:21 +08:00
Tom Tung
6a022181ea Bug 1238845 - Implement UUID helper - dom/bluetooth & dom/webidl & layout/build change. r=jocelyn, r=bz 2016-01-15 19:30:46 +08:00
Daisuke Akatsuka
0b1a2c1ae5 Bug 1248338 - Implement iterationStart; r=birtles 2016-03-02 16:23:34 +09:00
Phil Ringnalda
3d9efc3b94 Back out 3bd640d45525 (bug 1252266) for "sorting" other conditions so they no longer work 2016-03-01 20:28:30 -08:00
Ryan VanderMeulen
7ef84e4e6d Bug 1160011 - Fuzz 518172-2b.html on OSX e10s as well. 2016-03-01 23:00:42 -05:00
Ryan VanderMeulen
72c830eed0 Bug 1252266 - Fuzz some APZ reftests with off-by-one failures on OSX e10s. 2016-03-01 16:29:30 -05:00
Ryan VanderMeulen
bfba1808a2 Bug 1160011 - Fuzz 518172-1b.html on OSX e10s. 2016-03-01 16:13:49 -05:00
Ryan VanderMeulen
292e985055 Bug 1242085 - Add fuzz to a couple font-matching reftests that fail on OSX 10.10 e10s. 2016-03-01 16:13:49 -05:00
Ryan VanderMeulen
f25de7bd9b Bug 1194533 - Fuzz a couple reftests with off-by-one failures on OSX e10s. 2016-02-29 17:50:50 -05:00
Wes Kocher
ab36d59168 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 3PWdAnh0hk5
2016-03-01 15:29:43 -08:00
Wes Kocher
d4bc23e4dd Merge inbound to m-c a=merge
MozReview-Commit-ID: B0yZpi7wa4I
2016-03-01 15:19:25 -08:00
Brendan Dahl
2ece6215a9 Bug 1235869 - Remove web runtime from android. r=myk 2016-02-29 10:31:00 +01:00
Christoph Kerschbaumer
9ab1648f67 Bug 1195172 - Use channel->ascynOpen2 layout/style/FontFaceSet.cpp (r=bz,cam) 2016-03-01 13:06:13 -08:00
Jim Mathies
744331de7b Bug 1232181 - Add an image layer for plugin frames that represent windowed plugins on platforms that support scroll capture. r=roc 2016-03-01 12:48:26 -06:00
Jim Mathies
e1dc9da3f2 Bug 1232181 - Notify plugins about scroll state. r=roc 2016-03-01 12:48:26 -06:00
Botond Ballo
cb9e347c28 Bug 1250550 - Ensure a scroll event posted during a refresh driver tick fires during that same tick. r=mats
MozReview-Commit-ID: 1ZvYjA6a5ay
2016-02-24 18:20:40 -05:00
Kartikaya Gupta
d9094aa96a Back out cset 447498cdecee for landing the wrong patch (it was obsoleted by a new one).
MozReview-Commit-ID: HOLKux4OtCQ
2016-03-01 09:38:55 -05:00
Botond Ballo
5b55c16a8a Bug 1250550 - Ensure a scroll event posted during a refresh driver tick fires during that same tick. r=mats
MozReview-Commit-ID: 1ZvYjA6a5ay
2016-02-24 18:20:40 -05:00
CJKu
9262252e5d Bug 1243734 - Part 3. Set mask-mode reftest as failure before enable mask-as-shorthand; r=dbaron
MozReview-Commit-ID: 2kvIHx5HOSX
2016-03-01 19:52:17 +08:00
CJKu
9aa8a082cd Bug 1243734 - Part 2. Set up gCSSProperties depends on mask-as-shorthand; r=dbaron
MozReview-Commit-ID: 4QBJtezm9Tt
2016-03-01 19:52:17 +08:00
CJKu
27044084c1 Bug 1243734 - Part 1. Use MOZ_ENABLE_MASK_AS_SHORTHAND to define the type of mask property; r=dbaron
MozReview-Commit-ID: FkPgdh8YHOC
2016-03-01 19:52:17 +08:00
Gregory Szorc
57bde8258a Bug 1244006 - Use const instead of MOZ_CONSTEXPR to avoid startup crash; r=dbaron
PGO builds on Visual Studio 2015 Update 1 did not take kindly to
MOZ_CONSTEXPR in this file, causing a startup crash (for reasons
I can't explain). Switching to literal "const" makes the crash
go away.

MozReview-Commit-ID: K1A43NIa6lG

--HG--
extra : rebase_source : 16c57ae79cb642b5d2945425144c726c119371b4
2016-02-29 18:20:07 -08:00
Ting-Yu Lin
b063b0cec5 Bug 1097398 Part 2 - Add preferences to make carets always tilt. r=roc
This is to support Firefox Android L style carets assets that the two
carets always look like tilt.

This patch is derived from a WIP patch by Mark Capella
<markcapella@twcny.rr.com>

MozReview-Commit-ID: H3nKLz6HcpM

--HG--
extra : rebase_source : b3a77b0bb8aaea8f010002f54fde075c9d469711
2016-02-16 16:55:28 +08:00
Ting-Yu Lin
514007237a Bug 1097398 Part 1 - Move AccessibleCaret default assets to layout/style/. r=nalexander, r=heycam
Default AccessibleCaret assets were in editor for historical reasons. Because
ua.css references them, I move them to layout/style/ and add them in jar.mn so
that we don't have to package them in various products.

MozReview-Commit-ID: 7K7qr9FK784

--HG--
rename : editor/composer/res/accessiblecaret@1.5x.png => layout/style/res/accessiblecaret-normal@1.5x.png
rename : editor/composer/res/accessiblecaret.png => layout/style/res/accessiblecaret-normal@1x.png
rename : editor/composer/res/accessiblecaret@2.25x.png => layout/style/res/accessiblecaret-normal@2.25x.png
rename : editor/composer/res/accessiblecaret@2x.png => layout/style/res/accessiblecaret-normal@2x.png
rename : editor/composer/res/accessiblecaret_tilt_left@1.5x.png => layout/style/res/accessiblecaret-tilt-left@1.5x.png
rename : editor/composer/res/accessiblecaret_tilt_left.png => layout/style/res/accessiblecaret-tilt-left@1x.png
rename : editor/composer/res/accessiblecaret_tilt_left@2.25x.png => layout/style/res/accessiblecaret-tilt-left@2.25x.png
rename : editor/composer/res/accessiblecaret_tilt_left@2x.png => layout/style/res/accessiblecaret-tilt-left@2x.png
rename : editor/composer/res/accessiblecaret_tilt_right@1.5x.png => layout/style/res/accessiblecaret-tilt-right@1.5x.png
rename : editor/composer/res/accessiblecaret_tilt_right.png => layout/style/res/accessiblecaret-tilt-right@1x.png
rename : editor/composer/res/accessiblecaret_tilt_right@2.25x.png => layout/style/res/accessiblecaret-tilt-right@2.25x.png
rename : editor/composer/res/accessiblecaret_tilt_right@2x.png => layout/style/res/accessiblecaret-tilt-right@2x.png
extra : rebase_source : bb29652fcc47725feb44397a7f9f39c89b0161b6
2016-02-16 16:55:28 +08:00
Nicholas Nethercote
6cdef547b5 Bug 1252374 - Increase the chunk size of the displayListArena. r=roc.
It reduces the number of malloc/free calls and may reduce malloc heap
fragmentation.

--HG--
extra : rebase_source : 9ca0b27fc29181667be924116807186e8eb1c1fa
2016-03-01 16:48:31 +11:00
Daniel Holbert
40bd6a6b1e Bug 1251848: Check StyleSheetHandles for being null-flavored before derefing them, in assertions within nsLayoutStylesheetCache::InvalidateSheet. r=bholley 2016-02-29 18:57:05 -08:00
Daniel Holbert
36fc48e775 Bug 1192376: Make nsImageBoxFrame check whether image size is available before trying to paint an image. r=seth 2016-02-29 15:09:13 -08:00
Daniel Holbert
e23c4f231b Bug 1247478: Rename FirstAdditionalAuthorSheet() to GetFirstAdditionalAuthorSheet(), since it can return null. r=heycam 2016-02-29 15:09:13 -08:00
Daniel Holbert
3b5be30cb3 Bug 1245978 part 3: Drop unnecessary whitespace in NS_DECL_NSIDOCUMENTVIEWERPRINT macro. (whitespace only, no review) 2016-02-29 15:09:13 -08:00
Daniel Holbert
65bef52b4d Bug 1245978 part 2: Drop redundant 'virtual' keyword from NS_DECL_NSIDOCUMENTVIEWERPRINT macro (which already includes 'override' keyword). r=heycam
This makes these lines shorter, and brings us into alignment with the Mozilla Coding Style Guide. See mozilla.dev.platform post "Proposal to alter the coding style to not require the usage of 'virtual' where 'override' is used" for more info.
2016-02-29 15:09:13 -08:00
Daniel Holbert
541713fc1f Bug 1245978 part 1: Make nsDocumentViewer::CreateStyleSet directly return the thing it creates. r=heycam 2016-02-29 15:09:13 -08:00
Jamie Nicol
609f6141ab Bug 1247098 - Take document resolution into account when computing root composition bounds for displayport base. r=tnikkel
nsLayoutUtils::CalculateCompositionSizeForFrame() is not affected by the
document resolution when called for the root content document's root
scroll frame. When determining the root composition bounds in order to
calculate a displayport base, if the frame used is the RCD-RSF we must
be sure to scale the bounds ourselves by the document resolution.

MozReview-Commit-ID: ATctmEYvWIJ

--HG--
extra : rebase_source : ba96e7ecc2cefdbeacb08fbd3f5817819dd933c8
2016-02-24 15:30:10 +00:00
Jamie Nicol
4443e3c227 Bug 1247098 - Mark nsIPresShell::GetResolution and nsPresContext::IsRootContentDocument as const. r=tnikkel
MozReview-Commit-ID: 5IXm4EUy7IN

--HG--
extra : rebase_source : 7028a908adcb36828a58bb3ad7403559cfad9eb2
2016-02-24 14:57:43 +00:00
Ting-Yu Lin
a423fc51d3 Bug 1251915 - Ignore handling eTouchCancel events. r=roc
In my original design, I treat eTouchCancel to be like eTouchEnd for
ending a caret dragging procedure.

However when pointer events is enabled, it sents an eTouchCancel event
after the eTouchStart event whose primary usage is to be converted to
pointer events, which then cancels the normal caret dragging procedure.

Moreover, when pointer events is disabled, we don't get eTouchCancel
during a normal caret dragging scenario, so we don't really need to
handle eTouchCancel anyway.

MozReview-Commit-ID: GKju2Tp0q3Q

--HG--
extra : rebase_source : 31da189fc5543c7df0d748df004fc67c87f4da7f
2016-02-29 15:51:44 +08:00
Ting-Yu Lin
5b6692bd2c Bug 1251915 - Correct AccessibleCaretEventHub coding style by clang-format. r=roc
This patch is generatedy by applying clang-format on
AccessibleCaretEventHub.cpp.

MozReview-Commit-ID: 10qPJ47CVMH

--HG--
extra : rebase_source : ff39be696ef4cd93ffbe0b9e7c95920aa03a6893
2016-02-29 15:51:44 +08:00
Bogdan Postelnicu
5a04584913 Bug 1252039 - corrected MOZ_ASSERT expression in SeparatorRequiredBetweenTokens. r=dbaron
MozReview-Commit-ID: 89XUK8hKSSE

--HG--
extra : rebase_source : 53a336311edc4faabf20a829f58ed95461aa6cf6
2016-02-29 14:26:22 +02:00
Ting-Yu Lin
883cfca3eb Bug 1250560 - Fix crash in HandleTouchEvent. r=roc
When enabling "dom.w3c_pointer_events.enabled", we might get a
eTouchCancel event without any touch data. That is, aEvent->touches is
an empty array. We need to make sure it's non-empty before accessing
aEvent->touches[0].

MozReview-Commit-ID: BQUsrJjHHEl

--HG--
extra : rebase_source : d5f435792ecc0cac79937121fa03ce6f22c59582
2016-02-28 23:16:45 +08:00
David Anderson
0efa6917a2 Ensure that content processes recreate rendering devices. (bug 1245765 part 8, r=mattwoodrow) 2016-02-29 01:53:15 -05:00
David Anderson
c00e9a5d93 Handle device resets by recreating the compositor, rather than the compositor IPDL stack. (bug 1245765 part 7, r=mattwoodrow) 2016-02-29 01:53:15 -05:00
David Anderson
dd2df9d99a Remove some static_casting in CompositorParent. (bug 1245765 part 5, r=mattwoodrow) 2016-02-29 01:53:14 -05:00
David Anderson
baa8528ec5 Fold nsDisplayBlendContainer constructors. (bug 1209278 part 3, r=mstange) 2016-02-29 01:45:43 -05:00
David Anderson
4de734947b Remove lazy scrollinfo hoisting introduced in bug 1193557. (bug 1209278 part 2, r=mstange) 2016-02-23 10:11:43 -08:00
David Anderson
b7dba4cb77 Require mix-blend mode support in all compositors and layer managers. (bug 1209278 part 1, r=mstange) 2016-02-23 10:11:21 -08:00
Ryo Motozawa
35966647ca Bug 1244641 - Part 5: Add duration tests in layout/style/test. r=hiro
MozReview-Commit-ID: JrsLXlvjJa8

--HG--
extra : transplant_source : H%24%12%FF%01%40%97%02%23ym%88%C2%C6%08T%ACB%20%91
2016-02-27 06:41:40 +09:00
Robert O'Callahan
e0d9d3c032 Bug 1250143. Account for border/padding on outer <svg> elements in GeometryUtils. r=mats
MozReview-Commit-ID: KwEwnukNgeF

--HG--
extra : rebase_source : d0ba2e4cd3e45280d8d030517c515caa04cb0b66
2016-02-25 23:54:09 +13:00
Bobby Holley
5c409b2ed2 Bug 1251496 - Forward stylesheet management to RawServoStyleSet. r=heycam 2016-02-28 00:25:34 -08:00
Bobby Holley
205b124ab5 Bug 1251496 - Introduce a servo-side data structure to represent the style set. r=heycam 2016-02-28 00:25:33 -08:00
Bobby Holley
90a86c1a2e Bug 1251496 - Hoist existing RefPtrTraits into a ServoBindingHelpers.h. r=heycam
I think we're going to have a fair number of things like this, so I'd rather
put them all in one place, rather that defining them in the header for the first
consumer that uses the type.
2016-02-28 00:25:32 -08:00
Eric Rahm
fa0cddb6fb Bug 1251770 - Remove remaining references to MOZILLA_XPCOMRT_API from layout. r=dbaron 2016-02-27 11:12:08 -08:00
Timothy Nikkel
82b750a534 Backed out changeset 93f722efcdec (bug 1145903) for causing bug 1251796. 2016-02-27 12:53:28 -06:00
Peter Van der Beken
946ac27409 Bug 1251655 - Remove support for JavaScript-DOM-class and JavaScript-DOM-interface. r=bz.
--HG--
extra : rebase_source : 88c93e93905e20d2f6755d67d86902fdfc923eb4
2016-02-14 15:59:48 +01:00
CJKu
40d4481e10 Bug 1251115 - Fix incorrect rendering result while mask path is not resolvable; r=mstange
MozReview-Commit-ID: JBl379AKnLU
2016-02-27 17:30:01 +08:00
Geoff Brown
e9ffb61914 Bug 1246797 - Avoid some new reftest failures on Android 4.3 with new AVD; r=kats 2016-02-26 14:01:12 -07:00
Geoff Brown
6dc481a362 Bug 1146693 - Enable some layout/reftests/bugs tests on Android 4.3; r=me 2016-02-26 14:01:11 -07:00
Geoff Brown
8eb29268ad Bug 1146690 - Enable layout/reftests/margin-collapsing/block-float-1b.html on Android 4.3; r=me 2016-02-26 14:01:11 -07:00
Wes Kocher
946e80d2aa Backed out changeset 3eb7e82deef8 (bug 1251115) for android mask-composite-1b.html failures
MozReview-Commit-ID: HsTW97D6aSa

--HG--
extra : rebase_source : 9357eeface8857f552ff9cbf7ff61187f01cc4b1
2016-02-26 10:06:22 -08:00
Benoit Girard
222f9bc8c4 Bug 1145903 - Use CSS to shrinkToFit instead of a racy set of width/height on the image frame. r=tnikkel
MozReview-Commit-ID: GnBcPLMGKDS

--HG--
extra : rebase_source : 665ac8fd0cf60745dff19940ddd1201a6cd5145f
2016-02-22 19:02:26 -05:00
Daniel Holbert
712c311be3 Bug 1251530: Use 'MakeUnique' instead of 'new' to populate UniquePtr variable in AddCSSValuePair. r=jwatt 2016-02-26 07:34:37 -08:00
Milan Sreckovic
65bcdb7519 Bug 1249640: Part 2 gfxPlatform simplification when it comes to accelerated canvas, using the new blocking. r=gw280 2016-02-22 14:23:00 +01:00
Milan Sreckovic
ad2dbbf528 Bug 1252929: Next.1. Make layers.max-active preference not need a restart. r=mstange 2016-03-04 12:13:57 -05:00
vincentliu
2b8952ed36 Bug 801176 - part3-v6: Keep CSSParser operations as threading safe. r=heycam
---
 dom/canvas/CanvasRenderingContext2D.cpp | 13 +++++---
 layout/style/ErrorReporter.cpp          |  9 +++++-
 layout/style/nsCSSParser.cpp            | 55 ++++++++++++++++++++-------------
 3 files changed, 51 insertions(+), 26 deletions(-)
2016-03-04 15:22:58 +08:00
Mats Palmgren
40399b7a96 Bug 1185140 - Change the expected computed display value to 'block' for flex items, also for table display types. r=bustage 2016-03-03 21:57:32 +01:00
Mats Palmgren
782f52a633 Bug 1185140 - [flexbox] Mark a few flexbox reftest as failing for now, since they assume table pseudo creation occurs before blockification. 2016-03-03 19:37:58 +01:00
Mats Palmgren
089d18caf8 Bug 1185140 - [css-grid] Reftests for Grid item blockification. 2016-03-03 19:37:58 +01:00
Mats Palmgren
95cbb97e58 Bug 1185140 - [css-grid][flexbox] Make grid/flex item blockification happen before creating table pseudos, per the latest specs. r=dholbert
CSSWG resolution:
https://lists.w3.org/Archives/Public/www-style/2015Sep/0038.html
2016-03-03 19:37:58 +01:00
Gabor Krizsanits
02d06252fa Bug 1248806 - Splitting out protocol handlers from nsLayoutModule. r=bholley 2016-03-03 12:05:52 +01:00
Seth Fowler
b4ddf9bb30 Bug 1171371 - On memory-pressure, remove any stale images from the visible images list. r=tn 2015-06-04 11:08:19 -07:00
Cameron McCormack
49f6905565 Bug 1250790 - Don't try to add CSSStyleSheets from the style sheet service to a ServoStyleSet. r=bholley 2016-02-26 12:51:02 +11:00
Cameron McCormack
0252199029 Bug 1250788 - Unified build fix. 2016-02-26 12:51:02 +11:00
Cameron McCormack
b8519d7944 Bug 1250788 - Part 6: Create ServoStyleSheets for the pref style sheet. r=bholley 2016-02-26 12:51:02 +11:00
Cameron McCormack
4a6f4650a2 Bug 1250788 - Part 5: Create and parse ServoStyleSheets in css::Loader. r=bholley 2016-02-26 12:51:02 +11:00
Cameron McCormack
c85f997b63 Bug 1250788 - Part 4: Implement enough of ServoStyleSet to handle the UA style sheets being added to it. r=bholley 2016-02-26 12:51:02 +11:00
Cameron McCormack
bc4b843c37 Bug 1250788 - Part 3.3: Implement enough of ServoStyleSheet for Loader to be able to create and parse one. r=bholley 2016-02-26 12:51:01 +11:00
Cameron McCormack
03e9025216 Bug 1250788 - Part 3.2: Factor out CSSStyleSheet members so they can be used by ServoStyleSheet. r=bholley 2016-02-26 12:51:01 +11:00
Cameron McCormack
604555f6e0 Bug 1250788 - Part 3.1: Factor out CSSStyleSheetInner members so they can be used by ServoStyleSheet. r=bholley 2016-02-26 12:51:01 +11:00
Cameron McCormack
8a373903a7 Bug 1250788 - Part 2: Expose IsCSSSheetType method. r=bholley 2016-02-26 12:51:01 +11:00
Cameron McCormack
59c55b2932 Bug 1250788 - Part 1: Add interface to create and parse Servo style sheets. r=bholley 2016-02-26 12:51:01 +11:00
CJKu
9f8577fe60 Bug 1251115 - Fix incorrect rendering result while mask path is not resolvable; r=mstange
MozReview-Commit-ID: GoYRMRPHbze

--HG--
extra : rebase_source : 78b058a4b5681ee8ca96456c3d0587d541c912db
2016-02-26 02:32:10 +08:00
James Kitchener
15da814dcd Bug 1240799 - Apply axis height for mfrac elements without bar. r=fredw
--HG--
extra : rebase_source : e1af3219a73e3cf10b04f6b0dde81df0a56b684a
2016-02-20 02:59:00 +01:00
Alexander Surkov
d26328b368 Bug 1250333 - do not create accessibles for trailing BRs, r=davidb, roc 2016-02-25 07:09:59 -05:00
CJKu
4985b55721 Bug 1224424 - Replace mask-mode:auto keyword by mask-mode:match-source; r=dbaron
MozReview-Commit-ID: FKEJI1rHTIA

--HG--
extra : rebase_source : cdd72c6ae3b44e75d0f3415d99d3a897729a43fc
2016-02-25 17:31:47 +08:00
Brendan Dahl
1e077c8a5f Bug 1104916 - Implement CSS media query display-mode. r=cam 2016-02-23 17:10:00 +01:00
Cameron McCormack
995d7af691 Preemptive unified build fix; no bug. 2016-02-25 17:26:12 +11:00
Matt Woodrow
3bf68e972e Bug 1248323: P3. Add test for NV12/YUV422 readback. r=me
reftest is disabled on windows due to localized try readback errors that can't be reproduced.

MozReview-Commit-ID: 379PZsRE5d6

--HG--
extra : rebase_source : b990572c0f33860998eb5485824e417387d3e204
2015-02-26 08:01:07 +13:00
Brian Birtles
1231ac3eea Bug 1239945 part 5 - Use MayHaveAnimations() to return early in CommonAnimationManager::GetAnimationCollection; r=dholbert
Currently, CommonAnimationManager::GetAnimationCollection returns early when
the referenced list of animation collections is empty. So, for example, if
we try to get the collection of CSS animations on an element on a page with no
CSS animations, we will quickly return null without possibly expensive property
lookup. However, if there is just one CSS animation on the page, we will do the
property lookup for every element in the page where this method is called.

In this bug, we would like to remove the linked list of animation collections
since this is now the only place where it is used. So, in place if this
optimization, we introduce quite a different one based on the changes from bug
1226091 which makes MayHaveAnimations() apply to animations on the element
itself as well as pseudo elements. Using this, we can return early for any
element that has never had any kind of animation on it. The page may have
dozens of other animations but we will still return early. However, if the
element has ever had any kind of animation on it, we will not return early. It
is expected that this optimization is at least as good as the one it replaces.
2016-02-24 16:09:31 +09:00
Brian Birtles
f6ce89fead Bug 1239945 part 4 - Remove the pointer from an AnimationCollection to its manager since it is no longer used; r=dholbert 2016-02-24 16:08:56 +09:00
Brian Birtles
5413ebdb9d Bug 1239945 part 3 - Move AnimationCollection to a separate file; r=dholbert
In this bug we will trim off unnecessary functionality from the animation
managers and make AnimationCollection into an independent data type
so in this patch we separate it into its own file.

It is also generally easier to navigate the source code and eliminate
cyclic dependencies between header files when there is a rough
correspondance between class names and file names (e.g. rather than having
#include "AnimationCommon.h" // For mozilla::AnimationCollection).

This patch also makes a few simplifications to include dependencies since
they're a bit of a mess (making it hard to move code around). The changes to
IncrementalClearCOMRuleArray.cpp are due to the changes to the unified build
introduced by adding AnimationCollection.cpp exposing a missing include from
that file.
2016-02-24 16:08:20 +09:00
Brian Birtles
a9218457d2 Bug 1239945 part 2 - Drop CommonAnimationManager::ContentOrAncestorHasAnimation; r=dholbert
This was added in bug 780692 to work around assertions that arose due to the
inconsistent state introduced by mini-flushes. However, that workaround
no longer seems necessary. In particular, the crashtest for bug 813372 no
longer reports failed assertions when we remove this method and nor do any
other tests.

I'm not sure exactly what changed about how we do mini-flushes but I suspect
it was bug 960465 or one of the related follow-ups.
2016-02-24 15:42:33 +09:00
Brian Birtles
d06f85599d Bug 1239945 part 1 - Drop a number of animation manager/collection-related methods that are unused (and in some cases undefined); r=dholbert 2016-02-24 13:41:16 +09:00
Brian Birtles
633a6e61b2 Bug 1239945 part 0 - Fix unified build 2016-02-25 12:00:46 +09:00
Hiroyuki Ikezoe
8f7f1cc1b7 Bug 1242872 - Part 8: ElementPropertyTransition::ToValue(). r=birtles
MozReview-Commit-ID: 2zSAG6zcoYc
2016-02-19 16:43:06 +09:00
Hiroyuki Ikezoe
07c3358f3c Bug 1242872 - Part 7: Eliminate creation of temporary animations. r=dbaron
This patch removes a loop for the new temporary animation collection in
CheckAnimationRule.  The old collection is passed to CSSAnimationBuilder,
and CSSAnimationBuilder removes each animation which matches to new animation
name in it.
:birtles took care of storing animations in AnimationCollection in reverse order.
Thanks so much!

MozReview-Commit-ID: KmlnjFptKdv
2016-02-19 14:10:43 +09:00
Hiroyuki Ikezoe
606ae12164 Bug 1242872 - Part 6: Trigger a layer update explicitly when copying animation properties. r=birtles
MozReview-Commit-ID: AWL43ypqLPT
2016-02-19 09:16:15 +09:00
Hiroyuki Ikezoe
e80b4bb7b2 Bug 1242872 - Part 5: Change CopyPropertiesFrom to UpdateProperties. r=birtles
Once we don't create any temporary effect, we do not need to pass
the effect to CopyPropertiesFrom.

MozReview-Commit-ID: HczU5IU6Ggp
2016-02-19 09:16:15 +09:00
Hiroyuki Ikezoe
1cdd02df80 Bug 1242872 - Part 4: Factor updating animation properties process out. r=dbaron
MozReview-Commit-ID: 8VWdC3wFRZX
2016-02-19 09:16:15 +09:00
Hiroyuki Ikezoe
d0a6cc2bb8 Bug 1242872 - Part 3: Factor finding old animations process out. r=dbaron
MozReview-Commit-ID: H4bFKGpnhpX
2016-02-19 09:16:15 +09:00
Hiroyuki Ikezoe
67a3778e18 Bug 1242872 - Part 2: Set timeline in CSSAnimationBuilder::Build. r=dbaron
MozReview-Commit-ID: 6bisME1VK0d
2016-02-19 09:16:15 +09:00
Hiroyuki Ikezoe
e0d8bc16e9 Bug 1242872 - Part 1.1: Move AnimationManager::BuildAnimations. r=dbaron
MozReview-Commit-ID: ENfBlECSiDP
2016-02-19 09:16:15 +09:00
Hiroyuki Ikezoe
ed1cf18658 Bug 1242872 - Part 1: Introduce CSSAnimationBuilder to factor a bunch of stuff in BuildAnimations and CheckAnimationRule out. r=dbaron
MozReview-Commit-ID: 7921De3IVA6
2016-02-19 09:16:15 +09:00
Cameron McCormack
0ea3fe0527 Bug 1250767 - Unified build bustage fixups. 2016-02-25 11:09:34 +11:00
Bobby Holley
3b95f5b981 Bug 1250767 - Reorder Gecko EventState to match Servo's ElementState, and add an API to let Servo access it. r=heycam,r=bz 2016-02-23 17:51:47 -08:00
Bobby Holley
eb6ef53678 Bug 1250767 - Add support for hanging servo node data off Gecko nodes. r=heycam,r=bz 2016-02-23 17:28:50 -08:00
Bobby Holley
bb80449368 Bug 1250767 - Basic Servo Bindings. r=heycam 2015-11-24 17:14:39 -08:00
L. David Baron
b64070584c Bug 1187851 patch 6 - Make dynamic changes to filter change fixed position containing block for descendants. r=roc
MozReview-Commit-ID: DDSadc3yzDL
2016-02-24 16:08:31 -08:00
L. David Baron
ba1571ac4f Bug 1247929 patch 5 - Remove spurious canvas rule from reftests. r=dholbert
This removes a rule that was incorrectly added in the tests in patch 3,
which dholbert pointed out in a review comment (comment 18) made after
granting review (and only 3 minutes before I pushed the patches), which
I didn't see before pushing them.

I had incorrectly copied that rule from the
min-intrinsic-with-percents-across-elements.html test, which I based
these on.

MozReview-Commit-ID: IARSYkKkIRx
2016-02-24 16:08:31 -08:00
Sebastian Hengst
7988324ccb Backed out changeset 24309d9b5c7e (bug 1250767) for Windows bustage. r=bustage on a CLOSED TREE 2016-02-24 22:51:02 +01:00
Sebastian Hengst
48649adbe3 Backed out changeset 59ee7ae2519d (bug 1250767) 2016-02-24 22:50:51 +01:00
Sebastian Hengst
005b11b368 Backed out changeset 796b681561a7 (bug 1250767) 2016-02-24 22:50:40 +01:00
Bobby Holley
628b01c94e Bug 1250767 - Reorder Gecko EventState to match Servo's ElementState, and add an API to let Servo access it. r=heycam,r=bz 2016-02-24 13:01:18 -08:00
Bobby Holley
e1f6eb4ca5 Bug 1250767 - Add support for hanging servo node data off Gecko nodes. r=heycam,r=bz 2016-02-24 13:01:15 -08:00
Bobby Holley
3ee259b378 Bug 1250767 - Basic Servo Bindings. r=heycam 2016-02-24 13:01:04 -08:00
Robert O'Callahan
ffcca678ac Bug 1243623. Don't skip unregistering a table part if we have a split table. r=mats
MozReview-Commit-ID: 2GHprw8YGsx

--HG--
extra : rebase_source : 1e81751c22f7c78e26b2838d74ec2d682f00d0a6
2016-02-10 12:18:55 +13:00
L. David Baron
1cd0ed68ff Bug 1250342 patch 5 - Additional comment and variable name changes that should have been in patches 1 or 3.
MozReview-Commit-ID: IniRrCKSNuZ

--HG--
extra : rebase_source : ce42730f9f1d8a2e87fcf0d8f0095803d8ef099c
2016-02-24 11:06:25 -08:00
Daniel Holbert
d79889429f Bug 1250342 patch 4: Update & rename reftest 'text-align-true.html' to use 'unsafe' instead of 'true'. r=dbaron
MozReview-Commit-ID: vKXJ8M8GSs

--HG--
rename : layout/reftests/text/text-align-true-ref.html => layout/reftests/text/text-align-unsafe-ref.html
rename : layout/reftests/text/text-align-true.html => layout/reftests/text/text-align-unsafe.html
2016-02-24 10:40:30 -08:00
L. David Baron
1182aed626 Bug 1250342 patch 3: Rename preference layout.css.text-align-true-value.enabled to layout.css.text-align-unsafe-value.enabled . r=mats
MozReview-Commit-ID: 6IKnuvxZQcI
2016-02-24 10:40:30 -08:00
L. David Baron
96d86ab5e7 Bug 1250342 patch 2: Rename NS_STYLE_TEXT_ALIGN_TRUE to NS_STYLE_TEXT_ALIGN_UNSAFE. r=mats
MozReview-Commit-ID: LuHepP37jtr
2016-02-24 10:40:30 -08:00
L. David Baron
b6111122f6 Bug 1250342 patch 1: Rename exposed keyword for text-align: true to unsafe. r=mats
MozReview-Commit-ID: LYR3LtMtT2Q
2016-02-24 10:40:30 -08:00
L. David Baron
772aa66f53 Bug 1247929 patch 4 - Adjust reftest manifest for existing tests. r=dholbert
This reverts some of the changes made in bug 823483 patch 3 because it
turns out we don't want all of that behavior change.

MozReview-Commit-ID: Lbpi762qsbM
2016-02-24 10:40:30 -08:00
L. David Baron
a549515438 Bug 1247929 patch 3 - Reftests. r=dholbert
MozReview-Commit-ID: 95m014qFquG
2016-02-24 10:40:30 -08:00
L. David Baron
80475d611d Bug 1247929 patch 2 - Hard-code the Web-compatible set of form controls whose intrinsic minimum inline-size shrinks to 0 when inline-size (width) is specified as a percentage. r=dholbert
This adjusts the behavior previously modified by bug 823483 patch 2 and
bug 823483 patch 5.

MozReview-Commit-ID: 5IjYhFLUr68
2016-02-24 10:40:29 -08:00
L. David Baron
19ebacc921 Bug 1247929 patch 1 - Add GetType() overrides for nsProgressFrame and nsMeterFrame. r=dholbert
These frames previously inherited nsFrame::GetType (which returns null).

MozReview-Commit-ID: 42UzPxaD5pN
2016-02-24 10:40:29 -08:00