Commit Graph

8566 Commits

Author SHA1 Message Date
Nathan Froyd
055e2365e3 Bug 1217939 - part 2 - move nsContentUtils::GetSelectionBoundingRect to nsLayoutUtils; r=smaug
All callers of this function are in layout/base/ and it uses a lot of
things from nsLayoutUtils, so nsLayoutUtils seems like a better fit for
it.
2015-10-23 13:39:00 -04:00
Nathan Froyd
4331d7171e Bug 1217939 - part 1 - remove nsContentUtils::GetViewportInfo; r=smaug
All it was doing was forwarding to the provided document, which is an
unnecessary layer of indirection.
2015-10-23 13:21:57 -04:00
Carsten "Tomcat" Book
758c43af6b merge mozilla-inbound to mozilla-central a=merge 2015-10-26 10:57:35 +01:00
Carsten "Tomcat" Book
a1c13d0acf merge fx-team to mozilla-central a=merge 2015-10-26 10:56:02 +01:00
Wes Kocher
2625db041f Merge m-c to b2ginbound, a=merge
--HG--
extra : commitid : IGU3ThODOFR
2015-10-23 15:52:06 -07:00
Wes Kocher
4fa57a6039 Merge inbound to central, a=merge
--HG--
extra : commitid : DZp5o9P5r4R
2015-10-23 15:37:37 -07:00
Fabrice Desré
59bf225b8b Bug 1201685 - Limit the number of indexedDB open() calls in IndexedDBHelper r=gwagner 2015-10-23 14:40:52 -07:00
Carsten "Tomcat" Book
c138c48fd1 Merge m-c to fx-team 2015-10-23 11:51:27 +02:00
Victor Porof
9dc0ce6b1a Bug 1202657 - Add markers for workers' message passing and serialization/deserialization, r=smaug, jsantell, tromey, ejpbruel
--HG--
rename : docshell/base/timeline/OTMTMarkerReceiver.h => docshell/base/timeline/MarkersStorage.h
2015-10-21 23:10:05 +02:00
Ryan VanderMeulen
5dfded4cea Bug 729431 - Add crashtest. 2015-10-25 00:06:24 -04: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
Wes Kocher
2fc1737838 Merge m-c to inbound, a=merge 2015-10-22 16:56:10 -07:00
Wes Kocher
5ba2dcfe5c Merge b2ginbound to central, a=merge 2015-10-22 16:50:22 -07:00
Ben Kelly
2a1f6bf379 Bug 1212904 P5 Make XHR respect channel tainting. r=ehsan r=sicking 2015-10-22 11:07:32 -07:00
Nathan Froyd
9f16f39c05 Bug 1217662 - part 6 - remove Layers.h #include from FrameListBuilder.h; r=mattwoodrow
This change necessitates a few other header changes around the tree:
either places that we relying on FrameLayerBuilder.h to #include
ImageLayers.h for them, or places that were bootlegging headers from
ImageLayers.h.
2015-10-22 17:02:14 -04:00
Tom Tromey
64050c40ce Bug 1200832 - make Console.trace follow async parents; r=baku,bgrins
--HG--
extra : rebase_source : a39ad1bdc73ac53d0f611c3b5e43327aea36ec6f
2015-10-21 08:40:00 +02:00
Sean Lin
4dce1c7f21 Bug 1215426 - [Presentation WebAPI] Grant access to browser receiving pages. r=smaug 2015-10-21 14:01:08 +08:00
William Chen
16cbe794df Bug 920734 - Part 1: Implement window.orientation and window.onorientationchange. r=baku
--HG--
extra : rebase_source : 1ca2e3a29733762d4bb2c335a0d6fcf5d7b03c0f
2015-10-23 21:37:28 -07:00
Henry
9fe43dfb43 Bug 1180088 - Use origin-based permission check on parent side for signed packaged web app. r=kanru. 2015-10-22 05:44:00 +02:00
Masayuki Nakano
dd6ab2bd5f Bug 1215816 nsContentIterator::Init(nsIDOMRange*) should not include end node if it's an empty element and the end offset is 0 when mPre is true r=smaug 2015-10-21 23:26:20 +09:00
Cameron McCormack
235db06383 Bug 1208951 - Part 9: Implement KeyframeEffectReadOnly constructor. r=bzbarsky r=birtles 2015-10-22 19:22:38 +11:00
Tooru Fujisawa
24ab66bc98 Bug 1217093 - Remove for-each from dom/. r=smaug
--HG--
extra : commitid : DcjxshJqlKg
extra : rebase_source : 23bc9a985f1e6d13e13837e31bb9b88b9be24d55
2015-10-19 02:00:50 +09:00
Brian Birtles
5d800ef88f Bug 1194639 part 1 - Add AutoMutationBatchForAnimation; r=heycam 2015-10-22 15:16:18 +09:00
Michael Layzell
d2d7336d08 Bug 918771 - Part 2: Send text/html as MIME type for XHR send() of HTML document, r=bz 2015-10-20 15:54:15 -04: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
Masayuki Nakano
7f8882730a Bug 1215798 nsContentIterator::Init(nsIDOMRange*) should not skip empty start node when mPre is true r=smaug 2015-10-21 01:45:03 +09:00
Andrea Marchesini
7e6f1c0dce Bug 1127703 - "Support iteration on FormData" r=bz
--HG--
extra : rebase_source : a98ecef5346fd2936474e4056d2f99019162d13b
2015-10-20 04:06:00 +02:00
Christoph Kerschbaumer
ddb2d645e5 Bug 1194526 - Use channel->asycnOpen2 in dom/base/nsScriptLoader.cpp (r=sicking) 2015-10-19 18:33:37 -07:00
Jonas Sicking
be2deca017 Bug 1195167 part 1: Let necko handle all protocols. r=bkelly 2015-10-19 18:24:36 -07:00
Boris Zbarsky
5019244e1d Bug 1216193. Implement webkitMatchesSelector. r=khuey 2015-10-19 20:18:09 -04:00
Cameron McCormack
2f1046d287 Bug 1216043 - Rename nsStyleSheet::sheetType and make it an enum class. r=dbaron
The only substantive change here, apart from a few variables changing in
size from uint16_t to uint8_t, is FontFaceSet's use of SheetType::Unknown
(0xFF) instead of 0 for FontFaceRecords for script-created FontFaces.
2015-10-20 10:16:20 +11:00
Xidorn Quan
932d0fcec1 Bug 1216087 - Unlock pointer whenever the element is unbound from the tree. r=smaug
--HG--
extra : rebase_source : c23d4bd5ac8c90fc2bfd4dac7c9df846a4378bce
extra : source : 5afd69a459ec2840e452f16cabcd8736a1d3921b
2015-10-20 10:02:03 +11:00
Wes Kocher
4713742f00 Backed out changeset c159526f9145 (bug 1127703) for test_formSubmission.html failures 2015-10-19 16:02:06 -07:00
Bobby Holley
3f0e560af7 Bug 1216072 - Pass aCallerIsChrome in more places. r=bz 2015-10-19 13:57:01 -07:00
Jonas Sicking
1b60ff836b Bug 1182571: Followup bustage fix from merge fail. CLOSED TREE 2015-10-19 11:48:41 -07:00
Andrea Marchesini
c628603a97 Bug 1127703 - Support iteration on FormData, r=bz 2015-10-19 19:23:52 +01:00
Jonas Sicking
cc10dd7ad3 Bug 1182571: Make nsXMLHttpRequest use AsyncOpen2. r=ehsan 2015-10-19 11:14:54 -07:00
Wes Kocher
db78fde55b Backed out changeset 736f0981762c (bug 1127703) for build bustage 2015-10-19 10:55:41 -07:00
Andrea Marchesini
c94d30fc34 Bug 1127703 - Support iteration on FormData, r=bz 2015-10-19 16:16:42 +01:00
Andrea Marchesini
097bae44d1 Bug 1085284 - Implement URLSearchParams iterable<>, r=bz 2015-10-19 16:07:40 +01:00
Aryeh Gregor
9a6f8aa5dd Bug 801545 - Remove DocumentType.internalSubset, r=bz
The C++ method GetInternalSubset() and related apparatus remains, and is
used by the XML serializer etc.

