Commit Graph

26 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
4b8b5e1717 Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj
This was done automatically replacing:

  s/mozilla::Move/std::move/
  s/ Move(/ std::move(/
  s/(Move(/(std::move(/

Removing the 'using mozilla::Move;' lines.

And then with a few manual fixups, see the bug for the split series..

MozReview-Commit-ID: Jxze3adipUh
2018-06-01 10:45:27 +02:00
Emilio Cobos Álvarez
fae4d1bc87 Bug 1422653: Compute whether XBL is involved in ChildIterator lazily. r=mats
The only thing that cares about it is the frame constructor, it's a shame that
everyone else (in particular, the style system) needs to pay this extra walk
over the DOM.

MozReview-Commit-ID: F7S5zx9KMlp
2018-02-28 23:15:33 +01:00
Margareta Eliza Balazs
5cdf96402b Backed out changeset 283b2a4cb219 (bug 1422653) for bustage in /builds/worker/workspace/build/src/layout/base/nsCSSFrameConstructor.cpp:6840:26 on a CLOSED TREE 2018-02-28 12:25:31 +02:00
Emilio Cobos Álvarez
4b0099e37b Bug 1422653: Compute whether XBL is involved in ChildIterator lazily. r=mats
The only thing that cares about it is the frame constructor, it's a shame that
everyone else (in particular, the style system) needs to pay this extra walk
over the DOM.

MozReview-Commit-ID: F7S5zx9KMlp
2018-02-28 10:43:00 +01:00
Jessica Jong
af2b401f6a Bug 1409975 - Part 2: Include slots in the flat tree. r=smaug,emilio
We should consider slot as a parent in ChildIterator: if slot's
`assignedNodes` is not empty, use `assignedNodes`, otherwise, use direct
children as fallback content.
Also, GetFlattenedTreeParentNodeInternal should be changed to use
`assignedSlot` instead of `DestInsertionPoints`.
2017-12-04 16:06:37 +08:00
Emilio Cobos Álvarez
a289950f9f Bug 1413619: Fix insertion point computation when display: contents pseudos are involved. r=mats,bz
This is a significant rework of how do we compute the insertion point of a
node.

We handle pseudos in the same function instead of out of band, and also recurse
up when the parent has display: contents, which simplifies the code IMO.

MozReview-Commit-ID: 1rSfv1Tq5gO
2017-11-04 11:58:16 +01:00
Olli Pettay
98580ecdff Bug 1396584 - Remove support for multiple ShadowRoots, r=mrbkap 2017-09-25 18:09:26 +03:00
Cameron McCormack
8adbbf9087 Bug 1372061 - Shuffle some fields around to avoid bindgen issues. r=emilio
MozReview-Commit-ID: IMzcnJRtGJi
2017-06-29 22:39:31 -07:00
Sebastian Hengst
c7754c805c Backed out changeset 39f4723df4a3 (bug 1372061) for build bustage: ChildIterator.h:43:7: field 'mIndexInInserted' will be initialized after field 'mIsFirst'. r=backout 2017-06-30 02:52:55 +02:00
Cameron McCormack
240250ab2e Bug 1372061 - Shuffle some fields around to avoid bindgen issues. r=emilio
MozReview-Commit-ID: 8PKFowep2b2
2017-06-29 17:32:52 -07:00
Cameron McCormack
592b59d3a2 Bug 1372061 - Remove unused StyleChildrenIterator::IsNeeded. r=bholley
MozReview-Commit-ID: LH8xZMrcdO1
2017-06-27 23:56:13 -07:00
Cameron McCormack
6f01ef8c21 Bug 1372061 - Change StyleChildrenIterator FFI functions to use placement new/delete. r=bholley
MozReview-Commit-ID: BEWvJcaJxA
2017-06-27 23:56:13 -07:00
Emilio Cobos Álvarez
be614d0d72 Bug 1371130: Move AllChildrenIterator::AppendNativeAnonymousChildren to nsContentUtils. r=heycam
MozReview-Commit-ID: E5kfdxEWTuf
2017-06-20 14:24:34 +02:00
Emilio Cobos Álvarez
e3ee5f5400 Bug 1331047: Also traverse native anonymous content in the style system. r=bholley
MozReview-Commit-ID: 6wTqBAqTH69
2017-04-27 17:09:04 +02:00
Cameron McCormack
3072a80842 Bug 1321284 - Part 1: Make StyleChildrenIterator skip NAC generated by root element primary frame ancestors. r=bholley
MozReview-Commit-ID: HICYWQgkE77
2016-12-01 11:34:57 +08:00
Xidorn Quan
830abc700c Bug 1309868 part 1 - Use const nsIContent pointer in some DOM utils. r=bholley
MozReview-Commit-ID: H4g2VbWJUba
2016-10-18 15:29:03 +11:00
Bobby Holley
b39340a6c0 Bug 1292662 - Add an API for the Servo style system to traverse anonymous children. r=heycam 2016-08-25 21:36:43 -07:00
Bobby Holley
6cf3bcf72d Bug 1297572 - Handle the root scroll frame in AllChildrenIterator. r=heycam 2016-08-25 21:34:23 -07:00
Alexander Surkov
33d71f96f8 Bug 1253834 - add AllChildrenIterator::Get(), r=bz 2016-03-08 15:54:46 -05:00
Alexander Surkov
a702476020 Bug 1249443 - add AllChildrenIterator::Phase, r=bz 2016-03-05 16:11:34 -05:00
Alexander Surkov
b9ed2dd17f Bug 1249443 - add AllChildrenIterator::GetPreviousChild, r=bz 2016-03-05 16:11:21 -05:00
Alexander Surkov
6432a988a5 Bug 1247364 - add AllChildrenIterator::Seek, r=bz 2016-02-11 08:22:39 -05:00
Alexander Surkov
31ede4d86d Bug 1133213 - make aria-owns to alter the accessible tree, fire show/hide mutation events as we do for the accessible tree alterations, r=yzen, f=davidb 2015-09-15 12:01:51 -04:00
Boris Zbarsky
7b9ae9826e Bug 1201692. Add a fast path to ExplicitChildIterator::Seek for the common case of seeking an actual DOM child of the parent node. r=wchen 2015-09-08 21:23:55 -04:00
Andrew McCreight
92010d3e4c Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Birunthan Mohanathas
e9068bbc4f Bug 946065 - Part 12: Move content/base/ to dom/ and flatten subdirectories. r=peterv 2014-10-25 20:25:22 +03:00