Commit Graph

58 Commits

Author SHA1 Message Date
Boris Zbarsky
b8297ece4e Bug 965413 part 10. Use a LoadInfo for loading documents in various places where we force a particular principal. r=smaug 2014-07-10 02:56:37 -04:00
Benoit Jacob
66530c3e02 Bug 1035394 - Fix dangerous public destructors in dom - r=ehsan 2014-07-08 17:23:17 -04:00
Jan de Mooij
f3876da607 Bug 1034191 - Make nsDependentJSString users work with Latin1 strings and nursery-allocated strings. r=bz 2014-07-05 17:30:54 +02:00
Peter Van der Beken
d73f6e3936 Bug 1029104 - Convert XPathExpression to WebIDL bindings, add WebIDL API and switch to the WebIDL binding. r=bz.
--HG--
extra : rebase_source : 2b3459ddf41e258469c31e0e7c4d515ef7a7c83f
2014-06-27 21:39:50 +02:00
Peter Van der Beken
bc51078f27 Bug 1029104 - Convert XPathExpression to WebIDL bindings, make XPathExpression hold a weak reference to the document. r=bz.
--HG--
rename : dom/xslt/xpath/nsXPathExpression.cpp => dom/xslt/xpath/XPathExpression.cpp
rename : dom/xslt/xpath/nsXPathExpression.h => dom/xslt/xpath/XPathExpression.h
extra : rebase_source : b011030bee7c16e098069452d6fdbfd43c080611
2014-06-26 15:32:20 +02:00
Peter Van der Beken
03282794f1 Bug 1029104 - Convert XPathExpression to WebIDL bindings, move EvalContextImpl out of header. r=bz.
--HG--
rename : dom/xslt/xpath/nsXPathExpression.cpp => dom/xslt/xpath/XPathExpression.cpp
rename : dom/xslt/xpath/nsXPathExpression.h => dom/xslt/xpath/XPathExpression.h
extra : rebase_source : 4bdf4671ea04c76de76053282fc810d1f4c42aea
2013-07-09 12:09:39 -04:00
Peter Van der Beken
41a6dc5302 Bug 1029104 - Convert XPathExpression to WebIDL bindings, move files and rename class. r=bz.
--HG--
rename : dom/xslt/xpath/nsXPathExpression.cpp => dom/xslt/xpath/XPathExpression.cpp
rename : dom/xslt/xpath/nsXPathExpression.h => dom/xslt/xpath/XPathExpression.h
extra : rebase_source : bedd3da79f1a4c2df19cfe3e9b68f1270b0b5688
2013-07-04 17:40:10 +02:00
Peter Van der Beken
bd5d23028e Bug 1029104 - Convert XPathExpression to WebIDL bindings, remove txResultRecycler::init. r=bz.
--HG--
extra : rebase_source : 3c2f6f86c2e34c7ec32a22eb4f1a90e77d05cdfa
2014-06-05 15:14:56 +02:00
Peter Van der Beken
c3c28cd39c Backout patches for bug 1029104 for bustage on a CLOSED TREE.
--HG--
rename : dom/xslt/xpath/XPathExpression.cpp => dom/xslt/xpath/nsXPathExpression.cpp
rename : dom/xslt/xpath/XPathExpression.h => dom/xslt/xpath/nsXPathExpression.h
extra : rebase_source : 4cd96320fa102351284cca55b66d3a54592e5212
2014-06-27 23:07:44 +02:00
Peter Van der Beken
fa9f85abb2 Fix bustage from bad merge of patches for bug 1029104. r=bustage.
--HG--
extra : rebase_source : f08d6d25ea8d6bb063f9f947f096faad7474dd22
2014-06-27 22:22:51 +02:00
Peter Van der Beken
05aa543b2f Bug 1029104 - Convert XPathExpression to WebIDL bindings, add WebIDL API and switch to the WebIDL binding. r=bz.
--HG--
extra : rebase_source : f5c7a235a9a880f829ff39ccbb92508cbaad31a5
2014-06-27 21:39:50 +02:00
Peter Van der Beken
7ad2710fca Bug 1029104 - Convert XPathExpression to WebIDL bindings, make XPathExpression hold a weak reference to the document. r=bz.
--HG--
rename : dom/xslt/xpath/nsXPathExpression.cpp => dom/xslt/xpath/XPathExpression.cpp
extra : rebase_source : 3ab3a4babc5ec3c67f3aec3aeef422b8c3c526ef
2014-06-26 15:32:20 +02:00
Peter Van der Beken
d7fe888724 Bug 1029104 - Convert XPathExpression to WebIDL bindings, move EvalContextImpl out of header. r=bz.
--HG--
rename : dom/xslt/xpath/nsXPathExpression.cpp => dom/xslt/xpath/XPathExpression.cpp
rename : dom/xslt/xpath/nsXPathExpression.h => dom/xslt/xpath/XPathExpression.h
extra : rebase_source : a8f2deb3244c8e556ff1778292dd1f96647f3ace
2013-07-09 12:09:39 -04:00
Peter Van der Beken
229d68b211 Bug 1029104 - Convert XPathExpression to WebIDL bindings, move files and rename class. r=bz.
--HG--
rename : dom/xslt/xpath/nsXPathExpression.cpp => dom/xslt/xpath/XPathExpression.cpp
rename : dom/xslt/xpath/nsXPathExpression.h => dom/xslt/xpath/XPathExpression.h
extra : rebase_source : b8c559b8ad78bbc4b9fae8f640b21a25d19db783
2013-07-04 17:40:10 +02:00
Peter Van der Beken
b1fd5164e4 Bug 1029104 - Convert XPathExpression to WebIDL bindings, remove txResultRecycler::init. r=bz.
--HG--
extra : rebase_source : 156d0c9c4da5c7ef1aedce24f8aaa81111623d32
2014-06-05 15:14:56 +02:00
Jim Blandy
b6b202b6bb Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan
The -*- file variable lines -*- establish per-file settings that Emacs will
pick up. This patch makes the following changes to those lines (and touches
nothing else):

 - Never set the buffer's mode.

   Years ago, Emacs did not have a good JavaScript mode, so it made sense
   to use Java or C++ mode in .js files. However, Emacs has had js-mode for
   years now; it's perfectly serviceable, and is available and enabled by
   default in all major Emacs packagings.

   Selecting a mode in the -*- file variable line -*- is almost always the
   wrong thing to do anyway. It overrides Emacs's default choice, which is
   (now) reasonable; and even worse, it overrides settings the user might
   have made in their '.emacs' file for that file extension. It's only
   useful when there's something specific about that particular file that
   makes a particular mode appropriate.

 - Correctly propagate settings that establish the correct indentation
   level for this file: c-basic-offset and js2-basic-offset should be
   js-indent-level. Whatever value they're given should be preserved;
   different parts of our tree use different indentation styles.

 - We don't use tabs in Mozilla JS code. Always set indent-tabs-mode: nil.
   Remove tab-width: settings, at least in files that don't contain tab
   characters.

 - Remove js2-mode settings that belong in the user's .emacs file, like
   js2-skip-preprocessor-directives.
