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
Andrea Marchesini
5c1e2ee932
Bug 1156632 - Remove unused forward class declarations - patch 1 - dom/base, r=ehsan
2015-04-22 08:29:15 +02:00
Ehsan Akhgari
d01a70af06
Bug 1156010 - Mark nsINode::mParent as MOZ_OWNING_REF; r=smaug
2015-04-20 15:39:52 -04:00
Ehsan Akhgari
57b27e928d
Bug 1156013 - Mark nsINode::mSubtreeRoot as MOZ_NON_OWNING_REF; r=baku
2015-04-19 08:38:39 -04:00
Ehsan Akhgari
a20acbff52
Bug 1156012 - Mark nsINode::m{Next,Previous}Sibling as MOZ_NON_OWNING_REF; r=baku
2015-04-19 08:38:37 -04:00
Ehsan Akhgari
e9aa123252
Bug 1156011 - Mark nsINode::mFirstChild as MOZ_NON_OWNING_REF; r=baku
2015-04-19 08:38:34 -04:00
Ehsan Akhgari
def99ac384
Bug 1156009 - Mark nsChildContentList::mNode as MOZ_NON_OWNING_REF; r=baku
2015-04-19 08:38:31 -04:00
Ehsan Akhgari
84769de78a
Bug 1155477 - Convert nsINode::Slots::mChildNodes to an nsRefPtr; r=baku
...
MSVC 7 is no longer supported, so this can now be an nsRefPtr.
2015-04-17 11:15:13 -04:00
Ehsan Akhgari
74e1e2c975
Bug 1155475 - Mark nsINode::Slots::mWeakReference as MOZ_NON_OWNING_REF; r=baku
2015-04-17 11:14:49 -04:00
Ehsan Akhgari
883849ee32
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Boris Zbarsky
dc24477d79
Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
...
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp. The
rest of this diff was generated by running the following commands:
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
2015-03-19 10:13:33 -04:00
Cameron McCormack
3496ca27f3
Bug 1123523 - Part 5: Record on a document whether it might have any nsIAnimationObservers registered. r=smaug
2015-03-14 16:34:40 +11:00
Andrea Marchesini
90ae143077
Bug 1134280 - Get rid of Tag() - patch 6 - Remove nsINode::Tag(), r=smaug
2015-03-03 11:09:01 +00:00
Andrea Marchesini
2c4f63331f
Bug 1134280 - Get rid of Tag() - patch 1 - Is{HTML,XUL,MathML,SVG}Element and IsAnyOf{HTML,XUL,MathML,SVG}Elements, r=smaug
2015-03-03 11:08:59 +00:00