Bobby Holley
de6dd624ed
Bug 1363375 - Pack nsINode better on 64-bit and stop conditionally compiling mServoData. r=smaug
2017-05-11 13:51:28 +02:00
Emilio Cobos Álvarez
1da66ba5c4
Bug 1355343: Move node restyle bits to Element, and add bits for snapshot handling. r=bholley
...
MozReview-Commit-ID: 6OrUKX5RcBq
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
--HG--
extra : rebase_source : 83b38b7d67ce739160d3bb0efc89ed6f8f43092d
2017-04-16 08:16:24 +02:00
Kirk Steuber
7fdb378650
Bug 1359556 - Optimize cloneNode by preinitializing attribute and child arrays r=bz
...
Currently, attribute and child arrays (implemented in dom/base/nsAttrAndChildArray.h) start out empty. When cloning, the array ends up being resized multiple times in order to add the attributes and children that are being cloned from the original node. This would be quicker if the array was initialized to the correct size in the first place so that resizes are not necessary.
However, preallocating space for children is only necessary when performing a deep clone. Therefore, an additional parameter is being added to the Clone, CopyInnerTo, and CloneDocHelper methods to indicate whether preallocation of children should happen. Attributes are copied either way, so that part of the array is preallocated in both cases.
MozReview-Commit-ID: 3iVezeAKXnI
--HG--
extra : rebase_source : 9c3deec6d7aafd6411044d623d4863637b45fd58
2017-04-20 12:57:48 -07:00
Hiroyuki Ikezoe
bec36f074f
Bug 1344966 - Add NODE_HAS_ANIMATION_ONLY_DIRTY_DESCENDANTS_FOR_SERVO to represent that an element's descendant has animation. r=heycam
...
MozReview-Commit-ID: GRumykMgGg0
--HG--
extra : rebase_source : 8b9675d1c56a0d2dd81532e28c03d85996f0cc7f
2017-03-27 06:17:07 +09:00
Mantaroh Yoshinaga
2558f6837e
Bug 1062106 part 3 - Remove SMIL MappedAttribute mechanism. r=birtles
...
We can remove unnecesasary SMILMappedAttribute and SMILAttrAnimationRuleProcessor since earlier patches in this serieas mean this code is no longer used.
MozReview-Commit-ID: 5Rl5WFW5zZ1
--HG--
extra : rebase_source : cf2efca8d01c7e6cd5bd3b3b44d994c6cbb760e9
2017-03-21 15:45:58 +09:00
Iris Hsiao
96c6ba3303
Backed out 4 changesets (bug 1062106) for build bustage
...
Backed out changeset 7ac1fffb6a87 (bug 1062106)
Backed out changeset 7682b2da0437 (bug 1062106)
Backed out changeset e77bfa57be61 (bug 1062106)
Backed out changeset a565aca3013c (bug 1062106)
2017-03-21 16:41:18 +08:00
Mantaroh Yoshinaga
3b7e3f9116
Bug 1062106 part 3 - Remove SMIL MappedAttribute mechanism. r=birtles
...
We can remove unnecesasary SMILMappedAttribute and SMILAttrAnimationRuleProcessor since earlier patches in this serieas mean this code is no longer used.
MozReview-Commit-ID: 5Rl5WFW5zZ1
--HG--
extra : rebase_source : b051dce1d0f511e2e41be0b183a6f84654000309
2017-03-21 15:45:58 +09:00
Hiroyuki Ikezoe
495625f374
Bug 1341985 - GetAnimationCollection() takes const Element*. r=birtles
...
MozReview-Commit-ID: BPVROi9Ewzc
--HG--
extra : rebase_source : 599efa0aead37874e4e1c43ab793476d4adfe41d
2017-03-10 11:53:19 +09:00
Xidorn Quan
3ff59c9fc4
Bug 1340061 part 2 - Remove explicit base URI facility. r=bz
...
MozReview-Commit-ID: JaUzecbdT2F
--HG--
extra : rebase_source : df409ca400fbb2afe9b59e33585cb81fcedc962f
2017-02-16 18:35:52 +11:00
Bobby Holley
3df81392a2
Bug 1331322 - Add a flag to indicate that a node is native anonymous content. r=bholley
...
--HG--
extra : rebase_source : f32a12b6cca7f4a5d73dd2169414a745ddbf2926
2017-01-20 18:28:46 -08:00
Bobby Holley
b5ec1b1aa2
Bug 1331322 - Move MAY_HAVE_CLASS to mBoolFlags. r=bholley
...
This fits a bit better with the other stuff, and allows us to add our new NAC
bit with the other NAC related bits, which also happens to be a field that
Servo already has easy access to.
--HG--
extra : rebase_source : 52ef902eb3b23dc44cefec899b02c9180b76160c
2017-01-20 18:24:41 -08:00
Bobby Holley
cb5c414092
Bug 1331322 - Stop using a node bit for HasExplicitBaseURI. r=bholley
...
This is only called during URI resolution, and the proptable bit should make
this relatively fast.
--HG--
extra : rebase_source : 866dd136e6630db3ff7423e30d59151a01c258a6
2017-01-20 18:17:13 -08:00
Phil Ringnalda
d2fa909610
Backed out 4 changesets (bug 1331322) for Android reftest failures in 1169331-1.html and forced-bg-color-outside-visible-region.html
...
Backed out changeset 96c6b5a11284 (bug 1331322)
Backed out changeset 15877d32de7d (bug 1331322)
Backed out changeset 841d608704d7 (bug 1331322)
Backed out changeset 02096c5eb029 (bug 1331322)
2017-02-15 21:24:00 -08:00
Bobby Holley
4588a4f2db
Bug 1331322 - Add a flag to indicate that a node is native anonymous content. r=bholley
...
--HG--
extra : rebase_source : f32a12b6cca7f4a5d73dd2169414a745ddbf2926
2017-01-20 18:28:46 -08:00
Bobby Holley
a15ed0dd31
Bug 1331322 - Move MAY_HAVE_CLASS to mBoolFlags. r=bholley
...
This fits a bit better with the other stuff, and allows us to add our new NAC
bit with the other NAC related bits, which also happens to be a field that
Servo already has easy access to.
--HG--
extra : rebase_source : 52ef902eb3b23dc44cefec899b02c9180b76160c
2017-01-20 18:24:41 -08:00
Bobby Holley
0b3d2c3886
Bug 1331322 - Stop using a node bit for HasExplicitBaseURI. r=bholley
...
This is only called during URI resolution, and the proptable bit should make
this relatively fast.
--HG--
extra : rebase_source : 866dd136e6630db3ff7423e30d59151a01c258a6
2017-01-20 18:17:13 -08:00
Boris Zbarsky
c9fc3601f5
Bug 1335368 part 22. Get rid of IsCallerChrome in geometry utils. r=dholbert
2017-02-01 15:43:59 -05:00
Boris Zbarsky
7583017cd2
Bug 1335368 part 5. Stop using IsCallerChrome in nsINode. r=bholley
2017-02-01 15:43:36 -05:00
Boris Zbarsky
c23f96a55c
Bug 1330536 part 7. Change nsINode::GetTextContent to take an OOMReporter, not an ErrorResult. r=smaug
2017-01-17 23:52:29 -05:00
John Dai
9404a1745d
Bug 1269155 - Revise Node.rootNode to Node.getRootNode. r=smaug
2017-01-16 01:46:00 +08:00
Cameron McCormack
a72478f6c9
Bug 1321284 - Part 2: Add nsINode::GetFlattenedTreeParentNodeForStyle. r=bholley
...
MozReview-Commit-ID: AmDyeE21N8g
--HG--
extra : rebase_source : 7e0d8f40ce513283f7262dca332fddc1e92ff810
2016-12-01 14:55:09 +08:00
Bobby Holley
f8c9d884fc
Bug 1317016
- Basic infrastructure for RestyleHint-driven traversal. r=emilio
...
MozReview-Commit-ID: 7wH5XcILVmX
2016-11-25 10:06:39 -08:00
Boris Zbarsky
23cc88e459
Bug 1319255 part 2. Stop doing casts to HTMLContentElement* simply based on tag. r=wchen
2016-11-22 22:41:51 -05:00
Boris Zbarsky
3e49872974
Bug 1319255 part 1. Stop doing casts to HTMLShadowElement* simply based on tag. r=wchen
2016-11-22 22:41:51 -05:00
Boris Zbarsky
6393f96201
Bug 1318476. Remove various unused nsIDOMNode stuff. r=froydnj
2016-11-18 16:38:29 -05:00
Boris Zbarsky
0187a18084
Bug 1318096 part 1. Remove unused XPCOM querySelector(All) bits. r=froydnj
2016-11-17 13:49:26 -05:00
Xidorn Quan
76b59d891f
Bug 1313262 - Devirtualize nsINode::{Get,Set,Delete,Unset}Property. r=peterv
...
MozReview-Commit-ID: B16VcIZKBs1
--HG--
extra : rebase_source : f4076901e376194d7db9fe03f27f1930b0931788
2016-10-27 12:40:34 +11:00
Manish Goregaokar
180ff22bac
Bug 1308234 - Fix signatures of Servo_ functions to match servo glue; r=emilio
...
MozReview-Commit-ID: K0k93JoFVKb
--HG--
extra : rebase_source : 2b801262ca0cb2daef589c8e1cde31e5f22260b7
2016-10-06 20:58:01 +05:30
Bobby Holley
6351b3ffb8
Bug 1304913 - Have Servo manage node data directly without FFI calls. r=Manishearth
...
MozReview-Commit-ID: H8f8VP18TbM
2016-09-23 15:58:48 -07:00
Andrea Marchesini
3d45a22bac
Bug 1301254 - nsINode::GetBaseURI() should be fallible, r=smaug
2016-09-20 14:02:33 +02:00
Nicholas Nethercote
e4eb76b618
Bug 1297300 - Add missing checks to GetSpec() calls in dom/base/. r=bz.
...
--HG--
extra : rebase_source : 55e83aad222825b2dd1399fa42eee6b6c894d0ee
2016-09-08 14:17:58 +10:00
Bobby Holley
0453dfa721
Bug 1292662 - Use accessors to unset stylo dirty bits. r=heycam
...
I often find myself wanting to hook them for logging etc, and this makes the
API symmetric with the setters.
2016-08-25 21:36:57 -07:00
Bobby Holley
92996399e8
Bug 1292279 - Explicitly handle dirtiness in BindToTree. r=heycam
...
Doing this in SetInDoc is kind of gross, and it leads to nice symmetry with
UnbindFromTree.
2016-08-25 21:34:27 -07:00
Ryan VanderMeulen
69113163cf
Merge m-c to inbound. a=merge
2016-08-24 09:09:05 -04:00
Xidorn Quan
611f544c5d
Bug 1296173
part 2 - Rename the servo binding functions. r=bholley
...
MozReview-Commit-ID: Gxqx52v3sDQ
--HG--
extra : rebase_source : 98fdf4a1463680b629c4986df2b2b9c3b306c64e
2016-08-23 13:14:27 +10:00
Alexander Surkov
2dde17e72e
Bug 1296769 - introduce a11y API, r=smaug, yzen
2016-08-23 14:15:15 -04:00
Bobby Holley
412f98cac5
Bug 1296509 - Optimize GetFlattenedTreeParent. r=smaug
...
We need to call it on some hot paths in stylo, and this allows us to do
quick inline check before delegating to the slow path.
2016-08-19 14:43:53 -07:00
Bobby Holley
46c7fed6d0
Bug 1289624 - Switch to UniquePtr for managing ServoNodeData. r=heycam
2016-07-27 13:34:55 -07:00
Emilio Cobos Álvarez
474ff66ca4
Bug 1285474: stylo: Add dirtiness-tracking hooks for Servo and convenient methods. r=bholley
...
Also, guard with asserts the access to the new shared flags.
MozReview-Commit-ID: H9UFFHRPmiu
2016-07-12 00:33:57 -07:00
Emilio Cobos Álvarez
5990bbc7d5
Bug 1285474: stylo: Add nsINode method for knowing if the current document is using Servo's style back-end. r=bholley
...
MozReview-Commit-ID: 3sRE7BZj1tu
2016-07-12 00:33:57 -07:00
Emilio Cobos Álvarez
580accea5d
Bug 1285474: stylo: Reuse some element restyle-related flags for Servo-styled nodes. r=bholley
...
MozReview-Commit-ID: 86FS1s725KL
2016-07-12 00:33:57 -07:00
Stone Shih
f3651866bf
Bug 1261673: Handle wheel event when mouse cursor is hovered on a focused number input as increasing/decreasing it's value. r=smaug
2016-05-06 18:39:10 +08:00
Jocelyn Liu
be57980c08
Bug 911477 - Implement DOM4 methods: prepend(), append(), before(), after() and replaceWith(). r=bz
...
MozReview-Commit-ID: A6SklLqXZtv
--HG--
extra : rebase_source : 87b99d99881347e4fe89dbc203a536bd99c7cb29
2016-04-12 10:48:14 +08:00
Andrea Marchesini
55614d4c60
Bug 1266194 - Implement boolean or EventListenerOptions as 3rd param to addEventListener, r=smaug
2016-04-26 16:23:17 +08:00
Jonathan Watt
de4c3d11fe
Bug 1263787 - Kill off the deprecated nsINode::GetCrossShadowCurrentDoc. r=baku
2016-03-31 13:20:14 +01:00
Jonathan Watt
9480920b04
Bug 1263785 - Kill off the deprecated nsINode::GetCurrentDoc. r=baku
2016-03-31 12:46:32 +01:00
Jonathan Watt
fb7bb15e68
Bug 1263782 - Kill off the deprecated nsINode::IsInDoc(). r=baku
2016-03-31 11:58:25 +01:00
John Dai
d5b4810bd4
Bug 1256299 - Remove redundent trailing spaces. r=bz
...
--HG--
extra : rebase_source : 306f13563f9530118ab898ffe8018f7071e79a1e
2016-03-25 18:23:53 +08:00
John Dai
784acc967f
Bug 1256299 - Implement Node.isSameNode. r=bz
...
--HG--
extra : rebase_source : a656c8c9eb9a5c6fe02136c0389c478cff58fa0a
2016-03-25 18:23:50 +08:00
Ehsan Akhgari
f2023a11c0
Bug 1257208 - Use the nsTextNode concrete type in several places in DirectionalityUtils.cpp instead of nsINode and nsIContent; r=peterv
2016-03-23 14:24:56 -04:00