2014-06-24 22:12:07 -07:00
Benoit Jacob
84b13c683d Bug 1028588 - Fix dangerous public destructors in the rest of dom/ - r=ehsan 2014-06-23 15:56:07 -04:00
Peter Van der Beken
98bc3ecb24 Bug 1027095 - Convert XPathResult to WebIDL bindings - add WebIDL API and switch. r=bz. 2013-07-04 17:40:06 +02:00
Peter Van der Beken
3b6258e0e8 Bug 1027095 - Convert XPathResult to WebIDL bindings - move files and rename class. r=bz.
--HG--
rename : dom/xslt/xpath/nsXPathResult.cpp => dom/xslt/xpath/XPathResult.cpp
rename : dom/xslt/xpath/nsXPathResult.h => dom/xslt/xpath/XPathResult.h
2013-07-04 17:39:28 +02:00
Ms2ger
8824fbbbd9 Bug 1022855 - Rename nsCSSStyleSheet to mozilla::CSSStyleSheet; r=heycam
--HG--
rename : layout/style/nsCSSStyleSheet.cpp => layout/style/CSSStyleSheet.cpp
rename : layout/style/nsCSSStyleSheet.h => layout/style/CSSStyleSheet.h
2014-06-20 12:32:49 +02:00
Ms2ger
e67cb5f1e0 Backout revision 308e51eae10c for build bustage.
--HG--
rename : layout/style/CSSStyleSheet.cpp => layout/style/nsCSSStyleSheet.cpp
rename : layout/style/CSSStyleSheet.h => layout/style/nsCSSStyleSheet.h
2014-06-20 13:00:08 +02:00
Ms2ger
6a7f549221 Bug 1022855 - Rename nsCSSStyleSheet to mozilla::CSSStyleSheet; r=heycam
--HG--
rename : layout/style/nsCSSStyleSheet.cpp => layout/style/CSSStyleSheet.cpp
rename : layout/style/nsCSSStyleSheet.h => layout/style/CSSStyleSheet.h
2014-06-20 12:32:49 +02:00
Kyle Huey
c46bed2510 Bug 737976: Remove nsINodeInfo. r=smaug
--HG--
rename : content/base/src/nsNodeInfo.cpp => dom/base/NodeInfo.cpp
rename : content/base/public/nsINodeInfo.h => dom/base/NodeInfo.h
rename : content/base/src/nsNodeInfo.h => dom/base/NodeInfoInlines.h
2014-06-19 19:01:40 -07:00
Ms2ger
8775440177 Bug 741295 - Treat 'id' and 'class' as global attributes for all elements; r=bz 2014-05-30 09:36:53 +02:00
Birunthan Mohanathas
2779282281 Bug 869836 - Part 12: Use Assign('c') instead of AssignLiteral("c"). r=ehsan
--HG--
extra : rebase_source : a6b15019cee452973dd8bf3112c15e14175855a9
2014-05-26 21:55:08 +03:00
Birunthan Mohanathas
016d46e5f3 Bug 869836 - Part 3: Use Append('c') instead of AppendLiteral("c"). r=ehsan 2014-05-22 06:48:51 +03:00
Birunthan Mohanathas
41bdca1ff6 Bug 869836 - Part 2: Use AppendLiteral instead of Append(NS_LITERAL_STRING(...)). r=ehsan 2014-05-22 06:48:50 +03:00
Andrew McCreight
e9ac904c64 Bug 1000613 - Don't leak txExecutionState::mInitialEvalContext. r=peterv 2014-05-15 09:33:00 +02:00
Trevor Saunders
c913b8d558 bug 1004746 - part 1 - Remove a bunch of usage of nsAutoPtr's copy ctor r=froydnj 2014-05-07 18:05:37 -04:00
Nick Lebedev
7d585aca9e Bug 998002 - Rename nsContentUtils::Get{Subject,Object}Principal to nsContentUtils::{Subject,Object}Principal. r=bholley 2014-05-13 11:58:00 +02:00
Benoit Jacob
472e4472e0 Bug 1004098 - Make nsTArray use size_t in its interface (32bitness is fine as an internal detail) - r=froydnj, sr=bsmedberg 2014-05-08 21:03:35 -04:00
Bobby Holley
0a5fb33d0a Bug 997987 - Remove usage of nsIScriptSecurityManager::GetSubjectPrincipal. r=Ms2ger 2014-05-06 15:43:03 -07:00
Birunthan Mohanathas
504b581650 Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
Birunthan Mohanathas
c8c6722bb4 Bug 900903 - Part 2: Change uses of numbered macros in nsCycleCollectionParticipant.h to the variadic variants. r=smaug 2014-04-25 12:49:00 -04:00
Ehsan Akhgari
6f17753f68 Bug 998738 - Kill nsIDOMXPathNamespace (and window.XPathNamespace); r=smaug 2014-04-24 12:07:44 -04:00
Aryeh Gregor
549944809f Bug 986857 - Replace the Attr element getters by something that returns an Element; r=bz 2014-04-10 19:09:50 +03:00
Boris Zbarsky
fdbb455d4f Bug 991742 part 8. Remove the "aScope" argument of WebIDL/nsWrapperCache WrapObject() methods. r=bholley
This patch was mostly generated with the following command:

