Jonathan Kew
e007b6ec83
Bug 1301655 - pt 0 - Add an optional parameter to nsIChromeRegistry.getSelectedLocale to allow callers to request the locale be returned as a valid BCP47 lang tag. r=gandalf
2016-10-28 12:04:06 +01:00
Michael Layzell
a553fdd757
Bug 1303196 - Part 4: Merge mFrameLoader and mOpener into mFrameLoaderOrOpener, r=smaug
...
MozReview-Commit-ID: DuJRM5KsGhb
2016-10-27 15:53:35 -04:00
Michael Layzell
f9eea2d135
Bug 1303196 - Part 2: Connect the DocGroup and TabGroup objects to nsGlobalWindow and nsDocument, ensuring that Opener is set early enough that it is correct, r=smaug
...
MozReview-Commit-ID: 3rZfLw3dXkF
2016-10-27 15:53:35 -04:00
Xidorn Quan
05ef8466c6
Bug 1309109 part 5 - Store ServoDeclarationBlock rather than RawServoDeclarationBlock in nsAttrValue. r=heycam
...
MozReview-Commit-ID: HWqgjwif1qF
--HG--
extra : source : cf3b1baff3d1d6233c72e32cf01cd28a2b344ebf
2016-10-18 15:29:03 +11:00
Jon Coppeard
6ca64e3652
Bug 1308919 - Don't make Handles to Heap<T> as it avoids the read barrier r=bz
2016-10-14 09:45:28 +01:00
Jessica Jong
b3014cc00b
Bug 1288591 - Implement the layout for <input type=time>. r=mconley, r=dholbert, r=smaug
2016-10-06 00:17:00 -04:00
Boris Zbarsky
6a6430cf38
Bug 1305580 part 1. Remove all the methods from nsIDOMXMLDocument and make it not inherit from nsIDOMDocument anymore. r=smaug
...
This will let us know for sure that we're being called from script in things
like nsXMLDocument::Load.
2016-09-28 15:46:44 -04:00
Wes Kocher
63caea8af6
Backed out 2 changesets (bug 1305580) for Windows svgr crashes a=backout CLOSED TREE
...
Backed out changeset 1124e3458403 (bug 1305580)
Backed out changeset 521286426a93 (bug 1305580)
2016-09-28 16:52:15 -07:00
Boris Zbarsky
6d5e95674f
Bug 1305580 part 1. Remove all the methods from nsIDOMXMLDocument and make it not inherit from nsIDOMDocument anymore. r=smaug
...
This will let us know for sure that we're being called from script in things
like nsXMLDocument::Load.
2016-09-28 15:46:44 -04:00
Xidorn Quan
2f49a48a09
Bug 1304302 part 10 - Replace all uses of StyleSheetHandle. r=heycam
...
This commit is generated by the following commands with some minor
manual adjustment:
find . \( -name '*.h' -or -name '*.cpp' \) -not -path './layout/style/StyleSheet*' -exec sed -i -b \
-e '/^\(#include\|using\)/s/StyleSheetHandle/StyleSheet/g' \
-e 's/\(mozilla::\)\?StyleSheetHandle::RefPtr/RefPtr<\1StyleSheet>/g' \
-e 's/StyleSheetHandle()/nullptr/g' \
-e 's/->AsStyleSheet()//g' \
-e 's/StyleSheetHandle/StyleSheet*/g' {} +
sed -i -b 's/sheet->AsVoidPtr()/sheet.get()/' layout/style/Loader.cpp
sed -i -b 's/AsHandle()/this/' layout/style/StyleSheet.cpp
MozReview-Commit-ID: 7abdvlKHukd
--HG--
extra : source : e5682242db07203b5a91810fe1e243c955310588
2016-09-26 22:03:25 +10:00
Xidorn Quan
1dc2955ab8
Bug 1304302 part 8 - Change include of {CSS,Servo}StyleSheet.h to StyleSheetInlines.h. r=heycam
...
It is a preparation for later patch which moves functions from those
classes into StyleSheet. Some of the functions are better defined in
StyleSheetInlines.h.
This commit is generated by the following command:
find . \( -name '*.h' -or -name '*.cpp' \) -not -name '*StyleSheet*' -exec sed -i -b \
-e '/^#include/ s_/\(CSS\|Servo\)StyleSheet\.h_/StyleSheetInlines.h_' \
-e '1,\_^#include "mozilla/StyleSheetInlines.h"_ ! { \_^#include "mozilla/StyleSheetInlines.h"_d }' {} +
MozReview-Commit-ID: 54H5x27Pmso
--HG--
extra : source : e4fe253a8f82c3c58e5191d6af66fb0e85f2df19
2016-09-26 22:03:25 +10:00
Andrea Marchesini
5994c71158
Bug 1301251 - Handle GetSpec() failure in nsContentUtils::GetWrapperSafeScriptFilename(), r=smaug
2016-09-19 15:50:22 +02:00
Andrew McCreight
311e370e1c
Bug 1300211 - Trace XULDocument::mCurrentPrototype. r=smaug
...
This ensures that if mCurrentPrototype gets added to mPrototypes, it
won't go from gray to black.
MozReview-Commit-ID: 7PyZEa1kpt6
--HG--
extra : rebase_source : 5c736ae896a024aea53523664ab24aafc70648da
2016-09-08 15:14:28 -07:00
Paul Bignier
a0285e5e8e
Bug 1282408 - add ignore flag for variables from nsSortState & nsXMLContentSerializer. r=bzbarsky
2016-07-27 14:41:55 +02:00
Nicholas Nethercote
b71747b2ac
Bug 1299727 - Rename NS_WARN_IF_FALSE as NS_WARNING_ASSERTION. r=erahm.
...
The new name makes the sense of the condition much clearer. E.g. compare:
NS_WARN_IF_FALSE(!rv.Failed());
with:
NS_WARNING_ASSERTION(!rv.Failed());
The new name also makes it clearer that it only has effect in debug builds,
because that's standard for assertions.
--HG--
extra : rebase_source : 886e57a9e433e0cb6ed635cc075b34b7ebf81853
2016-09-01 15:01:16 +10:00
Nicholas Nethercote
742fc7eb48
Bug 1297961 (part 1) - Introduce nsURI::GetSpecOrDefault(). r=hurley.
...
This function is an infallible alternative to nsIURI::GetSpec(). It's useful
when it's appropriate to handle a GetSpec() failure with a failure string, e.g.
for log/warning/error messages. It allows code like this:
nsAutoCString spec;
uri->GetSpec(spec);
printf("uri: %s", spec.get());
to be changed to this:
printf("uri: %s", uri->GetSpecOrDefault().get());
This introduces a slight behavioural change. Previously, if GetSpec() failed,
an empty string would be used here. Now, "[nsIURI::GetSpec failed]" will be
produced instead. In most cases this failure string will make for a clearer
log/warning/error message than the empty string.
* * *
Bug 1297961 (part 1b) - More GetSpecOrDefault() additions. r=hurley.
I will fold this into part 1 before landing.
--HG--
extra : rebase_source : ddc19a5624354ac098be019ca13cc24b99b80ddc
2016-08-26 16:02:31 +10:00
Thomas Wisniewski
756abf6cfa
Bug 289714 - Do not write <parsererror> nodes for invalid XML documents in XMLHttpRequests made by web content. r=billm, r=bz
...
--HG--
extra : rebase_source : 4cc87bbeca140953a90b31e1fd5b32098d37a2de
2016-08-29 16:30:36 -04:00
Michael Layzell
b258dfaa89
Bug 1297802 - Remove unused RefPtr<> and COMPtr<> types in dom/, r=baku
...
MozReview-Commit-ID: CLUJZdbN7sW
2016-08-29 11:40:02 -04:00
J. Ryan Stinnett
fff17715fe
Bug 1297569 - Disable XUL popup contextmenu handler for all remote targets. r=felipe
...
This expands the existing escape hatch added by bug 516753 (which disabled this
same handler for content within a remote xul:browser). After this change, it is
is disabled for any remote target (`EventStateManager::IsRemoteTarget`), which
in practice means remote xul:browser or remote iframe mozbrowser.
MozReview-Commit-ID: Ix7fdtDH54R
2016-08-26 18:32:09 -05:00
Andrea Marchesini
19e2bcf7ee
Bug 1257455
- XULElement should not allow the changing of usercontextid attribute, r=smaug
2016-08-23 08:41:51 +02:00
Jonathan Kingston
45911f854e
Bug 1290965
- Prevent command from firing when click has prevented default on the XUL element. r=enn
...
MozReview-Commit-ID: 5lMw3hFCe3e
--HG--
extra : rebase_source : eb722858c00720aef34c82080d567829ec0f581e
2016-08-09 14:51:47 +01:00
Michael Layzell
aa89e8fd55
Bug 1293001 - Part 1: Change the BinaryName of nsIFrameLoaderOwner::frameLoader (which overloaded another virtual method) to FrameLoaderXPCOM, r=froydnj
...
MozReview-Commit-ID: Db3z2DP5qba
2016-08-11 15:49:39 -04:00
Jan de Mooij
c33bac8363
Bug 1292892 part 5 - Replace most nsContentUtils::RootingCx calls with dom::RootingCx. r=bz,terrence
2016-08-11 14:39:23 +02: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
Daosheng Mu
8083dbd7bd
Bug 778654 - Implement and move tabIndex functions to Element class to avoid duplicate work.r=peterv,heycam
...
MozReview-Commit-ID: uetkJztNcn
--HG--
extra : transplant_source : U%E7va%AE%E6%FE%BDN.%28%AA%8F%19%1D%FF%26%E6%B7t
2016-05-24 12:22:17 +08:00
David Zbarsky
e0691abc04
Bug 824592 part 3. Get rid of nsIDOMElementCSSInlineStyle. r=peterv
2016-08-02 11:05:38 -07:00
Carsten "Tomcat" Book
b9a6c687fa
merge mozilla-inbound to mozilla-central a=merge
2016-07-25 15:50:41 +02:00
Manish Goregaokar
52b9ca33f3
Bug 1288383 - Replace NS_STYLE_USER_FOCUS_* with an enum class; r=heycam
...
MozReview-Commit-ID: A7BYcfsn1tI
--HG--
extra : rebase_source : b893331b173a306143e546f0d403ae25f827fae2
2016-07-25 11:56:40 +05:30
Andrea Marchesini
60ab8339e0
Bug 1288736 - Add some missing rv.SuppressException(), r=smaug
2016-07-22 16:50:10 +02:00
Tom Tromey
5538d692d3
Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
...
This removes the unnecessary setting of c-basic-offset from all
python-mode files.
This was automatically generated using
perl -pi -e 's/; *c-basic-offset: *[0-9]+//'
... on the affected files.
The bulk of these files are moz.build files but there a few others as
well.
MozReview-Commit-ID: 2pPf3DEiZqx
--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Ting-Yu Lin
d444310eb1
Bug 1277129 Part 1b - Rename nsHTMLReflowState.h/cpp to ReflowInput.h/cpp and fix #includes. r=dbaron
...
The #includes are fixed by the following script:
function rename() {
find .\
-type f\
! -path "./obj*"\
! -path "./.git"\
! -path "./.hg"\
\( -name "*.cpp" -or\
-name "*.h" \)\
-exec sed -i -e "s/$1/$2/g" "{}" \;
}
rename "nsHTMLReflowState\.h" "mozilla\/ReflowInput\.h"
MozReview-Commit-ID: FjwHA4YRHNv
--HG--
rename : layout/generic/nsHTMLReflowState.cpp => layout/generic/ReflowInput.cpp
rename : layout/generic/nsHTMLReflowState.h => layout/generic/ReflowInput.h
extra : rebase_source : e4215620717df436a51243cee689286cfabc7c71
2016-07-21 18:36:34 +08:00
Chris Peterson
b175c9fdd5
Bug 1277106 - Part 2: Expand MOZ_UTF16() strings to u"" string literals. r=Waldo
2016-07-20 22:03:25 -07:00
Andrew McCreight
2c5b2b21f3
Bug 1287624, part 1 - Use RefPtr::forget() instead of ::swap() in dom/. r=froydnj
...
These uses all null the return value first, so there should be no change in behavior.
2016-07-20 15:19:00 -07:00
Carsten "Tomcat" Book
8428cd56e3
merge mozilla-inbound to mozilla-central a=merge
2016-07-20 11:20:15 +02:00
Thomas Wisniewski
30036214e5
Bug 1082790 - Remove the nsIScriptContext parameter from nsXMLHttpRequest::Init(). r=mrbkap
...
--HG--
extra : rebase_source : 8a2cfcedb9b3522dbb4485b37b3c7c6bc65a2d5b
2016-07-19 21:30:01 -04:00
Ehsan Akhgari
36b7d9bfd1
Bug 1277135 - Add an rval argument to JS::CloneAndExecuteScript(); r=jorendorff
2016-07-19 19:40:51 -04:00
Jeremy Chen
9d8ddf9b2d
Bug 1287308 - part1: replace uses of NS_STYLE_HINT_NONE with nsChangeHint(0). r=dbaron
...
MozReview-Commit-ID: CN66AimiuEu
--HG--
extra : rebase_source : 6caaa30e9afa8645ea31c4918230ba2ec53bc74a
2016-07-17 22:20:21 +08:00
Jimmy Wang
af06755ad8
Bug 1162050 - Remove instances of eLegacyDragGesture and draggesture. r=enn
...
MozReview-Commit-ID: 8kP1AY4peos
--HG--
extra : rebase_source : 0f64e55770c2b9cfd9737f8da53111bad007dca6
2016-05-27 14:32:59 -04:00
Carsten "Tomcat" Book
d2e362e983
Backed out changeset f8fe3acf2e78 (bug 1162050)
2016-07-11 11:18:48 +02:00
Jimmy Wang
209f78f925
Bug 1162050 - Remove instances of eLegacyDragGesture and draggesture. r=enn
...
MozReview-Commit-ID: 8kP1AY4peos
--HG--
extra : transplant_source : XY2kY%87%AE%2A%C8%E8MV%86L%22%0B%21%5C%90%1B
2016-05-27 14:32:59 -04:00
Xidorn Quan
dc193d9f49
Bug 1283526 part 1 - Revert behavior of allowfullscreen attribute for non-sandboxed iframe. r=smaug
...
MozReview-Commit-ID: BayA4tQBsfC
--HG--
extra : rebase_source : 17818546cd0c1ec971412346d6e32d537442dd26
2016-07-04 10:19:35 +10:00
Jeremy Chen
122a1b7056
Bug 906116 - part3.3: Replace NS_STYLE_HINT_FRAMECHANGE with nsChangeHint_ReconstructFrame. r=dbaron
...
Use ReconstructFrame to replace NS_STYLE_HINT_FRAMECHANGE in many places, such
as HTML*Element::GetAttributeChangeHint and HTMLFrameSetElement::SetAttr.
MozReview-Commit-ID: EHbc4RMeuu0
--HG--
extra : rebase_source : afffc0d2ee2861a58dee82f0af06a67f4b8e3a78
2016-07-06 13:06:14 +08:00
Carsten "Tomcat" Book
45017d7986
Backed out changeset 8c1f9996a7d6 (bug 906116)
2016-07-06 05:40:06 +02:00
Jeremy Chen
160b96f9a4
Bug 906116 - part3.3: Replace NS_STYLE_HINT_FRAMECHANGE with nsChangeHint_ReconstructFrame. r=dbaron
...
Use ReconstructFrame to replace NS_STYLE_HINT_FRAMECHANGE in many places, such
as HTML*Element::GetAttributeChangeHint and HTMLFrameSetElement::SetAttr.
MozReview-Commit-ID: EHbc4RMeuu0
--HG--
extra : rebase_source : f5163608c88362595ef5af5fcd36fa64c9c79ce7
2016-07-06 09:59:56 +08:00
Samael Wang
d38fc6b22a
Bug 1282713 - Merge local/remote test cases of bug 1069772 and bug 1271240. r=smaug
...
--HG--
rename : dom/xul/test/file_bug1069772_local.xul => dom/xul/test/file_bug1069772.xul
rename : dom/xul/test/file_bug1271240_local.xul => dom/xul/test/file_bug1271240.xul
rename : dom/xul/test/test_bug1069772_local.xul => dom/xul/test/test_bug1069772.xul
rename : dom/xul/test/test_bug1271240_local.xul => dom/xul/test/test_bug1271240.xul
2016-07-05 14:39:16 +08:00
Andrea Marchesini
37ac18fc67
Bug 1269162 - part 6 - Merge XMLHttpRequestWorker and XMLHttpRequestMainThread, r=smaug
...
--HG--
rename : dom/xhr/nsXMLHttpRequest.cpp => dom/xhr/XMLHttpRequestMainThread.cpp
rename : dom/xhr/nsXMLHttpRequest.h => dom/xhr/XMLHttpRequestMainThread.h
2016-06-27 19:13:41 +02:00
Cameron McCormack
7e0f01ceba
Bug 1280772 - Part 2: Rename eCSSDeclaration to eGeckoCSSDeclaration. r=bholley
2016-06-24 13:35:12 +10:00
Ralph Giles
d8b5bb25d4
Bug 1275744 - Reference MOZ_LOG in dom comments. r=erahm
...
NSPR_LOG_MODULES is deprecated.
MozReview-Commit-ID: GgJTpEHyZqJ
--HG--
extra : rebase_source : dea80975ee6281aff1476f99f1807f3093af82c9
2016-05-26 11:08:47 -07:00
Jonathan Watt
b15368cfcb
Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky
2016-06-07 21:10:18 +01:00
Nathan Froyd
760e7a2a76
Bug 1277222 - don't needlessly copy a string in XULDocument::MaybeBroadcast; r=smaug
...
The listener's SetAttr method takes a |const nsAString&|, so copying the
string in any form before passing it is just needless work.
2016-06-01 16:18:01 -04:00