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

76 Коммитов

Автор SHA1 Сообщение Дата
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
Sebastian Hengst 24a1f2b868 Backed out changeset 01eff93538c8 (bug 1257208) for failing Reftest dir_auto-set-contained-dir-L.html and others. r=backout 2016-03-23 18:35:20 +01:00
Ehsan Akhgari 938b1ad7c4 Bug 1257208 - Use the nsTextNode concrete type in several places in DirectionalityUtils.cpp instead of nsINode and nsIContent; r=peterv 2016-03-23 11:48:23 -04:00
Jocelyn Liu 4967a99f0c Bug 1254956 - Implement Node.rootNode. r=Ms2ger,smaug
MozReview-Commit-ID: HeV3qnngbTx

--HG--
extra : rebase_source : b25172112a902a2dd4f9af2087a266baa7f8b797
2016-03-16 09:49:10 +08:00
Carsten "Tomcat" Book 35e5eec178 Backed out changeset 5eb1f8858a31 (bug 1254956) for testfailures in rootNode.html 2016-03-21 09:20:37 +01:00
Jocelyn Liu b8598e36ab Bug 1254956 - Implement Node.rootNode. r=smaug
MozReview-Commit-ID: HeV3qnngbTx

--HG--
extra : rebase_source : 767d31edb8b5ae7223e7e13c2d9be0137f212b62
2016-03-16 09:49:10 +08:00
Jonathan Watt f9be18707c Bug 1220822 follow-up - Fix typo in nsINode::OwnerDoc() documention. r=mats
MozReview-Commit-ID: Gs9p5UTjqZQ
2016-02-29 23:46:51 +00: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
Sebastian Hengst 48649adbe3 Backed out changeset 59ee7ae2519d (bug 1250767) 2016-02-24 22:50:51 +01: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
Kyle Huey 91efc5a86c Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Jonathan Watt b12d2b88dd Bug 1220822 - Rewrite the nsINode::OwnerDoc comment to not contradict itself and relate it to HTML5 terms. r=baku 2015-10-02 17:16:49 +01:00
Nathan Froyd 01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Aryeh Gregor 006ecb6285 Bug 1192855 - Check validity in advance for nsRange::InsertNode; r=hsivonen 2015-10-07 16:07:39 +03:00
Olli Pettay 68663347da Bug 1205466, make HasApzAwareListeners check faster, r=masayuki
--HG--
extra : rebase_source : 41c94b02117a09785938349dc9ad513af9bf048b
2015-09-17 13:16:20 +03:00
William Chen 148ff86273 Bug 1181130 - Part 3: Keep track of editable descendants per node and prevent NS_STYLE_USER_SELECT_ALL selection for nodes with editable descendants. r=bz 2015-08-14 10:52:38 -07:00
Benoit Girard 9c4edf5571 Bug 1181297 - Add debug descriptor to nsINode. r=smaug
--HG--
extra : rebase_source : bd60af0462be0c276e5732aa42cd1bc524541152
2015-07-08 15:58:07 -04:00
Tom Tromey df1180d5e0 Bug 1165184 - Move nsChildContentList to its own header. r=peterv 2015-05-19 06:33:00 -04:00
Boris Zbarsky 068f758b05 Bug 1163898 part 1. Give DOMEventTargetHelper a sane accessor for getting its nsIGlobalObject. r=smaug 2015-05-12 15:56:39 -04:00
Andrew McCreight 9e8f4b219e Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Boris Zbarsky 1540774b0c Bug 1157898 part 1. Make code of the form "return rv.ErrorCode();" where rv is an ErrorResult use StealNSResult instead. r=peterv
This patch was generated with the following command:

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 's/return ([a-zA-Z0-9]+)\.ErrorCode\(\);/return \1.StealNSResult();/'
2015-04-27 09:18:51 -04:00