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

77 Коммитов

Автор SHA1 Сообщение Дата
L. David Baron b8bdb7a778 Bug 1355353 - Give nsINode::GetProperty a fast path for nodes that do not have properties. r=peterv
I wasn't able to measure any performance improvement on talos.  I
haven't tried to measure anything more specific.

However, it seems like avoiding a hashtable lookup should be worthwhile.

(At one point I thought I saw nsINode::GetProperty show up as
significant in a profile, but then I concluded I was mislead, I think
because I had focused on a very small slice of the profile and the
numbers weren't significant.  I don't entirely remember since this was a
while ago.)

MozReview-Commit-ID: A9OoL9qV02D

--HG--
extra : transplant_source : 2%B15e1%F3%D7%BD%EFW%9C%97%BC5%BC%BB%943%E57
2017-04-25 16:15:37 +08:00
Ehsan Akhgari ee89afa2fc Bug 1354643 - Part 3: Stop calling Preferences::GetBool() from nsINode::HasBoxQuadsSupport(); r=mystor 2017-04-08 18:40:31 -04:00
Olli Pettay 626c1780d1 Bug 1345301 - elt.firstChild.remove() doesn't trigger a DOMSubtreeModified event, r=ms2ger
--HG--
extra : rebase_source : 884289e9471d7886661843cb45fe32e9a3514a18
2017-03-08 20:05:34 +02: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
Tom Tromey f8ab4ddf02 Bug 1060419 - remove unneeded includes of prprf.h, r=froydnj
MozReview-Commit-ID: JifhpA3oOeH

--HG--
extra : rebase_source : 08460997dc3fd91f3065c718e17b41bb4acf8bae
2016-12-09 10:00:01 -10: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 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 cce1668e68 Bug 1332322 part 2. Rename nsWrapperCache::IsBlack to nsWrapperCache::HasKnownLiveWrapper. r=mccr8 2017-01-24 20:38:58 -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
Masayuki Nakano 7436f01057 Bug 564411 Move all methods/attributes of nsIEditorIMESupport to nsIEditor r=smaug
Doing QI from nsIEditor to nsIEditorIMESupport doesn't make sense because editor should always support all methods and attributes of nsIEditorIMESupport (it does NOT mean that all nsIEditor implementation need to support IME).

This patch moves all of them to nsIEditor for avoiding redundant QIs.

MozReview-Commit-ID: DzIKuGHG4iy

--HG--
extra : rebase_source : cc5e9a6ae4572ebe461d9770ffa5c23d33dc8526
2016-12-20 21:47:31 +09: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 6393f96201 Bug 1318476. Remove various unused nsIDOMNode stuff. r=froydnj 2016-11-18 16:38:29 -05:00
Cameron McCormack 4406edcd3a Bug 1318238 - Clear all ServoNodeData during style set shutdown. r=bholley
MozReview-Commit-ID: 9MvBTAWeawC
2016-11-18 16:54:10 +08:00
Boris Zbarsky 0187a18084 Bug 1318096 part 1. Remove unused XPCOM querySelector(All) bits. r=froydnj 2016-11-17 13:49:26 -05:00
Stone Shih 1ed10ff082 Bug 1305458 Part1: Rename nsIDOMEventTarget::PreHandleEvent to nsIDOMEventTarget::GetEventTargetParent. r=smaug
MozReview-Commit-ID: FM3vDUyLOCb

--HG--
extra : rebase_source : 5a513af84718a6d591f77437a0704984c8fc2b67
2016-10-21 10:11:07 +08:00
Olli Pettay f3db1d65bd Bug 1308922, ensure expected DOM tree operations when calling prepend, r=ehsan 2016-10-13 00:34:25 +03: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
Olli Pettay 588f79ddd9 Bug 1301777 - Use nsCOMPtr for stack variables. r=mccr8
--HG--
extra : rebase_source : cdbc82c57f3904ea98d5392a9587351447496763
2016-09-27 15:36:41 -04:00
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
Brian Grinstead 61d266e2c8 Bug 1298230 - Use a more descriptive Syntax Error when querySelector / querySelectorAll fails;r=bz
MozReview-Commit-ID: DtIlA8ocMh0
2016-08-31 15:31:59 -07:00
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