Commit Graph

183 Commits

Author SHA1 Message Date
L. David Baron
1b093e6db8 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.
2015-11-09 15:57:16 +08:00
Christoph Kerschbaumer
bc8b658c1b Bug 1206964 - Use channel->AsyncOpen2() in netwerk/base/nsNetUtil.cpp (r=sicking) 2015-11-02 17:31:08 -08:00
Makoto Kato
369a8a18e3 Bug 1218315 - Replace NS_LITERAL_STRING(...).get() with MOZ_UTF16(...) on dom. r=nfroyd 2015-10-28 14:29:57 +09:00
Kyle Huey
fffe5cc829 Bug 1216401: Eviscerate nsIDOMWindow, move still needed methods to nsPIDOMWindow. r=bz 2015-10-26 14:37:32 -07:00
Xidorn Quan
0b62860d2a Bug 1137009 - Do not persist xul window attributes when in fullscreen. r=enndeakin 2015-10-22 11:08:35 +11:00
Nathan Froyd
e4e2da55c9 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
2015-10-18 01:24:48 -04:00
Wes Kocher
d8680efe42 Backed out 2 changesets (bug 1137009)
Backed out changeset 2c77e4edc2a5 (bug 1137009)
Backed out changeset 7a5322e5fa07 (bug 1137009)
2015-10-13 18:33:51 -07:00
Bobby Holley
e4eb87598d Bug 1214295 - Fix up entry points for ClickWithInputSource. r=bz 2015-10-13 15:58:09 -07:00
Andrew McCreight
0c62d00526 Bug 1210517 - Create nsVariant directly rather than via do_CreateInstance(). r=froydnj
The goal here is to leave creation stuff mostly for JS, so we can
convert it entirely over to a non-threadsafe cycle-collected version
without breaking any existing C++ users.

I didn't do this for a remaining use in nsGlobalWindow.h to avoid
including nsVariant.h all over the place.
2015-10-07 08:17:42 -07:00
Tooru Fujisawa
d56715d881 Bug 1207494 - Part 15: Remove use of expression closure from dom/xul/. r=bz 2015-09-23 18:39:17 +09:00
Christoph Kerschbaumer
b946316b70 Bug 1206958 - Use channel->asyncOpen2() in dom/xul/XULDocument.cpp (r=sicking) 2015-09-28 20:15:51 -07:00
Andrew McCreight
21d6d2281a Bug 1208502 - Use more smart pointers in XULDocument. r=smaug 2015-09-25 10:43:21 -07:00
Bobby Holley
708ae67ade Bug 1072150 - Use the opt-out for various sloppy consumers. r=bz 2015-09-24 14:02:41 -07:00
Xidorn Quan
33f20f1ca8 Bug 1137009 part 2 - Do not persist attributes of xul window if the window is in fullscreen. r=enndeakin 2015-09-24 11:39:22 +10:00
Masatoshi Kimura
664155a2ac Bug 647621 - Implement document.charset and update document.inputEncoding to the latest spec. r=bz 2015-09-23 09:32:29 +09:00
Christoph Kerschbaumer
1feac968da Bug 1048048 - add preload content policy types for scripts (r=baku) 2015-09-20 14:56:21 -07:00
Wes Kocher
9c40f87100 Backed out 7 changesets (bug 1048048) for android crashes in various chunks CLOSED TREE
Backed out changeset b5abe23a4ea5 (bug 1048048)
Backed out changeset 4f91b10e8be0 (bug 1048048)
Backed out changeset 450d4a13c90e (bug 1048048)
Backed out changeset 6a727c40eb68 (bug 1048048)
Backed out changeset 88c2333ff745 (bug 1048048)
Backed out changeset 740ab1ecd079 (bug 1048048)
Backed out changeset 02c6d6aef163 (bug 1048048)
2015-09-21 09:08:34 -07:00
Christoph Kerschbaumer
a69ba45c22 Bug 1048048 - add preload content policy types for scripts (r=baku) 2015-09-20 14:56:21 -07:00
Neil Deakin
1c0a06f775 Bug 1168042, return a bool from PerformAccessKey indicating if focus was changed, r=masayuki 2015-09-18 08:18:42 -04:00
Nicholas Nethercote
6855b78fbf Bug 1201135 - Rename pldhash.{h,cpp} to PLDHashTable.{h,cpp}. r=mccr8. 2015-09-15 20:49:53 -07:00
Nicholas Nethercote
ac3ae5e6c1 Bug 1121760 (part 6) - Move all remaining PL_DHash*() functions into PLDHashTable. r=poiru. 2015-09-14 14:23:47 -07:00
Nicholas Nethercote
5c91fcd1e6 Bug 1121760 (part 3) - Remove PL_DHashTableRemove(). r=poiru. 2015-09-14 14:23:24 -07:00
Nicholas Nethercote
538c6626e9 Bug 1121760 (part 2) - Remove PL_DHashTableAdd(). r=poiru. 2015-09-14 14:23:12 -07:00
Nicholas Nethercote
ba83ffc5ec Bug 1121760 (part 1) - Remove PL_DHashTableSearch(). r=poiru. 2015-05-21 00:34:25 -07:00
Nicholas Nethercote
99900f4ce4 Bug 1202526 (part 6) - Use PLDHashTable::RemoveEntry() in XULDocument. r=bz.
This avoids repeating the hash table search in order to remove the entry.
2015-09-07 19:20:16 -07:00
Masayuki Nakano
37bb72b699 Bug 895274 part.94 Rename NS_XUL_COMMAND to eXULCommand r=smaug 2015-09-04 19:54:12 +09:00
Masayuki Nakano
68fd6e4dff Bug 895274 part.92 Rename NS_XUL_COMMAND_UPDATE to eXULCommandUpdate r=smaug 2015-09-04 19:54:12 +09:00
Masayuki Nakano
7defa1d7b4 Bug 895274 part.91 Rename NS_XUL_BROADCAST to eXULBroadcast r=smaug 2015-09-04 19:54:12 +09:00
Masayuki Nakano
775fe149e7 Bug 895274 part.85 Rename NS_DRAGDROP_GESTURE to eLegacyDragGesture r=smaug 2015-09-02 15:08:03 +09:00
Masayuki Nakano
b0276f5a3b Bug 895274 part.78 Rename NS_DRAGDROP_START to eDragStart r=smaug 2015-09-02 15:08:01 +09:00
Masayuki Nakano
841b1687eb Bug 895274 part.51 Rename NS_CONTEXTMENU to eContextMenu r=smaug 2015-09-01 00:20:06 +09:00
Nicholas Nethercote
69d088e45f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.
2015-08-27 20:44:53 -07:00
Masayuki Nakano
b81a488a6b Bug 895274 part.31 Rename NS_MOUSE_CLICK to eMouseClick r=smaug 2015-08-29 08:58:32 +09:00
Masayuki Nakano
4c9e1bc9c7 Bug 895274 part.30 Rename NS_MOUSE_DOUBLECLICK to eMouseDoubleClick r=smaug 2015-08-29 08:58:31 +09:00
Masayuki Nakano
4d5cd63d14 Bug 895274 part.27 Rename NS_MOUSE_BUTTON_DOWN to eMouseDown r=smaug 2015-08-29 08:58:30 +09:00
Masayuki Nakano
cd786809b4 Bug 895274 part.26 Rename NS_MOUSE_BUTTON_UP to eMouseUp r=smaug 2015-08-29 08:58:30 +09:00
Masayuki Nakano
451161e458 Bug 895274 part.1 Rename WidgetEvent::message to WidgetEvent::mMessage r=smaug 2015-08-22 10:34:51 +09:00
Aryeh Gregor
1611b3c887 Bug 874838 - Make CreateElem return Element. r=khuey 2015-08-13 07:50:00 -04:00
Andrew McCreight
28bd11ffb5 Bug 1193572, part 4 - Make script element ownership more direct. r=baku
Rather than keep around a raw pointer |script| and depend on the fact
that |child| will keep alive the same object, make |script| strong,
then pass the reference off to |child| when we're finished with it.

