Aryeh Gregor
0c1d7143d1
Bug 984778 - Make hasFeature() and SVG requiredFeatures always return true; r=bz,longsonr
...
hasFeature() always returning true matches the current DOM spec. SVG 2
has removed requiredFeatures. Chrome has had both of these always
return true since 2014, and they seem to have had no problems.
Even requiredFeatures="" (empty string) now returns true, matching
Chrome.
MozReview-Commit-ID: 1LEu3iK4R94
2016-09-01 14:35:11 +03:00
Alexander Surkov
2dde17e72e
Bug 1296769 - introduce a11y API, r=smaug, yzen
2016-08-23 14:15:15 -04:00
Jan de Mooij
0ad12515f4
Bug 1292892 part 1 - Stop using JSRuntime outside SpiderMonkey. r=bz,terrence,fitzgen,kanru
2016-08-11 14:39:22 +02: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
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
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
fb7bb15e68
Bug 1263782 - Kill off the deprecated nsINode::IsInDoc(). r=baku
2016-03-31 11:58:25 +01:00
Olli Pettay
0a1b93ddf6
Bug 684208 - make dispatchEvent()'s return value to follow the spec, r=masayuki
...
--HG--
extra : rebase_source : d94e95611c2eb14171a693a5197afbd6e98f696a
2016-04-07 15:49:12 +03:00
Nicholas Nethercote
d376f9f82e
Bug 1260871 - Remove do_GetAtom() and rename NS_NewAtom() as NS_Atomize(). r=erahm.
...
do_GetAtom() is currently just a synonym for NS_NewAtom().
--HG--
extra : rebase_source : f4409784f931616cbc300591e6b843d30805c273
2016-03-29 10:09:43 +11: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
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
Birunthan Mohanathas
d7371d07d0
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-02-02 17:36:30 +02:00
Phil Ringnalda
d381b4bca6
Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
...
CLOSED TREE
Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas
373593275e
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-01-31 17:12:12 +02:00
Kyle Huey
91efc5a86c
Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug
2016-01-30 09:05:36 -08:00
Olli Pettay
996520ebd1
Bug 1157469 - null check wrapper in case WrapNode fails, r=bholley
2016-01-11 20:32:12 +02:00
L. David Baron
c98145c66e
Bug 978833 patch 11 - Add missing #includes in preparation for nsRuleWalker.h #include change in following patch. r=heycam
...
Patch 12 changes nsRuleWalker.h from including StyleRule.h to including
Declaration.h; this fixes other headers to deal with that change based
on the include-what-you-use principle.
--HG--
extra : commitid : 5z9LIJ2QKCn
2015-11-05 16:44:09 +08: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
97bf22c73e
Bug 1212867 - Node.isEqualNode() should ignore internal subsets; r=bz
2015-10-12 20:44:23 +03: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
Masayuki Nakano
8c49cf7363
Bug 895274 part.100 Rename NS_MUTATION_NODEINSERTED to eLegacyNodeInserted r=smaug
2015-09-07 23:55:51 +09: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
Birunthan Mohanathas
a8939590de
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -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
Dragana Damjanovic
7987d2203e
Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell
2015-07-06 07:55:00 +02: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
Birunthan Mohanathas
b2331cf2dc
Bug 819090 - Convert nsDocument::mIdContentList to nsTArray. r=froydnj
2015-05-06 10:57:37 -07:00
Boris Zbarsky
1e816696de
Bug 1157898 part 4. Add ErrorResult::ErrorCodeIs() and use it in various places to get rid of ErrorCode(). r=peterv
2015-04-27 09:18:52 -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
Ehsan Akhgari
631c185989
Bug 1155477 follow-up: Fix nsINode::ChildNodes()
...
Landed on a CLOSED TREE to fix bustage
2015-04-17 11:49:59 -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
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
77d676cf4b
Bug 1134280 - Get rid of Tag() - patch 2.3 - dom/base and docshell - Fix all the occurrences, m=smaug, r=surkov
2015-03-03 11:09:00 +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
William Chen
bf1efa0c19
Bug 1087460 - Part 1: Make GetComposedDoc() work in UnbindFromTree. r=smaug
2015-02-09 10:01:23 -08:00
Nicholas Nethercote
242708cf72
Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo.
...
--HG--
extra : rebase_source : 488e401ff87e31a2074c4108c4df0572d9536667
2015-02-09 14:34:50 -08:00
Andrew McCreight
d3826daa16
Back out Bug 1127201 (part 2) for various problems.
2015-02-06 15:04:32 -08:00
Nicholas Nethercote
d34f0301b8
Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo.
...
--HG--
extra : rebase_source : 99182e70335d2b5ff95f8c528ae992d37294be3a
2015-02-04 20:05:36 -08:00
Boris Zbarsky
38493ba5e9
Bug 1088228 part 1. Introduce an nsINode API for getting the scope chain parent for a given node. r=peterv
2014-10-30 17:38:48 -04:00
Wes Kocher
e0d9ddc182
Backed out 6 changesets (bug 1088228) for static analysis bustage
...
Backed out changeset 13ecff800114 (bug 1088228)
Backed out changeset de692c3335f2 (bug 1088228)
Backed out changeset 2d449a2b4e1c (bug 1088228)
Backed out changeset 49ac8f33ab70 (bug 1088228)
Backed out changeset 920d50e84a17 (bug 1088228)
Backed out changeset 55f4818378e4 (bug 1088228)
2014-10-30 16:24:02 -07:00
Boris Zbarsky
a8f73d5f5b
Bug 1088228 part 1. Introduce an nsINode API for getting the scope chain parent for a given node. r=peterv
2014-10-30 17:38:48 -04:00