--HG--
extra : commitid : 3IVZZkyD3HI
extra : amend_source : 477c91b1bd4bfa8c77b0bec7ea7dbf6c57667094
2015-10-19 09:53:41 +01:00
Phil Ringnalda
9aeb5db9a1 Bug 1206995 - disable test_window_define_nonconfigurable.html for release_build, since the feature it tests is disabled there, which makes the test fail
--HG--
extra : rebase_source : c1d39ea0d6a7709de4411085030d8cdbd2a137f9
2015-09-21 19:43:47 -07: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
Nathan Froyd
583afa0965 Bug 1207245 - part 3 - switch all uses of mozilla::RefPtr<T> to nsRefPtr<T>; r=ehsan
This commit was generated using the following script, executed at the
top level of a typical source code checkout.

 # Don't modify select files in mfbt/ because it's not worth trying to
 # tease out the dependencies currently.
 #
 # Don't modify anything in media/gmp-clearkey/0.1/ because those files
 # use their own RefPtr, defined in their own RefCounted.h.
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    grep -v 'mfbt/RefPtr.h' | \
    grep -v 'mfbt/nsRefPtr.h' | \
    grep -v 'mfbt/RefCounted.h' | \
    grep -v 'media/gmp-clearkey/0.1/' | \
    xargs perl -p -i -e '
 s/mozilla::RefPtr/nsRefPtr/g; # handle declarations in headers
 s/\bRefPtr</nsRefPtr</g; # handle local variables in functions
 s#mozilla/RefPtr.h#mozilla/nsRefPtr.h#; # handle #includes
 s#mfbt/RefPtr.h#mfbt/nsRefPtr.h#;       # handle strange #includes
