Boris Zbarsky
3e7d2d87cf
Bug 1387143 part 12. Remove nsISelectionPrivate::Add/RemoveSelectionListener. r=mats
...
None of the C++ callers of RemoveSelectionListener care about whether the
listener was already-added, and the only JS caller is in a test and knows the
listener was added. So the behavior change to no-op instead of throwing when
trying to remove a nonexistent listener is OK. Furthermore, the removal is
null-safe, so there's no point to explicitly failing if null is passed (which
it never is).
Since content can't directly add selection listeners, we can just use an
infallible append instead of returning errors callers don't check for anyway.
Also, no one passes null to AddSelectionListener, so we don't have to worry
about that part.
2018-05-08 13:52:37 -04:00
Boris Zbarsky
abdd178705
Bug 1387143 part 7. Move the TABLESELECTION_* constants from nsISelectionPrivate to a TableSelection enum. r=mats
2018-05-08 13:52:36 -04:00
Boris Zbarsky
c4c94974c4
Bug 1387143 part 5. Remove JS use of nsISelectionPrivate. r=mats
2018-05-08 13:52:36 -04:00
Boris Zbarsky
46cae9462a
Bug 1387143 part 3. Stop using nsISelection in nsISelectionController. r=mats
2018-05-08 13:52:36 -04:00
Boris Zbarsky
b23f25078d
Bug 1387143 part 1. Stop using nsISelection in nsISelectionListener. r=mats
2018-05-08 13:52:35 -04:00
Chris Peterson
71422dcaa9
Bug 1457813 - Part 2: Replace non-asserting NS_PRECONDITIONs with MOZ_ASSERTs. r=froydnj
...
s/NS_PRECONDITION/MOZ_ASSERT/ and reindent
MozReview-Commit-ID: KuUsnVe2h8L
--HG--
extra : source : c14655ab3df2c9b1465dd8102b9d25683359a37b
2018-04-28 12:50:58 -07:00
Mats Palmgren
7db87acde1
Bug 1452383 part 2 - [css-grid] Remove local enum LineRangeSide and use LogicalSide instead (idempotent patch). r=dholbert
2018-05-05 22:21:17 +02:00
Mats Palmgren
f9c9cf6df6
Bug 1452383 part 1 - [css-grid] Use LogicalAxis instead of passing member pointers (idempotent patch). r=dholbert
2018-05-05 22:21:17 +02:00
Mats Palmgren
3518ef2a3e
Bug 1452368 part 1 - [css-grid] Fix off-by-1 calculation in line clamping limit for auto-placed items. r=dholbert
2018-05-05 22:21:17 +02:00
Mats Palmgren
7d559398bd
Bug 1458028 - Try also the OverflowList and next-in-flows when searching for the first child frame. r=xidorn
2018-05-05 01:06:57 +02:00
Matt Woodrow
6e5300c113
Bug 1456534 - Make sure we do a full display list rebuild on the next frame after creating a displayport during painting. r=mstange
...
MozReview-Commit-ID: 9SZMjf43G7S
--HG--
extra : rebase_source : 8d22bbb4aedf5e91ef2c20e4297cfde5292bf6e0
2018-05-04 10:23:18 -04:00
Ciure Andrei
82f7c496dc
Merge inbound to mozilla-central. a=merge
2018-05-04 00:52:04 +03:00
Eugen Sawin
8bee753352
Bug 1458687 - [1.0] Remove obsolete isUserTriggered argument in nsContentUtils::TriggerLink. r=smaug
2018-05-03 16:05:34 +02:00
Neil Deakin
5d96e7d4d3
Bug 1444920, remove the debug='true' flag from xul elements and the corresponding debug frame flags, r=dholbert
2018-05-02 10:32:54 -04:00
Brad Werth
edc885a2e3
Bug 1451499 Part 3: Implement polygon for shape-margin > 0. r=jfkthame
...
MozReview-Commit-ID: BJtGaJBQMQr
--HG--
extra : rebase_source : 28673e9758b15647dd8603f87d997566f257c62c
2018-04-19 11:47:04 -07:00
Brad Werth
51417a7fcd
Bug 1451499 Part 2: Stub in support for polygon with shape-margin == 0. r=jfkthame
...
MozReview-Commit-ID: 2biFnthoWin
--HG--
extra : rebase_source : a3bb7051555e1b19be1864de777dc2b7c96b24ed
2018-04-19 11:27:28 -07:00
Brad Werth
c3368afe4a
Bug 1451499 Part 1: Uplift some interval methods from ImageShapeInfo to ShapeInfo. r=jfkthame
...
MozReview-Commit-ID: AMwujPuTeOm
--HG--
extra : rebase_source : 8872b15c63d39473aa39c9e58a70fd363c0fc031
2018-04-19 12:17:44 -07:00
Brad Werth
99b2977f75
Bug 1457288 - Part 3: Change distance field sizes and indexes to be unsigned ints, avoiding undefined behavior with potential int overflows. r=mats
2018-04-30 12:25:13 -07:00
Brad Werth
bed36b14d5
Bug 1457288 - Part 2: Clamp shape-margin distance field operands to prevent int multiplication overflow when allocating. r=mats
2018-04-27 18:10:51 -07:00
Brad Werth
914c3f1d6c
Bug 1457288 - Part 1: Clamp EllipseShapeInfo distance field operands to the maximum shape-margin we are willing to compute. r=mats
...
MozReview-Commit-ID: IXAV0uaxB0R
2018-04-27 13:10:08 -07:00
Cosmin Sabou
68fdb6cf4f
Merge inbound to mozilla-central. a=merge
2018-04-27 13:04:36 +03:00
Boris Zbarsky
93af0eea13
Bug 1455674 part 14. Remove use of nsIDOMElement in layout. r=qdot
2018-04-26 23:37:33 -04:00
Boris Zbarsky
52916ae726
Bug 644603 part 2. Ignore scroll positions when calculating the position of hypothetical boxes. r=dbaron
2018-04-26 17:55:45 -04:00
Boris Zbarsky
8bf73defc4
Bug 644603 part 1. Introduce nsIFrame::GetOffsetToIgnoringScrolling. r=dbaron
2018-04-26 17:53:05 -04:00
Emilio Cobos Álvarez
081d926e7b
Bug 1457026: Teach nsDocumentEncoder about display: contents. r=mats
...
MozReview-Commit-ID: 5F3qurRHMNM
2018-04-26 18:06:37 +02:00
Boris Zbarsky
8a0b50bea8
Bug 1456588 part 1. Change nsIFocusManager::SetFocus to take Element. r=enndeakin
2018-04-26 10:37:46 -04:00
shindli
c72db9830d
Merge mozilla-central to autoland. a=merge CLOSED TREE
2018-04-27 00:44:51 +03:00
Kartikaya Gupta
b881108e5b
Bug 1456114 - Update for WR PR 2679. r=jrmuizel
...
MozReview-Commit-ID: GrFwU62DcWU
--HG--
extra : rebase_source : bacebaedb5870063f30053def14fe5ab49954925
2018-04-26 14:15:19 -04:00
Timothy Guan-tin Chien
f6cc388fd8
Bug 1450017 - Part IV, Always set resizer direction explicitly in ScrollFrameHelper::CreateAnonymousContent() r=enndeakin+6102
...
Given that we have access to the RTL/writing modes information via
ScrollFrameHelper::IsPhysicalLTR(), set the dir to bottomleft/bottomright
instead of context-aware value bottomend.
MozReview-Commit-ID: Lfe053WOsY2
--HG--
extra : rebase_source : 3bcab336bbb6ee45adecc95f5c113b76f7ea00c1
extra : source : 60cbc29f51d3605fefa35bcba42ef5f39ed32cdf
2018-04-10 21:10:29 +08:00
Kartikaya Gupta
fc66c485b6
Bug 1456882 - Enable some passing mochitests on linux64-qr. r=jrmuizel
...
MozReview-Commit-ID: 5VIHjwx6A2j
--HG--
extra : rebase_source : d986028cff52ba52a58887225e272bf04ad88de3
2018-04-25 11:29:07 -04:00
Brad Werth
9b1031c464
Bug 1265342 Part 7: Implement shape-margin for shape-outside: shape-box. r=dholbert
...
MozReview-Commit-ID: 67vq9Gcr8qJ
--HG--
extra : rebase_source : afea3fab0bfd0ad538ddc902f9a8ffedd4a65862
2018-02-26 14:47:31 -08:00
Brad Werth
8511677375
Bug 1265342 Part 6b: Implement shape-margin for shape-outside: inset, for general case of shape-margin > 0. r=dholbert
...
MozReview-Commit-ID: 4pjALPSIBhI
--HG--
extra : rebase_source : b8c065173e04033795baa67c4fcf8222103182cb
2018-04-17 11:39:50 -07:00
Brad Werth
c8f1b46489
Bug 1265342 Part 6a: Implement shape-margin for shape-outside: inset, for some special cases with shape-margin > 0. r=dholbert
...
MozReview-Commit-ID: AEOksiuM0GJ
--HG--
extra : rebase_source : edc6f6040760d3facb3a7f6bcdc39f1d8fa208f0
2018-04-13 11:29:14 -07:00
Brad Werth
b935ad1265
Bug 1265342 Part 5d: Move EllipseShapeInfo class definition ahead of RoundedBoxShapeInfo so it can be referenced by rounded boxes. r=dholbert
...
MozReview-Commit-ID: G8qdPlnh8kY
--HG--
extra : rebase_source : 2917054937f488c601394f1d244151c9c3df7596
2018-04-17 11:59:11 -07:00
Brad Werth
eb8a0661ae
Bug 1265342 Part 5c: Add some asserts to ensure ellipse distance field index values are in-bounds. r=dholbert
...
MozReview-Commit-ID: CpuWWaLh1CX
--HG--
extra : rebase_source : 6db8ba9191f1211d8ea2435b23dc13caae39955c
2018-04-20 13:43:36 -07:00
Brad Werth
6c6be70823
Bug 1265342 Part 5b: Complete the implementation of shape-margin for ellipse (handling shape-margin: > 0). r=dholbert
...
MozReview-Commit-ID: CovCfk5ryEn
--HG--
extra : rebase_source : 4691876fd2afb2833ddf416821988f59abd4c019
2018-04-11 15:18:32 -07:00
Brad Werth
6c5a82a38c
Bug 1265342 Part 5a: Implement shape-margin for shape-outside: circle and ellipse (ellipse only for shape-margin: 0). r=dholbert
...
MozReview-Commit-ID: HeipoUTkqUE
--HG--
extra : rebase_source : 21de8ff25a10ea8007a310e91254cf17346cdd3f
2018-02-26 13:13:03 -08:00
Brad Werth
104fcf3ad7
Bug 1265342 Part 4b: Add some logic and asserts to ensure distance field index values and image index values are in-bounds. r=dholbert
...
MozReview-Commit-ID: 1C9vB14Qhyj
--HG--
extra : rebase_source : 1f5d912deb27c4f1e2a65e609d6ebc825ab34790
2018-04-20 14:04:15 -07:00
Brad Werth
314184fbb8
Bug 1265342 Part 4a: Complete the implementation of shape-margin for shape-outside: image (handling shape-margin: > 0). r=dholbert
...
MozReview-Commit-ID: 4xqfqWB78Oh
--HG--
extra : rebase_source : 5ca9e80eb25b9100f7bcbc5a7936b3ec5ce3f1cd
2018-02-22 11:11:03 -08:00
Brad Werth
e53f7f51ac
Bug 1265342 Part 3: Stub in shape-margin for shape-outside: image, by implementing only for shape-margin: 0. r=dholbert
...
MozReview-Commit-ID: 2gVRyQtd7Io
--HG--
extra : rebase_source : 1e3cd2e71d7dbb89db74c5ce8ac88695c70843a1
2018-03-12 17:04:34 -07:00
Brad Werth
eeb34f4713
Bug 1265342 Part 2b: Refactor interval creation for shape-outside:image. r=dholbert
...
MozReview-Commit-ID: LnzQPsSBVqY
--HG--
extra : rebase_source : 20ff59b099ae7e7f0f3e5207b017f919d5b6f661
2018-02-28 10:43:43 -08:00
Brad Werth
405f362460
Bug 1265342 Part 2a: Move interval binary search method into ShapeInfo. r=dholbert
...
MozReview-Commit-ID: BxJxIU0RVAo
--HG--
extra : rebase_source : c822c3fd56fe8fc11aeb7aab10afa440a2a53931
2018-04-11 14:05:06 -07:00
Jamie Nicol
e8077ba4d8
Bug 1449608 - Avoid calling ComputeScrollMetadata repeatedly for same scroll frame and clip. r=mstange
...
Currently in ContainerState::SetupScrollingMetadata we call
ComputeScrollMetadata for every layer and for each ASR in the layer's
clip chain. If there are many sibling layers with the same clip then
this is largely wasted work.
This change makes us cache the most recently calculated result, and
only recalculate if the ASR or clip is different.
There was a small portion of ComputeScrollMetadata that must actually
be executed for every layer and ASR in its clip chain. This has been moved
to a separate function, ClipLayerToDisplayPort, that is still called
every time.
MozReview-Commit-ID: 7Zzblmimtc5
--HG--
extra : rebase_source : 85ee310ceaaff5fa8a1ccb513ffaf90904ace19d
2018-04-19 14:48:04 +01:00
Margareta Eliza Balazs
551cdf87ce
Merge mozilla-central to inbound. a=merge CLOSED TREE
2018-04-24 14:52:40 +03:00
Margareta Eliza Balazs
36dec78aec
Merge inbound to mozilla-central. a=merge
...
--HG--
rename : toolkit/mozapps/extensions/internal/XPIProviderUtils.js => toolkit/mozapps/extensions/internal/XPIDatabase.jsm
2018-04-24 12:42:08 +03:00
Bas Schouten
8338ab994b
Bug 1387399: Add SIMD optimizations for methods used frequently in nsRect. r=jrmuizel
...
This improves the DisplayList Mutate Talos test by about 5% on windows, as well as numerous smaller improvements on DisplayList heavy tasks.
MozReview-Commit-ID: tlEtPjqWI4
2018-04-19 15:56:29 +02:00
Ciure Andrei
84bde96dc6
Merge mozilla-central to autoland. a=merge CLOSED TREE
2018-04-24 04:26:26 +03:00
Ciure Andrei
33e644e1da
Merge inbound to mozilla-central. a=merge
2018-04-24 04:14:21 +03:00
Matt Woodrow
1c08a21338
Bug 1439809 - Add an index parameter to nsDisplayWrapList to prevent scrollbar frames from creating duplicates. r=mattwoodrow
...
MozReview-Commit-ID: 8somakqqA3P
--HG--
extra : rebase_source : 9d82377196b53c3df3f2bfd4683d8454b1a3fa86
2018-04-24 12:59:08 +12:00
Matt Woodrow
00069d57ec
Bug 1452805 - Make sure we rebuild contents infront and behind stacking contexts if their size might have changed. r=miko
...
The test invalidates the z-index element, so that we do a partial build with just that and the DAG no longer knows the relative ordering between it and the other blue elements.
We then expand the size of the 'first' elements stacking context, and ensure that we provide enough intersecting items to know that we're on top of the z-index element.
MozReview-Commit-ID: KP7c3bnwfBd
* * *
[mq]: fix
MozReview-Commit-ID: EuraqvaUS35
--HG--
extra : rebase_source : 9e2e4f2dc661cc552891499a614d489625ea895d
2018-04-15 16:38:45 +12:00