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
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
Stone Shih
0b7ae24e93
Bug 1260704 - Instead of handling mouse up event, we handle mouse click event to trigger links. r=smaug
...
--HG--
extra : rebase_source : c6d0b5d066ad9fae37c6c2d4b1d72d404966009f
2016-05-16 15:45:43 +08:00
Thomas Nguyen
4b7ad0e2c5
Bug 1223838 - Fix wrong policy associated with empty string. r=fkiefer,hsivonen
...
MozReview-Commit-ID: 7kFH39cegmH
2016-05-30 15:17:45 +08:00
Jeremy Chen
685cf4c3d8
Bug 1273766 - part3: purge NS_UpdateHint inline. r=heycam
...
MozReview-Commit-ID: IIOT9jq8hOl
--HG--
extra : rebase_source : dfb3d874ce4419f32f13e662bd495e97ac9cac10
2016-05-23 11:26:03 +08:00
Boris Zbarsky
2b85094faf
Bug 909633. Remove the HTML Microdata API, since no one else ended up implementing it and now it's been removed from the spec. r=bkelly,jgraham
2016-05-20 23:13:17 -04:00
Thomas Nguyen
7a6cb90bcf
Bug 1261298 - W3C referrer policy attribute is not passed to image. r=jdm
...
MozReview-Commit-ID: 3S642wheFu1
--HG--
extra : transplant_source : 8%5B%3Eu%40%D2%26%F4%C4%BF4%A2%EDu%0C%D1.%19%C5%86
2016-05-11 09:38:05 +08:00
Edgar Chen
ba0d0471ef
Bug 1264467 - Force a reload only when crossOrigin's state is really changed. r=jdm
...
MozReview-Commit-ID: F0wvy4TkPiQ
2016-04-14 18:53:44 -04:00
Aryeh Gregor
ccf82a74c7
Bug 881000 - Reflect img.lowsrc as a URL, not string; r=bz
2016-05-05 21:29:54 +03:00
Kyle Huey
941ab1f522
Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj
2016-05-05 01:45:00 -07:00
Edgar Chen
04da4dcd33
Bug 1193349 - Part 2: Force a reload only when a source/img is really removed from a picture; r=jdm
...
MozReview-Commit-ID: 96ui8rQf4uz
--HG--
extra : rebase_source : 11c38886f7f3e61460bf8c6a6ca35ee051dead0a
2016-04-22 22:36:54 +08:00
Edgar Chen
914003c3ec
Bug 1193349 - Part 1: Force a reload only when a source/img is really inserted into a picture; r=jdm
...
MozReview-Commit-ID: 4FfTwg1nRFO
--HG--
extra : rebase_source : e6b71dff9e4bee8cc81622b0895fed5aefffd2e6
2016-05-04 10:21:45 +08:00
Carsten "Tomcat" Book
ba3fe0975c
Backed out changeset 85ce8cb0639a (bug 1268313)
...
--HG--
extra : rebase_source : 56d1cf41a2dc4959b67f834e07192a5c772176a8
2016-04-29 14:21:16 +02:00
Kyle Huey
48a594a09e
Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj
2016-04-28 14:08:25 -07:00
Josh Matthews
4c6d253f1d
Bug 1134194 - Ensure that load events are dispatched for all cases when a responsive source updates. r=johns
...
MozReview-Commit-ID: DZmJCAIuhQb
--HG--
extra : transplant_source : %AF%A1%2C%08FB%D1Q%26%0D%E4%9B%D3%FAf%CDDH%05%AD
extra : histedit_source : a3e049c9842d69a348ab8d33c69c2f14704ef401
2016-01-06 15:40:09 -05: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
Edgar Chen
6e395bbca4
Bug 1264825 - Fix remaining failures in update-the-source-set.html; r=jdm
...
MozReview-Commit-ID: CO6z83SS3Nb
2016-03-18 22:16:00 +08:00
Jonathan Watt
fb7bb15e68
Bug 1263782 - Kill off the deprecated nsINode::IsInDoc(). r=baku
2016-03-31 11:58:25 +01:00
Josh Matthews
d43f85cd2a
Bug 1259482 - Ensure that image loads are never dropped on the floor when queued for later. r=johns
2016-03-30 12:39:59 -04:00
Kyle Huey
91efc5a86c
Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug
2016-01-30 09:05:36 -08:00
Olli Pettay
326d7ae674
Bug 1233259, only in-document images should respond to viewport changes, r=mystor
...
--HG--
extra : rebase_source : 5cc7e305e0cbfe5d99fa1d796c3045a58f7920ba
2015-12-18 03:48:47 +02:00
Andrew McCreight
ba894c4313
Bug 1230110 - HTMLImageElement should call its superclass's DestroyContent(). r=smaug
...
--HG--
extra : commitid : 6PKR4a9fssr
extra : source : b9d8d05aa4ee1cca71192d4d6c00900e8d1169b6
2015-12-03 14:03:12 -08:00
Wes Kocher
286a265f77
Backed out 2 changesets (bug 1230118, bug 1230110) for windows debug assertions in browser_perf-categories-js-calltree.js
...
Backed out changeset a9ce85f77af9 (bug 1230118)
Backed out changeset b9d8d05aa4ee (bug 1230110)
--HG--
extra : commitid : 9wnrd9NnBlp
2015-12-03 15:38:04 -08:00
Andrew McCreight
5e1c30c848
Bug 1230110 - HTMLImageElement should call its superclass's DestroyContent(). r=smaug
...
--HG--
extra : commitid : L6Z2VdVTfXK
extra : rebase_source : fad68a186e8124cab5beffa34e9db960fe5d2d38
2015-12-03 14:03:12 -08:00
Bobby Holley
b83cc03bd2
Bug 773429 - Remove dom.disable_image_src_set. r=khuey
2015-11-23 14:08:34 -08:00
Michael Layzell
a6ede50962
Bug 1166138 - Make img srcset react to resize/viewport changes, r=jdm
2015-11-12 09:39:23 -05: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
Ms2ger
4812f07957
Bug 1193637 - Use IsMap() in HTMLImageElement::PreHandleEvent; r=mrbkap
2015-09-10 13:49:19 +02:00
Nathan Froyd
797182f90f
Bug 968923 - part 5b - add nsIDOMWindowUtils::forceUseCounterFlush; r=bz
...
Use counter submission normally happens at document destruction. For
testing use counters, however, we need to have use counters updated in
telemetry at deterministic points. Therefore, we provide a method on
nsIDOMWindowUtils that forces use counters out to telemetry so we can
examine them.
2015-03-17 15:25:35 -04:00
Robert O'Callahan
d5d49432af
Bug 1184842. Allow BeforeSetAttr to preparse aValue. r=peterv
...
We will pass the preparsed value into AttributeWillChange.
--HG--
extra : commitid : HCiY4DRKWkC
extra : rebase_source : aa17a819a20578322380d388299279e4e41a690b
2015-08-01 17:14:06 +12:00
Boris Zbarsky
68976f61f9
Bug 1184647. Cloning an image should ensure that the clone tries to load the src, if any. r=smaug
2015-07-22 13:21:25 -04:00
John Schoenick
ffa5e40696
Bug 1160819 - ResponsiveImageSelector - improve some over-aggressive assertions
2015-07-05 18:03:00 -07:00
Dragana Damjanovic
7987d2203e
Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell
2015-07-06 07:55:00 +02:00
Carsten "Tomcat" Book
8bc87efb1e
Backed out changeset f5f3827ffcf1 (bug 1166910) for bustage
2015-07-01 08:19:28 +02:00
Franziskus Kiefer
91b0523177
Bug 1166910 - referrer attribute for img tag. r=hsivonen
2015-06-05 15:25:24 -07:00
Karl Tomlinson
1dc7bae7b5
bug 1171785 use nsContentUtils::RunInStableState() r=bholley
...
--HG--
extra : rebase_source : a26fc43686810f65631b37539c5622631e2fc001
2015-06-11 14:36:12 +12:00
Josh Matthews
94641da537
Bug 1163911 - Make responsive images block the document load event while the load task is queued. r=jst
2015-06-06 09:21:56 -04:00
Josh Matthews
d8f37388bd
Bug 1135812 - Make picture element react to viewport changes. r=dbaron,johns
2015-05-11 18:07:49 -04:00
Andrew McCreight
9e8f4b219e
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -04:00
Boris Zbarsky
1540774b0c
Bug 1157898 part 1. Make code of the form "return rv.ErrorCode();" where rv is an ErrorResult use StealNSResult instead. r=peterv
...
This patch was generated with the following command:
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 's/return ([a-zA-Z0-9]+)\.ErrorCode\(\);/return \1.StealNSResult();/'
2015-04-27 09:18:51 -04:00
Tooru Fujisawa
e44e20c93d
Bug 1144322 - Handle tabindex in overridden IsInteractiveHTMLContent methods. r=smaug
2015-03-23 18:02:33 +09:00
Boris Zbarsky
dc24477d79
Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
...
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp. The
rest of this diff was generated by running the following commands:
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
2015-03-19 10:13:33 -04:00
Tooru Fujisawa
de4b4e39c8
Bug 1141455 - Do not treat an element with tabindex as an interactive content in label. r=smaug
2015-03-18 05:42:14 +09:00
Josh Matthews
7836402845
Bug 1141260 - Null-check the responsive selector in images. r=jst
2015-03-10 17:38:30 -04:00
Andrea Marchesini
2c4f63331f
Bug 1134280 - Get rid of Tag() - patch 1 - Is{HTML,XUL,MathML,SVG}Element and IsAnyOf{HTML,XUL,MathML,SVG}Elements, r=smaug
2015-03-03 11:08:59 +00:00
Dhi Aurrahman
3d354b6e25
Bug 835800 - Convert more DOM attribute reflectors to DOMString. r=bzbarsky
2015-02-13 08:27:39 +07:00
Robert Longson
d3bccc4332
Bug 1134131 r=jst
2015-02-19 11:43:42 +00:00
John Schoenick
7cbfeaf2a5
Bug 1067345 - Part 2 - Add HTMLImageElement::SelectSourceForTagWithAttrs to do <picture> source selection without a DOM
2014-12-10 18:53:00 -05:00