I removed the comment about deleting |script| on failure because the
existing stack smart pointers already are doing this.

Also fix a tiny style nit.
2015-08-13 14:24:59 -07:00
Andrew McCreight
79605358de Bug 1193572, part 3 - Don't re-initialize mType for XUL proto elements. r=baku
These are already set in the constructor.
2015-08-13 14:24:59 -07:00
Andrew McCreight
b83ab2bee2 Bug 1193572, part 2 - nsXULPrototypeElement::Deserialize should use fallible SetCapacity. r=baku
I think this prevents a crash if we end up with a bogus cache value.
2015-08-13 14:24:59 -07:00
Andrew McCreight
95b9304c52 Bug 1193572, part 1 - Don't use return values of failing calls in XUL deserialize methods. r=baku 2015-08-13 14:24:59 -07:00
Andrew McCreight
b9d631ee33 Bug 1193086 - Remove some null checks of infallible new code in XUL. r=baku 2015-08-13 14:24:59 -07:00
Birunthan Mohanathas
e1f0334d06 Bug 1191100 - Remove XPIDL signature comments in .cpp files. r=ehsan
Comment-only so DONTBUILD.
2015-08-04 16:17:36 -07:00
Andrew McCreight
65ca44a867 Bug 1190608, part 5 - Sink the declaration of i in nsXULElement.cpp. r=poiru 2015-08-04 13:06:15 -07:00
Andrew McCreight
800d334a2a Bug 1190608, part 4 - Brace a few ifs in nsXULElement.cpp. r=poiru 2015-08-04 13:06:14 -07:00
Andrew McCreight
5765502677 Bug 1190608, part 3 - Remove some infallible new checks in nsXULElement.cpp. r=poiru 2015-08-04 13:06:14 -07:00
Andrew McCreight
7344424fe7 Bug 1190608, part 2 - Tuck elses in nsXULElement.cpp. r=poiru 2015-08-04 13:06:14 -07:00
Andrew McCreight
4fd4e4e39a Bug 1190608, part 1 - Delete trailing whitespace in nsXULElement.cpp and nsXULPrototypeCache.cpp. r=poiru
Also, change the mode line for nsXULElement.cpp to match reality, which is 4 space indentation.
2015-08-04 13:06:14 -07:00
Andrew McCreight
ce0e23910a Bug 1188234, part 4 - Don't append null to mChildren. r=smaug
Other code does not expect random nulls in this array, so avoid adding
them, just in case we somehow end up looking at it. This code returns
right after the append so it should be okay.
2015-08-04 13:06:14 -07:00