Timothy Nikkel
6c8d12a5d2
Bug 1354933. Add some asserts for document viewer teardown. r=mats
2017-06-03 01:31:12 -05:00
Masayuki Nakano
4a6eeab901
Bug 1354443 part.3 While nsDocumentViewer is destroying mPrintEngine, null out its pointer & transfer ownership to local var r=dholbert
...
MozReview-Commit-ID: ALRlOC07SY2
2017-04-28 16:25:01 +09:00
Olli Pettay
33a3692644
Bug 1363396
, ensure ContentViewer listeners are handled only when needed, r=mccr8
...
--HG--
extra : rebase_source : 49f1a2bc1a3ca1aecbf3639c580c19ae215cdcc8
2017-05-11 02:20:27 +03:00
Bevis Tseng
4fc7851527
Bug 1356558 - Do not run ScriptRunner in the intermediate state before destroying PreShell, PresContext, etc at nsDocumentViewer::Hide() is done. r=bz
...
Do not run ScriptRunners queued by DestroyPresShell() in the intermediate state
before we're done destroying PresShell, PresContext, ViewManager, etc.
MozReview-Commit-ID: LNP7Lp7zekS
2017-04-24 19:13:18 +08:00
Aryeh Gregor
db1d64129d
Bug 1358893 - Stop using document.createEvent("beforeunloadevent") internally; r=smaug
...
We want to see if we can drop support due to web pages not using it.
Edge and Safari already don't support it, and Chrome reports that usage
is low enough that they're willing to drop it. But telemetry doesn't
tell us about web usage if we're triggering it via our own internal
code.
MozReview-Commit-ID: 5YBfhQJExHC
--HG--
extra : rebase_source : fd359e3264ba96ef10617f4de767080c94b792fb
2017-04-23 18:18:56 +03:00
Emilio Cobos Álvarez
23bce99ae1
Bug 1361051: rename mozilla::FrameType to mozilla::LayoutFrameType. r=xidorn
...
This avoids conflicts with mozilla::dom::FrameType.
MozReview-Commit-ID: 7aEMbHRaTFk
--HG--
extra : rebase_source : 2d01321f5ce0ec8c0e3f70984674f82678034b3c
2017-05-01 19:32:52 +02:00
Emilio Cobos Álvarez
e44543aad4
Bug 1360241: Devirtualize nsIFrame::GetType. r=heycam
...
MozReview-Commit-ID: 5Nzhyta5Hle
--HG--
extra : rebase_source : c2e9d4bfb9239f5e851d110cd7dff98c1e1a8d8b
2017-04-30 17:30:08 +02:00
Timothy Nikkel
0b57ca9241
Bug 1354933. Add annotation if the view is for a printing document if the view has a frame in its destructor. r=mats
2017-04-27 17:50:00 -05:00
Nicolas B. Pierron
c6509f9e01
Bug 900784 part 1.5 - Encode JS bytecode when no more scripts are executed. r=mrbkap
2017-04-21 16:57:58 +00:00
Botond Ballo
253843616c
Bug 1312697 - Do not consider the page to be finished loading if it's in the 'stopped' state. r=tnikkel
...
MozReview-Commit-ID: 2rnvkwsmQCQ
--HG--
extra : rebase_source : 0ce14917b7787dfaec09bd59d68c5f5074d8bc5a
2017-02-14 16:58:34 -05:00
Jan Henning
c49f232ab2
Bug 1328868 - Part 3 - Make the effective text zoom retrievable from JS. r=tnikkel
...
We want to read this value during testing.
MozReview-Commit-ID: FVA7VdvSTEt
--HG--
extra : rebase_source : 7ae56480ad34a4b3b417b3593496619a55910ec6
2017-02-25 19:27:15 +01:00
KuoE0
cf57b36951
Bug 1342863
- (Part 4) DocGroup labeling for runnables dispatched by NS_DispatchTo(Main|Current)Thread in nsDocumentViewer. r=dholbert
...
MozReview-Commit-ID: 9f32OTpim7V
--HG--
extra : rebase_source : 58312504c810d3efafa87e36a70fb176f4dedc69
2017-03-15 12:08:32 +08:00
Carsten "Tomcat" Book
108eb09e46
Backed out changeset 1b57aaf3cb59 (bug 1342863
)
2017-03-23 08:41:31 +01:00
KuoE0
d9f6f7dfd3
Bug 1342863
- (Part 4) DocGroup labeling for runnables dispatched by NS_DispatchTo(Main|Current)Thread in nsDocumentViewer. r=dholbert
...
MozReview-Commit-ID: 9f32OTpim7V
--HG--
extra : rebase_source : 58312504c810d3efafa87e36a70fb176f4dedc69
2017-03-15 12:08:32 +08:00
Ting-Yu Lin
f087300185
Bug 1338446 Part 3 - Label SheetLoadData in Loader::PostLoadEvent. r=heycam
...
When constructing a Loader without passing a document, we added a DocGroup
parameter so that we could still use it to dispatch events to the DocGroup.
Delete NS_ENSURE_TRUE because new() is infallable.
Use another runnable pointer for calling dispatching because forget() will
nuke the pointer and we need to use evt afterwards.
MozReview-Commit-ID: Ce2K6j4pUhA
--HG--
extra : rebase_source : 2bacf1f856e0700f36b2fefe4d2424719cad77a7
2017-03-13 17:00:57 +08:00
Kan-Ru Chen
43776b9a4d
Bug 1346161 - Remove HANDLE_UNLOAD_MS and HANDLE_BEFOREUNLOAD_MS telemetry probes. r=smaug
...
MozReview-Commit-ID: 91WAGDKAAMu
2017-03-13 14:47:29 +08:00
Jessica Jong
cf17189117
Bug 1340086 - Remove uses of AnimationsPaused() since it is always false after bug 1316330. r=mrbkap
2017-02-22 01:00:00 -05:00
Cameron McCormack
6a09f48246
Bug 1337258 - Support ServoStyleSheets in nsStyleSheetService. r=xidorn
...
MozReview-Commit-ID: 4vaHzDBZHFg
--HG--
extra : rebase_source : cb6e075e88c66a89bf6711db4ba913d62fd421ad
2017-02-21 10:42:27 +08:00
Bill McCloskey
194043ae97
Bug 1339289 - Give names to a lot of common runnables (r=ehsan)
...
MozReview-Commit-ID: 5IdvK6kgoAW
2017-02-15 12:30:01 -08:00
Olli Pettay
619b9713a4
Bug 1110928, trigger ZoneGC after evicting from bfcache, r=mccr8
...
--HG--
extra : rebase_source : 73a0e07f904b23d8dea77d6a77c1d8be9c3de355
2017-01-23 19:25:13 +02:00
continuation@gmail.com
3c54dab20c
Bug 1110928, part 4 - Try to pass a relevant zone to PokeGC. r=smaug
...
--HG--
extra : rebase_source : 839ac8ef6e0de1a69240f2986c07e1793e750b21
2017-01-23 19:22:26 +02:00
Andrew McCreight
a407d25b5e
Bug 1110928, part 2 - Call PokeGC in nsDocumentViewer::PageHide before the call to OnPageHide. r=smaug
...
This ensures that the document isn't destroyed when we call PokeGC, which will be useful later.
--HG--
extra : rebase_source : 2b2581359f9ddd765596e6f334e0c53e6c6b226d
2017-01-23 19:21:13 +02:00
Andrew McCreight
c77b68df2f
Bug 1110928, part 1 - Hoist the LOAD_END PokeGC out of nsJSContext::LoadEnd. r=smaug
...
nsDocumentViewer knows which document is involved which will help us later.
Also, fix a typo in the comment.
--HG--
extra : rebase_source : 2d78ae196882d056bdf03e014ff928d7769ba81a
2017-01-23 19:20:54 +02:00
Julian Seward
ebea2b59c1
Bug 1232696 - Remove NS_DECL_AND_IMPL_ZEROING_OPERATOR_NEW as it causes segfaulting for GCC 6 builds (3 of 5, fixes for layout/). r=dholbert.
2017-01-24 17:11:13 +01:00
Wes Kocher
ae32e28e86
Backed out 6 changesets (bug 1110928) for valgrind failures a=backout
...
Backed out changeset 97a60b61a65a (bug 1110928)
Backed out changeset 5b62dda2ebd0 (bug 1110928)
Backed out changeset b587547a6df1 (bug 1110928)
Backed out changeset fb7cb3957c0d (bug 1110928)
Backed out changeset 41d7f44db1ee (bug 1110928)
Backed out changeset e809ddd9c7db (bug 1110928)
MozReview-Commit-ID: L0DCJ0HD1sG
2017-01-23 17:34:23 -08:00
Olli Pettay
c4d0a8d0ad
Bug 1110928, trigger ZoneGC after evicting from bfcache, r=mccr8
...
--HG--
extra : rebase_source : 223271dd8b9c4052bf95969dca096531d7502eb4
2017-01-23 19:25:13 +02:00
continuation@gmail.com
7cdcc6ffc7
Bug 1110928, part 4 - Try to pass a relevant zone to PokeGC. r=smaug
...
--HG--
extra : rebase_source : d629ec0ac5ba2445e05b18b57c50d782ecaed227
2017-01-23 19:22:26 +02:00
Andrew McCreight
95cd9eba51
Bug 1110928, part 2 - Call PokeGC in nsDocumentViewer::PageHide before the call to OnPageHide. r=smaug
...
This ensures that the document isn't destroyed when we call PokeGC, which will be useful later.
--HG--
extra : rebase_source : 897912892a6aca2d272297723fee32cd65dd6fde
2017-01-23 19:21:13 +02:00
Andrew McCreight
f790c94f1a
Bug 1110928, part 1 - Hoist the LOAD_END PokeGC out of nsJSContext::LoadEnd. r=smaug
...
nsDocumentViewer knows which document is involved which will help us later.
Also, fix a typo in the comment.
--HG--
extra : rebase_source : a1d5b81aab5b4efa914082fdbe4a5b3b71ee456d
2017-01-23 19:20:54 +02:00
Dalmir da Silva
64087ffd83
Bug 1308461 - Prevent dispatch of nested or multiple pairs of beforeprint/afterprint events. r=jwatt,dholbert
2017-01-07 00:13:56 +00:00
Cameron McCormack
babad063ff
Bug 1328832
- Part 2: Rename mozFlushType to mozilla::FlushType and make it an enum class. r=bzbarsky
...
MozReview-Commit-ID: D3fIngSHSsl
2017-01-05 15:31:56 +08:00
Bobby Holley
f8c9d884fc
Bug 1317016
- Basic infrastructure for RestyleHint-driven traversal. r=emilio
...
MozReview-Commit-ID: 7wH5XcILVmX
2016-11-25 10:06:39 -08:00
Wes Kocher
0d3acb69a9
Backed out changeset 41f004509646 (bug 1315394) for android crashtest assertions a=backout
2016-11-11 11:17:53 -08:00
Bobby Holley
05c3b6e81a
Bug 1315394 - stylo: stop unconditionally marking the root node as dirty in PresShell::Init. r=heycam
...
MozReview-Commit-ID: 66gJWIZl0wo
2016-11-11 09:13:06 -08:00
Jonathan Watt
9aad32cd64
Bug 1313386, part 2 - Make AutoPrintEventDispatcher::DispatchEventToWindowTree non-static. r=dholbert
2016-11-01 21:29:30 +00:00
Jonathan Watt
fdc97b0759
Bug 1313386, part 1 - Clean up the beforeprint/afterprint event dispatching code. r=dholbert
2016-11-01 21:29:30 +00:00
Kan-Ru Chen
7c1c963ca5
Bug 1301346 - Add telemetry to collect how much time was spent in handling beforeunload and unload event. r=bsmedberg,smaug
...
MozReview-Commit-ID: 3jCsBcDncGC
--HG--
extra : rebase_source : b382dbf89483b9aee6c1a205bfc7b20cca18af85
2016-09-09 12:06:36 +08:00
Kris Maglione
a6c6580702
Bug 1294442: Part 1 - Allow calculating content size with constraints. r=smaug
...
MozReview-Commit-ID: 4AyootQ5icK
--HG--
extra : rebase_source : 8d2421263e7636c99cecd1f7cf9dda2da20be6f3
2016-10-19 13:10:18 -07:00
Andrea Marchesini
9215b7b957
Bug 1307122 - Introducing a timeout for sync XHR when unload events are dispatched, r=smaug
2016-10-16 08:46:10 +02:00
Olli Pettay
bddafc48dd
Bug 1305309, backout Bug 1214805, r=backout
...
--HG--
extra : rebase_source : d86f67ef53b26027d739725829a2ee736d71221e
2016-09-27 01:03:24 +03: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
Michael Layzell
118a8b7507
Bug 1018486 - Part 4: Changes in layout/, r=bz
...
MozReview-Commit-ID: BsaKGHsoqOq
2016-09-07 10:50:40 -04:00
Olli Pettay
961aa9b24b
Bug 1214805, allow navigating when afterprint event is dispatched, r=bz
...
--HG--
extra : rebase_source : 67bb9b79332b009756781ae3e58aed91a5bdfbfa
2016-09-03 17:33:30 +03: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
Matteo Ferretti
c0ce371e10
Bug 1241867 - override the DPR without affecting the rendering; r=dbaron
...
- added overrideDPPX to nsIContentViewer
- made CSSStyleSheet and GlobalWindow using the overrideDPPX value
- added unit test with frame check
MozReview-Commit-ID: AOWpGs4vb9H
--HG--
extra : rebase_source : 45d9ae2c9b7aad835b5602e805ec7260c69c05b8
2016-08-25 13:15:19 +02:00
Henri Sivonen
a3b8292670
Bug 1191841 - Perform label resolution in scriptable charset setters of nsIContentViewer. r=emk.
...
MozReview-Commit-ID: facCC1K7Dk
2016-08-22 20:18:24 +03:00
Sebastian Hengst
2f30199523
Backed out changeset 721fabf360ff (bug 1110928) for frequent failures to load onload scripts in reftests on Winodws XP and Windows 7 VM. r=backout
2016-08-21 12:29:01 +02:00
Sebastian Hengst
9d30a54ba3
Backed out changeset c5bc2d6ed0d7 (bug 1110928)
2016-08-21 12:27:56 +02:00
Sebastian Hengst
7422ce2634
Backed out changeset 31b56ae647c8 (bug 1110928)
2016-08-21 12:27:47 +02:00