'

 # |using mozilla::RefPtr;| is OK; |using nsRefPtr;| is invalid syntax.
find . -name '*.cpp' -o -name '*.mm' | xargs sed -i -e '/using nsRefPtr/d'

 # RefPtr.h used |byRef| for dealing with COM-style outparams.
 # nsRefPtr.h uses |getter_AddRefs|.
 # Fixup that mismatch.
find . -name '*.cpp' -o -name '*.h'| \
    xargs perl -p -i -e 's/byRef/getter_AddRefs/g'
2015-10-18 00:40:10 -04:00
Bobby Holley
cfa69d93e9 Bug 1215398 - Hoist the IsCallerChrome call in CanMoveResizeWindows to the script-only entry points. r=bz 2015-10-16 16:35:30 -07:00
Eric Rahm
31cad9d79a Bug 1214764 - Convert NS_ENSURE to a plain return in nsDocument::IsScriptEnabled. r=bholley 2015-10-16 11:20:38 -07:00
Nathan Froyd
fe57e31ffe Bug 1212027 - part 7 - modify IPDL codegen to store sub-protocols in a hashtable rather than an array; r=jld,nical,cpearce,billm 2015-10-07 14:30:33 -04:00
Andrea Marchesini
b5a7426545 Bug 1215236 - "Remove compilation warnings in StructuredCloneHolder". r=smaug 2015-10-15 11:37:00 +02:00
Wes Kocher
c2b3d9275b Backed out 2 changesets (bug 1182571) for being a likely cause of the Android S4 errors
Backed out changeset e2b3064dcace (bug 1182571)
Backed out changeset 8153ae231d16 (bug 1182571)
2015-10-15 14:07:06 -07:00