Commit Graph

76 Commits

Author SHA1 Message Date
Phil Ringnalda
c7eed1ae9a Bug 1298723 followup, make it actually compile, on a CLOSED TREE 2016-08-29 21:48:30 -07:00
Nicholas Nethercote
49316e1702 Bug 1298723 - Remove an unnecessary null check in ShouldClearPurple. r=mccr8.
--HG--
extra : rebase_source : 1b8eab0db2d0effe4dbc901a1793ead15eb8db5d
2016-08-30 14:23:08 +10:00
Bobby Holley
fc72927c36 Bug 1292279 - Add an API on nsIContent to propagate the dirty bit up the tree, and use it in ServoRestyleManager. r=heycam
We don't need this API outside of its current consumers yet, but will probably
need it when we handle lazy frame construction.
2016-08-25 21:34:25 -07: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
1d6f2ecf7c Bug 1296509 - Devirtualize and inline GetShadowRoot. r=smaug 2016-08-19 14:43:51 -07:00
Igor
175543fda8 Bug 1293384 - Part 2: Rename Snprintf.h header to Sprintf.h. r=froydnj 2016-08-14 23:43:21 -07:00
Igor
a57972337d Bug 1293384 - Part 1: Rename snprintf_literal to SprintfLiteral. r=froydnj 2016-08-14 23:44:00 -07:00
Nicholas Nethercote
e7f10a07fd Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm.
This patch makes most Run() declarations in subclasses of nsIRunnable have the
same form: |NS_IMETHOD Run() override|.

As a result of these changes, I had to add |override| to a couple of other
functions to satisfy clang's -Winconsistent-missing-override warning.

--HG--
extra : rebase_source : 815d0018b0b13329bb5698c410f500dddcc3ee12
2016-08-08 12:18:10 +10:00
Olli Pettay
78c9673f58 Bug 741760 - svg-documents-as-images end up to CC graph, r=mccr8, dholbert 2016-06-18 22:50:45 +03:00
Sebastian Hengst
fb640267f0 Backed out changeset 44256084ae2e (bug 741760) for reftest leaks. r=backout on a CLOSED TREE 2016-06-16 15:56:55 +02:00
Olli Pettay
d742f682f3 Bug 741760 - svg-documents-as-images end up to CC graph, r=mccr8, dholbert
--HG--
extra : rebase_source : aac9dc529dff0cb814c905e7f2b07cdfaac5b1fb
2016-06-16 11:32:58 +01:00
Kyle Huey
c73656947b Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
Masayuki Nakano
9170348baf Bug 1259656 part.7 Rename WidgetEvent::originalTarget to WidgetEvent::mOriginalTarget r=smaug
MozReview-Commit-ID: G1WVCWkS0Lt

--HG--
extra : rebase_source : e4790266f4efa33269c073bca1d98f9e8e6c90d7
2016-04-19 01:33:23 +09:00
Masayuki Nakano
da3898bcb7 Bug 1259656 part.5 Rename WidgetEvent::target to WidgetEvent::mTarget r=smaug
MozReview-Commit-ID: L0GnVR6NcAe

--HG--
extra : rebase_source : a8784d4599dad317f8335477afac9a7d4b92918f
2016-04-19 00:46:00 +09:00
Jonathan Watt
fb7bb15e68 Bug 1263782 - Kill off the deprecated nsINode::IsInDoc(). r=baku 2016-03-31 11:58:25 +01:00
Peter Van der Beken
d59dcd41d0 Bug 1251361 - "Assertion failure: cache->PreservingWrapper()" with <marquee>, navigation, adoptNode. r=smaug.
Remove explicit calls to ReleaseWrapper and rely on cycle collection.

--HG--
extra : rebase_source : 3e641270347cea197034946cbb06edd3677675fd
2016-03-04 17:54:10 +01:00
Wes Kocher
953cf80ae2 Backed out changeset 54ee322b50cf (bug 1251361) for apparently causing a bunch of OSX m(bc) leaks
MozReview-Commit-ID: 8v0LiT3sA15

--HG--
extra : rebase_source : 9cdefc51f45a40aed71289958f89883faa757e43
2016-04-04 12:32:42 -07:00
Peter Van der Beken
cd3d6088a5 Bug 1251361 - "Assertion failure: cache->PreservingWrapper()" with <marquee>, navigation, adoptNode. r=smaug.
Remove explicit calls to ReleaseWrapper and rely on cycle collection.
2016-03-04 17:54:10 +01: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
sakshi
1af0b67296 Bug 1197311 - Remove PR_snprintf calls in dom/ r=froydnj 2016-02-17 14:23:39 -05:00
Olli Pettay
3af8f71a7e Bug 1249428 - Unlink binding properly from element , r=mccr8
--HG--
extra : rebase_source : e549e1f2722173d2829c61a0c98c0d3c338379a5
2016-02-19 21:13:42 +02: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
Ting-Yu Lin
40c9b71faf Bug 1241752 - Remove runtime warning for nsIContent::GetEditingHost(). r=smaug
Returning a null editing host for a non-editable is a normal failing case,
which does not need a warning.

--HG--
extra : rebase_source : 11695f3c17337cac2e2ce2a7516a0ce8d58eefb5
2016-01-22 14:18:47 +08:00
Brian Birtles
54283ba569 Bug 1226091 - Use MayHaveAnimations flag for animations on pseudo elements too; r=smaug 2016-01-18 13:40:12 +09:00
Brian Birtles
4a1f1632e9 Bug 1225699 part 6 - Use strong refs to store effects on their target elements; r=smaug
This is so that when we have code like:

  elem.animate({ opacity: 0 }, 1000)

the resulting Animation object is kept alive by |elem| based on the following
ownership chain:

  elem --(strong)--> KeyframeEffectReadOnly --(strong)--> Animation