find . -name "*.h" -o -name "*.cpp" | xargs sed -e '/WrapObject(JSContext/ {; N; s/\(WrapObject(JSContext *\* *a\{0,1\}[Cc]x\),\n\{0,1\} *JS::Handle<JSObject\*> a\{0,1\}[sS]cope/\1/ ; }' -i ""

and then reverting the changes that made to
dom/bindings/BindingUtils.h, since those WrapObject methods are not
the ones we're trying to change here, plus a bunch of manual fixups
for cases that this command did not catch (including all the callsites
of WrapObject()).
2014-04-08 18:27:18 -04:00
Boris Zbarsky
3f26a82832 Bug 991742 part 6. Remove the "aScope" argument of binding Wrap() methods. r=bholley
This patch was mostly generated with this command:

find . -name "*.h" -o -name "*.cpp" | xargs sed -e 's/Binding::Wrap(aCx, aScope, this/Binding::Wrap(aCx, this/' -e 's/Binding_workers::Wrap(aCx, aScope, this/Binding_workers::Wrap(aCx, this/' -e 's/Binding::Wrap(cx, scope, this/Binding::Wrap(cx, this/' -i ""

plus a few manual fixes to dom/bindings/Codegen.py, js/xpconnect/src/event_impl_gen.py, and a few C++ files that were not caught in the search-and-replace above.
2014-04-08 18:27:17 -04:00
Bobby Holley
b4a8be6b33 Bug 986730 - Fix up a bunch of tests that assume that they can touch AC in content. r=mrbkap 2014-04-06 12:32:38 -07:00
Daniel Holbert
9d95b47d75 Bug 984786 part 4: Give NS_INLINE_DECL_*REFCOUNTING classes private/protected destructor & MOZ_FINAL annotation where appropriate, in /dom. r=smaug 2014-04-02 09:21:03 -07:00
Ehsan Akhgari
345b35a6e8 Bug 798158 - Part 1: Use a pointer-sized type to store refcounts internally; r=bsmedberg 2014-03-27 16:38:33 -04:00
Ehsan Akhgari
0cfc414bc6 Backed out 2 changesets (bug 957431) because we decided we're keeping Attr.ownerElement in the end
Backed out changeset ab12a8416a1d (bug 957431)
Backed out changeset 188d1e255d40 (bug 957431)
2014-03-21 16:04:09 -04:00
Ehsan Akhgari
67a4370aba Backed out 2 changesets (bug 957652) because bug 957431 is being backed out
Backed out changeset 92efd61cfca5 (bug 957652)
Backed out changeset 9d405c64a7bf (bug 957652)
2014-03-21 16:02:21 -04:00
Alessio Placitelli
d823d1c396 Bug 950076 - Add a fallible form of nsAString::Append and Replace and use it in nsTextFragment::AppendTo. r=bsmedberg, r=jst 2014-03-19 13:05:02 -04:00
Ryan VanderMeulen
a902b4a4c8 Backed out changesets a17ee88f1fe7, 6e3aee4a9650, 07e5ed676919 (bug 950076) for Werror bustage. 2014-03-19 14:00:10 -04:00
Alessio Placitelli
c85cb08e9b Bug 950076 - Add a fallible form of nsAString::Append and Replace and use it in nsTextFragment::AppendTo. r=bsmedberg, r=jst 2014-03-19 13:05:02 -04:00
Masayuki Nakano
6461de2a4d Bug 981261 part.5 Rename nsEventListenerManager to mozilla::EventListenerManager r=smaug
--HG--
rename : dom/events/nsEventListenerManager.cpp => dom/events/EventListenerManager.cpp
rename : dom/events/nsEventListenerManager.h => dom/events/EventListenerManager.h
2014-03-17 15:56:53 +09:00
Kyle Huey
f7eafc09a9 Bug 967364: Rename already_AddRefed::get to take. r=bsmedberg 2014-03-15 12:00:15 -07:00
Reuben Morais
b672cdc604 Bug 458300 - Rename nsINameSpaceManager.h to nsNameSpaceManager.h. r=jst r=hsivonen
--HG--
rename : content/base/public/nsINameSpaceManager.h => content/base/public/nsNameSpaceManager.h
2014-02-27 20:04:46 -03:00
Reuben Morais
5e62e712f6 Bug 458300 - Remove some unneeded includes of nsINameSpaceManager.h. r=jst 2014-02-27 20:04:45 -03:00