Now, there is an ownership cycle introduced here because KeyframeEffectReadOnly
objects also store owning references to their target elements. This is broken
when the Animation finishes (if it does not fill forwards) or is cancelled
since either event will trigger a call to
KeyframeEffectReadOnly::UpdateTargetRegistration.

If the Animation fills forwards, the resource will not be released until
it is cancelled. For Animations corresponding to CSS Animations / CSS
Transitions this happens when the Element is unbound or when the corresponding
style property is updated causing the animation to be replaced or removed.

For the general case of script-generated animations, however, this cycle won't
be broken until the Element is unbound and all external references to the
Animation or KeyframeEffectReadOnly are dropped.

It's unfortunate that we can't more aggressively prune these objects but it's
what the spec currently says. I've posted to the mailing list[1] about this but
have yet to find a good solution.

[1] https://lists.w3.org/Archives/Public/public-fx/2015OctDec/0029.html
2015-11-26 16:53:54 +09:00
Birunthan Mohanathas
b568910a25 Bug 1217307 - Remove some unnecessary null checks in dom/base/. r=njn 2015-11-19 09:13:49 +02:00
L. David Baron
a3eadb1b86 Bug 1221436 patch 2 - For style attributes, only store a css::Declaration instead of a css::StyleRule. r=heycam
Now that Declaration implements nsIStyleRule, we don't need the memory
overhead of storing a StyleRule object for style attributes.

We also need to change this prior to patch 5, because the changes in
patch 5 that will allow rules to change (but declarations not) would
otherwise break due to style attribute object merging done by
nsAttrValue::ParseStyleAttribute.

--HG--
extra : commitid : Ij4yRdba7wa
2015-11-09 15:57:16 +08:00
Robert O'Callahan
7c373233ed Bug 264412. Implement HTMLElement.innerText. r=smaug,mats
--HG--
extra : commitid : KjCvQzulwP3
extra : rebase_source : 01aae50d1ee8304e56d3d1e21a7c65c2f9060a72
2015-10-30 18:37:03 +13:00
Robert O'Callahan
0e2b65352f Revert incorrectly committed changes ab657569f554 and a396f4262479
--HG--
extra : commitid : IHQ60dccnSZ
extra : amend_source : 9302339fd951446a37909b31a1ccb56aff470325
2015-10-24 22:38:22 +13:00
Robert O'Callahan
b09242d6c1 Bug 264412. Implement HTMLElement.innerText. r=smaug,mats
--HG--
extra : commitid : LLiSI8usEMT
extra : rebase_source : 928b4fd451c28b57a43a873f05b7bf030ba13083
2015-10-21 10:23:17 +13:00
Michael Layzell
3a0f4a517e Bug 918771 - Part 1: Move Fragment Serialization logic into nsContentUtils::SerializeNodeToMarkup, r=bz 2015-10-20 15:54:14 -04: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
Masayuki Nakano
b3ae872d78 Bug 895274 part.230 Rename NS_SELECT_START to eSelectStart r=smaug 2015-09-15 00:14:33 +09:00
Michael Layzell
fe31896607 Bug 571294 - Part 1: Implement selection events behind the dom.select_events.enabled pref, r=smaug 2015-09-12 17:56:44 -04:00
Masayuki Nakano
35cc2a0a26 Bug 895274 part.149 Rename NS_USER_DEFINED_EVENT to eUnidentifiedEvent r=smaug 2015-09-10 10:40:04 +09:00
Masayuki Nakano
8c49cf7363 Bug 895274 part.100 Rename NS_MUTATION_NODEINSERTED to eLegacyNodeInserted r=smaug 2015-09-07 23:55:51 +09:00
Masayuki Nakano
2586c79eb1 Bug 895274 part.66 Rename NS_FORM_SELECTED to eFormSelect r=smaug 2015-09-02 15:08:00 +09:00
Masayuki Nakano
8fa33d4666 Bug 895274 part.65 Rename NS_FORM_CHANGE to eFormChange r=smaug 2015-09-02 15:08:00 +09:00
Masayuki Nakano
5bb3e1799f Bug 895274 part.64 Rename NS_FORM_RESET to eFormReset r=smaug 2015-09-02 15:08:00 +09:00
Masayuki Nakano
e1d00d44c8 Bug 895274 part.61 Rename NS_LOAD to eLoad r=smaug 2015-09-02 15:07:59 +09:00
Masayuki Nakano
5d7682dc01 Bug 895274 part.58 Rename NS_IMAGE_ABORT to eImageAbort r=smaug 2015-09-02 15:07:59 +09:00
Masayuki Nakano
b102d7ecce Bug 895274 part.57 Rename NS_LOAD_ERROR to eLoadError r=smaug 2015-09-02 15:07:59 +09:00
Masayuki Nakano
df21a755ee Bug 895274 part.46 Rename NS_POINTER_OVER to ePointerOver r=smaug 2015-09-01 00:20:05 +09:00
Masayuki Nakano
5122ac4b7a Bug 895274 part.45 Rename NS_POINTER_OUT to ePointerOut r=smaug 2015-09-01 00:20:05 +09:00
Masayuki Nakano
7645260328 Bug 895274 part.34 Rename NS_MOUSE_OUT to eMouseOut r=smaug 2015-08-29 08:58:32 +09:00
Masayuki Nakano
da4db5d296 Bug 895274 part.33 Rename NS_MOUSE_OVER to eMouseOver r=smaug 2015-08-29 08:58:32 +09:00
Masayuki Nakano
2fbb0f1587 Bug 895274 part.17 Rename NS_SCROLL_EVENT to eScroll r=smaug 2015-08-29 08:58:28 +09:00