Граф коммитов

1372 Коммитов

Автор SHA1 Сообщение Дата
Boris Zbarsky c62e23596a Bug 1434318 part 2. Stop using nsIContentViewer::GetDOMDocument in C++. r=mystor
MozReview-Commit-ID: FoMoVgCngGR
2018-01-31 15:18:09 -05:00
Boris Zbarsky 45afd61f33 Bug 1434318 part 1. Make nsIContentViewer's DOMDocument readonly. r=mystor
No one ever assigns to it in JS anyway.

MozReview-Commit-ID: EAoOXSFnwtl
2018-01-31 15:18:09 -05:00
Boris Zbarsky 95e268e32f Bug 1434399 part 19. Remove nsIXULDocument. r=mystor
MozReview-Commit-ID: 9jQu4sjOhb2
2018-01-31 14:49:29 -05:00
Boris Zbarsky 9fe358b3cc Bug 1434399 part 1. Switch to nsINode for the popup node on windowroot. r=mystor
MozReview-Commit-ID: HyiHElDnmSH
2018-01-31 14:49:26 -05:00
Boris Zbarsky 7c392f077e Bug 1418085 part 6. Remove nsIDOMHTMLElement. r=mystor
MozReview-Commit-ID: 5QUyFeAQYZQ
2018-01-30 00:25:36 -05:00
Boris Zbarsky 8c61d57bca Bug 1276438 part 6. Stop using nsIDOMHTMLDocument::GetBody. r=mystor
MozReview-Commit-ID: EcDTnByuZsm
2018-01-26 00:53:35 -05:00
Boris Zbarsky e565b1fe1b Bug 1432944 part 11. Remove nsIDOMElement::GetAttribute. r=mccr8
MozReview-Commit-ID: 2f1vFvRdCPG
2018-01-29 23:28:00 -05:00
Boris Zbarsky 4d88c28e4d Bug 1432186 part 17. Remove nsIDOMNode's parentNode attribute. r=mccr8
MozReview-Commit-ID: 4xzDwwEqnvE
2018-01-29 23:10:52 -05:00
Brian Grinstead 0cdec62954 Bug 1420229 - Create a new components.css file and load it as a UA stylesheet;r=bz,Gijs
This provides a place for current XBL stylesheets to be loaded without using XBL <resources>,
that load as a UA sheet instead of loading them as document sheets. This makes the styles
apply more similarly to XBL, in that they are less specific than document styles.

MozReview-Commit-ID: 3ewomJZMbrk

--HG--
extra : rebase_source : 8d8d837872947daa8f601e7d32de118655dabdde
2017-11-30 12:39:28 -08:00
Jonathan Watt b7e7d82901 Bug 1430619 part 2 - Move nsIContentViewerContainer::setIsPrinting to nsIDocShell. r=smaug
MozReview-Commit-ID: LJrZbDAilnW
2018-01-11 12:05:37 +00:00
Jonathan Watt 706256a2cc Bug 1430687 - Move the mDestroyBlockedCount early return in nsDocumentViewer::Destroy to the top. r=bobowen
MozReview-Commit-ID: Exe0hIFHK8z
2018-01-09 12:47:20 +00:00
Jonathan Watt d75df097a4 Bug 1430686 - Rename the document viewer "DestroyRefCount" member and methods. r=bobowen
MozReview-Commit-ID: KGUJXOKEQjV
2018-01-08 16:59:31 +00:00
Jonathan Watt a9cf608630 Bug 1430689 - Make ReturnToGalleyPresentation non-virtual. r=bobowen
MozReview-Commit-ID: J3dZuZfDXFd
2018-01-05 12:47:20 +00:00
Bob Owen 0521695fbd Bug 1426087: Decrement nsDocumentViewer::mDestroyRefCount in a separate function. r=jwatt 2018-01-12 10:17:36 +00:00
Jonathan Watt 04cbca1e20 Bug 1425641, part 3 - Remove nsIWebBrowserPrint.GetCurrentChildDOMWindow. r=bobowen
MozReview-Commit-ID: EZHNKvyUT42
2017-12-06 16:02:34 +00:00
Ciure Andrei 7c67b86074 Backed out 4 changesets (bug 1425641) for failing bc tests toolkit/components/printing/tests/browser_page_change_print_original.js r=backout a=backout on a CLOSED TREE
Backed out changeset 05966b36d7d6 (bug 1425641)
Backed out changeset 8a2305426cf2 (bug 1425641)
Backed out changeset c739bef415f1 (bug 1425641)
Backed out changeset 8339ddfe0a54 (bug 1425641)
2017-12-25 05:07:43 +02:00
Jonathan Watt 40e23aa2be Bug 1425641, part 4 - Remove nsIWebBrowserPrint.GetCurrentChildDOMWindow. r=bobowen
MozReview-Commit-ID: 56tyJYySlco

--HG--
extra : rebase_source : 9fdfa57a820db0a8282bf02e649a410b1a772b3b
2017-12-06 16:02:34 +00:00
Jonathan Watt f239219d4f Bug 1425178 - Rename nsPrintEngine to nsPrintJob. r=bobowen
MozReview-Commit-ID: 2HCNmeOLPd3

--HG--
rename : layout/printing/nsPrintEngine.cpp => layout/printing/nsPrintJob.cpp
rename : layout/printing/nsPrintEngine.h => layout/printing/nsPrintJob.h
2017-12-04 11:44:17 -06:00
Matt Woodrow a9f042bcec Bug 1261175. r=bobowen
MozReview-Commit-ID: B9yAN0F01rj
2017-11-14 10:31:36 +13:00
Kevin Jones 25bd05b91c Bug 1415918 - Allow discarding browsers that have beforeunload handlers in tabbrowser.discardBrowser. r=bz
MozReview-Commit-ID: 5KQcrOQTSpK
2017-11-24 15:14:46 +01:00
Nika Layzell 5c65681cb0 Bug 1415645 - Part 5: Fix some more consumers of nsGlobalWindow which I missed, r=smaug
MozReview-Commit-ID: DvMH4cVw5NK
2017-11-15 11:21:57 -05:00
Nika Layzell 3409141758 Bug 1414974 - Part 2: Switch many consumers to nsGlobalWindow{Inner,Outer}, r=smaug
This is a large patch which tries to switch many of the external consumers of
nsGlobalWindow to instead use the new Inner or Outer variants.

MozReview-Commit-ID: 99648Lm46T5
2017-11-09 10:44:47 -05:00
Brad Werth 2a43297875 Bug 1412173 Part 1: Implement the Document ignore-opens-during-unload counter required by spec. r=bz
MozReview-Commit-ID: IWfT5c0H3t

--HG--
extra : rebase_source : 9a61f095a8c31ee3ac0f89b413d0cc62eec24292
2017-11-02 11:47:21 -07:00
Phil Ringnalda 81c6fb1b5b Backed out 2 changesets (bug 1412173) for unexpected passes in wpt's /html/browsers/browsing-the-web/unloading-documents/003.html
Backed out changeset 68de62dd7a9b (bug 1412173)
Backed out changeset 97de1e0cd693 (bug 1412173)

MozReview-Commit-ID: HiASSDNl4DD
2017-11-06 19:32:05 -08:00
Brad Werth 28b0ab34dc Bug 1412173 Part 1: Implement the Document ignore-opens-during-unload counter required by spec. r=bz
MozReview-Commit-ID: IWfT5c0H3t

--HG--
extra : rebase_source : d0c03ea38bf4d33ca7ac8ee7696936bdb3ea7518
2017-11-02 11:47:21 -07:00
Daniel Holbert 680815cd6e Bug 1412346 part 5: (automated patch) Switch a bunch of C++ files in layout to use our standard mode lines. r=jfkthame
This patch was generated automatically by the "modeline.py" script, available
here: https://github.com/amccreight/moz-source-tools/blob/master/modeline.py

For every file that is modified in this patch, the changes are as follows:
 (1) The patch changes the file to use the exact C++ mode lines from the
     Mozilla coding style guide, available here:
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#Mode_Line

 (2) The patch deletes any blank lines between the mode line & the MPL
     boilerplate comment.

 (3) If the file previously had the mode lines and MPL boilerplate in a
     single contiguous C++ comment, then the patch splits them into
     separate C++ comments, to match the boilerplate in the coding style.

MozReview-Commit-ID: EuRsDue63tK

--HG--
extra : rebase_source : 3356d4b80ff6213935192e87cdbc9103fec6084c
2017-10-27 10:33:53 -07:00
angelsl bdd58219ae Bug 1393116 - Move double-reflow for sizing-to-content one level lower r=dbaron
After the fix to bug 1294442 and bug 1324499, ResizeReflow began to be called
twice for each DOM update in webext popups, and we also artificially re-set the
scroll outside of ResizeReflow to counter the DidDoReflow callback in
nsHTMLScrollFrame setting scrolltop to zero due to the first reflow, which is
done with unconstrained height.

Because of the scrollport being reset we get spurious DOM scroll events.
Replacing the scrollport also interrupts smooth scrolling.

Move the double-reflow down one level into PresShell, doing it before
DidDoReflow is called. The scrollport is no longer reset (causing a spurious
scroll event), and we don't need to replace it (interrupting smooth scrolling).

Also partially fixes bug 1396034.

MozReview-Commit-ID: HzYITyH4UeW

--HG--
extra : rebase_source : 567056300bc81c9e4c197783f48636caf67cde34
extra : intermediate-source : ef7322dfd99d79a403bb0804638a46c70ece1b45
extra : source : 4f1761bb955473026b4deba76a5e76e93b7ede35
2017-09-09 00:38:54 +08:00
Kyle Machulis 1cc8b01353 Bug 1406224 - Remove nsIDOMHTMLImageElement; r=bz
MozReview-Commit-ID: GCATWRt6qMo

--HG--
extra : rebase_source : 29854f1374c6ad318da0b5b68be23507667c3be4
2017-10-06 13:27:23 -07:00
L. David Baron df95fa026f Bug 1405875 - Remove now-unused nsIContentViewerFile interface. r=mats
This became unused as a result of the previous two patches, and the
earlier removal of nsRegressionTester::DumpFrameModel.

MozReview-Commit-ID: DoQ8C8XNCWW
2017-10-05 11:15:57 -07:00
L. David Baron 70c24e3e54 Bug 1405875 - Remove debug file mechanism from printing. r=mats
This was used only by nsRegressionTester::DumpFrameModel, which was
removed in the previous patch.

MozReview-Commit-ID: I8fS7vzlFQw
2017-10-05 11:15:57 -07:00
Brad Werth cccd100f25 Bug 1376931 Part 2: Extend ContentViewer to allow reporting of effective full zoom level as determined by the device context. r=bz,heycam
MozReview-Commit-ID: EoVp1DwAl0j

--HG--
extra : rebase_source : 59e5112caa73e675139b5fd93f03afcc13a9745d
2017-09-27 14:06:37 -07:00
Sebastian Hengst b8b7f52566 Backed out changeset 3adba9da5967 (bug 1376931) for bustage at layout/style/nsMediaFeatures.cpp:296: 'class nsPresContext' has no member named 'GetEffectiveFullZoom'; did you mean 'GetDeviceFullZoom'. r=backout on a CLOSED TREE 2017-10-05 00:15:51 +02:00
Brad Werth 1450446d11 Bug 1376931 Part 2: Extend ContentViewer to allow reporting of effective full zoom level as determined by the device context. r=bz,heycam
MozReview-Commit-ID: EoVp1DwAl0j

--HG--
extra : rebase_source : b0bdf52adb0e44b51c4bbeb33668c35f559b8464
2017-09-27 14:06:37 -07:00
Samael Wang 99707fb64b Bug 1364364 - Part 6: Re-connect nsDocViewerFocusListener in nsDocumentViewer::Open. r=smaug
I noticed this error message on fixing dom/workers/test/test_suspend.html:

WARNING: NS_ENSURE_TRUE(mDocViewer) failed:
	file layout/base/nsDocumentViewer.cpp, line 3863

It happens when a nsDocumentViewer::Close() is followed by a
nsDocumentViewer::Open(), the viewer would have been disconnected. Since it
takes only one-line change to fix I just include it in this bug.

MozReview-Commit-ID: LMT2PJkUqi1

--HG--
extra : rebase_source : de236f40fdf55c877fd7fb4fe7daab963a82d6f0
2017-09-05 18:16:10 +08:00
Ryan VanderMeulen 68c8008faf Backed out 7 changesets (bug 1364364) for causing bug 1399182.
Backed out changeset c517d8071dfb (bug 1364364)
Backed out changeset 809036cfd7d9 (bug 1364364)
Backed out changeset c394b06dc30c (bug 1364364)
Backed out changeset c5a737bbfdeb (bug 1364364)
Backed out changeset 21ee8f318a47 (bug 1364364)
Backed out changeset 074475da0f2c (bug 1364364)
Backed out changeset de6c153ec533 (bug 1364364)

--HG--
rename : dom/indexedDB/test/bfcache_page1.html => dom/indexedDB/test/bfcache_iframe1.html
rename : dom/indexedDB/test/bfcache_page2.html => dom/indexedDB/test/bfcache_iframe2.html
rename : dom/media/webspeech/synth/test/file_bfcache_page1.html => dom/media/webspeech/synth/test/file_bfcache_frame.html
rename : dom/media/webspeech/synth/test/file_bfcache_page2.html => dom/media/webspeech/synth/test/file_bfcache_frame2.html
rename : dom/workers/test/WorkerDebugger_frozen_window1.html => dom/workers/test/WorkerDebugger_frozen_iframe1.html
rename : dom/workers/test/WorkerDebugger_frozen_window2.html => dom/workers/test/WorkerDebugger_frozen_iframe2.html
rename : dom/workers/test/suspend_window.html => dom/workers/test/suspend_iframe.html
2017-09-12 13:21:17 -04:00
Samael Wang 890989beae Bug 1364364 - Part 6: Re-connect nsDocViewerFocusListener in nsDocumentViewer::Open. r=smaug
I noticed this error message on fixing dom/workers/test/test_suspend.html:

WARNING: NS_ENSURE_TRUE(mDocViewer) failed:
	file layout/base/nsDocumentViewer.cpp, line 3863

It happens when a nsDocumentViewer::Close() is followed by a
nsDocumentViewer::Open(), the viewer would have been disconnected. Since it
takes only one-line change to fix I just include it in this bug.

MozReview-Commit-ID: LMT2PJkUqi1

--HG--
extra : rebase_source : 3cd2a554cec3210ec97f0da8fea00780b3fa44bc
2017-09-05 18:16:10 +08:00
Sebastian Hengst c78ec3d5c6 Backed out changeset f562d0ea59ef (bug 1364364) 2017-09-07 16:49:16 +02:00
Samael Wang dd00003e0f Bug 1364364 - Part 6: Re-connect nsDocViewerFocusListener in nsDocumentViewer::Open. r=smaug
I noticed this error message on fixing dom/workers/test/test_suspend.html:

WARNING: NS_ENSURE_TRUE(mDocViewer) failed:
	file layout/base/nsDocumentViewer.cpp, line 3863

It happens when a nsDocumentViewer::Close() is followed by a
nsDocumentViewer::Open(), the viewer would have been disconnected. Since it
takes only one-line change to fix I just include it in this bug.

MozReview-Commit-ID: LMT2PJkUqi1

--HG--
extra : rebase_source : eeab056fa1e029a7183ee2b2aa79f4067174bf71
2017-09-05 18:16:10 +08:00
Wes Kocher 2ffe3f0783 Backed out 7 changesets (bug 1364364) for failures in test_multi_sharedWorker_lifetimes.html a=backout
Backed out changeset 6298563c1a81 (bug 1364364)
Backed out changeset 285633e277cb (bug 1364364)
Backed out changeset 6abd3298188a (bug 1364364)
Backed out changeset 6a0ec9eff8c3 (bug 1364364)
Backed out changeset f23aa9861e9b (bug 1364364)
Backed out changeset 5d6bf02b495a (bug 1364364)
Backed out changeset c9420f4e27f7 (bug 1364364)

MozReview-Commit-ID: IAFeH325T14

--HG--
rename : dom/indexedDB/test/bfcache_page1.html => dom/indexedDB/test/bfcache_iframe1.html
rename : dom/indexedDB/test/bfcache_page2.html => dom/indexedDB/test/bfcache_iframe2.html
rename : dom/media/webspeech/synth/test/file_bfcache_page1.html => dom/media/webspeech/synth/test/file_bfcache_frame.html
rename : dom/media/webspeech/synth/test/file_bfcache_page2.html => dom/media/webspeech/synth/test/file_bfcache_frame2.html
rename : dom/workers/test/WorkerDebugger_frozen_window1.html => dom/workers/test/WorkerDebugger_frozen_iframe1.html
rename : dom/workers/test/WorkerDebugger_frozen_window2.html => dom/workers/test/WorkerDebugger_frozen_iframe2.html
rename : dom/workers/test/suspend_window.html => dom/workers/test/suspend_iframe.html
2017-09-06 13:07:13 -07:00
Samael Wang 2ec05bb44f Bug 1364364 - Part 6: Re-connect nsDocViewerFocusListener in nsDocumentViewer::Open. r=smaug
I noticed this error message on fixing dom/workers/test/test_suspend.html:

WARNING: NS_ENSURE_TRUE(mDocViewer) failed:
	file layout/base/nsDocumentViewer.cpp, line 3863

It happens when a nsDocumentViewer::Close() is followed by a
nsDocumentViewer::Open(), the viewer would have been disconnected. Since it
takes only one-line change to fix I just include it in this bug.

MozReview-Commit-ID: LMT2PJkUqi1

--HG--
extra : rebase_source : cff6ccb42610cfdcaaf0ab58aa16751e78bdc9a4
2017-09-05 18:16:10 +08:00
Emilio Cobos Álvarez afe0dfdd27 Bug 1384232: Let ServoStyleset know what its purpose is. r=TYLin
MozReview-Commit-ID: IwC6FcxhYMT

--HG--
extra : rebase_source : 6d15a71b5bd3bbcce4c255b6993ac000daabe09e
2017-08-31 22:50:24 +02:00
Henri Sivonen 30ebfb2e95 Bug 1385836 - Remove special cases obsoleted by "replacement" becoming a label of the replacement encoding. r=emk
MozReview-Commit-ID: 52uO6AVRHWX

--HG--
extra : rebase_source : de5bef4768724c68bc938f9456f906554b6290d1
2017-08-28 12:57:17 +03:00
angelsl 5ee4fec339 Bug 1324499: Save and restore scroll position after reflow in GetContentSizeInternal r=dbaron
The bug is caused by the first call to ResizeReflow in
nsDocumentViewer::GetContentSizeInternal, which reflows the content with
unlimited height. ResizeReflow calls DidDoReflow, which calls a
callback installed by nsHTMLScrollFrame that clamps the scroll port setting
the scroll top to 0 and losing the original scroll top. When the content
is reflowed again to the maximum height, the scroll top stays at 0.

MozReview-Commit-ID: 3VkgWLqSTDP

--HG--
extra : rebase_source : 68c65746e014f0702de82ea576897592b07f81cb
2017-08-21 21:25:20 +08:00
Masatoshi Kimura 5f035965ac Bug 1390209 - Remove unused nsIDOMHTML*Element interfaces. r=qdot
MozReview-Commit-ID: DagD3IHhRZy

--HG--
extra : rebase_source : 2add5ad8e9181ba9bf29f53a6df75b730ab5ea78
2017-08-15 01:31:47 +09:00
Nicholas Nethercote f941156987 Bug 1386600 - Change nsIStringBundle methods to return |AString| instead of |wstring|. r=emk,sr=dbaron.
This removes about 2/3 of the occurrences of nsXPIDLString in the tree. The
places where nsXPIDLStrings are null-checked are replaced with |rv| checks.

The patch also removes a couple of unused declarations from
nsIStringBundle.idl.

Note that nsStringBundle::GetStringFromNameHelper() was merged into
GetStringFromName(), because they both would have had the same signature.

--HG--
extra : rebase_source : ac40bc31c2a4997f2db0bd5069cc008757a2df6d
2017-08-04 14:40:52 +10:00
Timothy Nikkel 8dddd316bb Backed out changeset 497dbf087ad5 (add diagnostic asserts) (bug 1354933) 2017-07-07 14:54:55 -05:00
Timothy Nikkel 417163a1db Back out changeset 43af422173e3 (add diagnostic asserts) (bug 1354933) 2017-06-22 15:40:40 -05:00
Bevis Tseng a7505864a8 Bug 1378930 - Part 2: Remove the aName parameter from SchedulerGroup/DocGroup/DispatcherTrait. r=billm
--HG--
extra : rebase_source : 11319e568a51d16754a6a9990f76c35c86c2bda7
2017-07-26 16:13:35 +08:00
Jared Wein bffda7beda Bug 1383662 - Only dispatch TextZoomChange events if the zoom level has changed. r=Felipe
MozReview-Commit-ID: 8reTfu6R5s3

--HG--
extra : rebase_source : 501d4b2a540e68173f72bf3927326f93e832cfb8
2017-07-24 11:15:03 -04:00
Masayuki Nakano 80bbd2acaf Bug 1376693 - part3: Make callers of nsPrintEngine::Print() and nsPrintEngine::PrintPreview() guarantee that instance of nsPrintEngine won't be deleted during the calls r=dholbert
This patch makes callers of nsPrintEngine::Print() and
nsPrintEngine::PrintPreview() grab the nsPrintEngine instance with local
variable before calling them.  That guarantees that instance of nPrintEngine
won't be deleted during the calls.  (We already had a RefPtr in CommonPrint
that basically did this.  This patch moves it out to the callers to strengthen
its guarantee.)

MozReview-Commit-ID: 2jlYC4RKAg6

--HG--
extra : rebase_source : e6eac8df88e1d81d67a879786a2403ca00e84036
2017-07-19 14:06:04 +09:00
Boris Zbarsky 8fd50f23d4 Bug 1379762 part 2. Use a more reliable test to figure out when we can skip firing onload in nsDocumentViewer::LoadComplete. r=smaug
Unfortunately, GetRestoringDocument can be false by the time we reach
LoadComplete, if part of the restoration process managed to set up and then
remove onload blockers.  If that happens, we still don't want to fire a load
event for a document that has already has one fired.

Note that we could also use a boolean on the document to record whether we've
fired a load event, as long as we were careful to unset it when the readyState
transitions backwards from COMPLETE (e.g. document.open).  It's not clear which
approach is more robust.
2017-07-17 23:21:41 -04:00
Sylvestre Ledru 4e9cf83ee8 Bug 1378712 - Remove all trailing whitespaces r=Ehsan
MozReview-Commit-ID: Kdz2xtTF9EG

--HG--
extra : rebase_source : 7235b3802f25bab29a8c6ba40a181a722f3df0ce
2017-07-06 14:00:35 +02:00
Cameron McCormack aee3fd5f2f Bug 1362924 - Part 2: Add script blockers around remaining PresShell::{Destroy,Initialize} calls to protect against re-entrant nsDocumentViewer calls. r=tnikkel
MozReview-Commit-ID: G0lUGsNLb2b
2017-06-28 09:35:45 -04:00
Carsten "Tomcat" Book a8f27f6978 Backed out changeset d9b2f155996d (bug 1362924) 2017-06-28 15:46:35 +02:00
Cameron McCormack 1a7d5bc791 Bug 1362924 - Part 2: Add script blockers around remaining PresShell::{Destroy,Initialize} calls to protect against re-entrant nsDocumentViewer calls. r=tnikkel
MozReview-Commit-ID: G0lUGsNLb2b
2017-06-28 09:35:45 -04:00
Masatoshi Kimura 68794e5c6e Bug 1376164 - Turn nsDocumentViewer::mHintCharset and mForceCharacterSet into const mozilla::Encoding*. r=hsivonen
MozReview-Commit-ID: HTi2eNwDH99

--HG--
extra : rebase_source : 13c702981c188a395b6026883c3731e816f55240
2017-06-25 22:46:08 +09:00
Cameron McCormack db6c659456 Bug 1373874 - stylo: Clear Servo data from NAC created by position:fixed replicated frames too. r=bz
We don't need the call to ClearServoDataFromSubtree in
nsDocumentViewer::SetPageMode because the pres shell destruction
will call BeginShutdown on the style set, which will do it for us.

MozReview-Commit-ID: ErSAyr3l0wm

--HG--
extra : rebase_source : 509a0dc58a452f27a87d9b564074d687059f2f69
2017-06-18 17:57:55 +08:00
Masatoshi Kimura 838ccc4108 Bug 1369025 - Remove mozilla::dom::EncodingUtils. r=hsivonen
MozReview-Commit-ID: 5O5WtxbmATQ

--HG--
rename : dom/encoding/encodingsgroups.properties => intl/locale/encodingsgroups.properties
extra : rebase_source : 13143b43ee745b618e05ed1b6991d69781c2767d
2017-06-17 11:54:40 +09:00
Alexis Beingessner adb013669b Bug 1088760 - Remove nsRenderingContext, replacing all of its uses with gfxContext. r=jwatt,jrmuizel
MozReview-Commit-ID: K1WUIOnvazF
2017-06-13 11:00:10 -04:00
Sebastian Hengst f3bf820bfd Backed out changeset 3d1ce85e6348 (bug 1088760) for bustage, at least on Android at layout/generic/nsPluginFrame.cpp:1612. r=backout 2017-06-13 00:30:03 +02:00
Alexis Beingessner c75211cb95 Bug 1088760 - Remove nsRenderingContext, replacing all of its uses with gfxContext. r=jwatt,jrmuizel
MozReview-Commit-ID: K1WUIOnvazF
2017-06-12 17:32:48 -04:00
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
Andrew McCreight a0ddf20ce7 Bug 1110928, part 4 - Try to pass a relevant zone to PokeGC. r=smaug
This means the browser will do less full GCs.

MozReview-Commit-ID: BXf4GGhmbMx
2016-08-19 15:26:56 -07:00
Andrew McCreight 52912280c9 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.

MozReview-Commit-ID: 4iCy0bRY2kK
2016-08-19 15:26:56 -07:00
Andrew McCreight 9bed765b2e 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.

MozReview-Commit-ID: L6AyRUV7Y3x
2016-08-19 15:26:56 -07:00
Olli Pettay c8587c2d07 Bug 1274079, ensure that after dispatching beforeprint, we have still valid ContentViewer to print, r=bz
--HG--
extra : rebase_source : c07cf7794d48d4f9b52b2646c18099a33bbea788
2016-08-02 21:41:51 +03:00
Bobby Holley 81084cfef0 Bug 1290214 - Remove NS_ERROR in the case where we skip checking the stylesheet service. r=emilio 2016-07-28 17:25:44 -07: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
Cameron McCormack acd21d26c0 Bug 1285474: Decide style system backend type for documents earlier. r=bholley
MozReview-Commit-ID: 7A4t3957CWe
2016-07-12 00:33:57 -07:00
Jonathan Kew 5848b8fce9 Bug 1154125 - Ensure the context has up-to-date device pixel DPI scaling before using it in calling nsViewManager::SetWindowDimensions. r=mstange
--HG--
extra : rebase_source : c757bbeae9b86e139b32c224c6df01318cc7a33f
2016-06-30 12:27:29 +01:00
Phil Ringnalda 93890f7d54 Back out 068fa73fa918 (bug 1154125) for e10s timeouts in test_bug1166138.html and test_img_mutations.html 2016-06-29 19:15:36 -07:00
Jonathan Kew e8c95f9701 Bug 1154125 - Ensure the context has up-to-date device pixel DPI scaling before using it in calling nsViewManager::SetWindowDimensions. r=mstange 2016-06-29 20:58:02 +01: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
Masayuki Nakano d960ef26d5 Bug 1278014 part.5 Rename SelectionType::SELECTION_NORMAL to SelectionType::eNormal r=smaug
MozReview-Commit-ID: AAdxTTKEvrk

--HG--
extra : rebase_source : 82e10db6b8b17d4f571625e34bb3c8f1905ef58a
2016-06-09 18:35:22 +09:00
Masayuki Nakano 00591135a4 Bug 1278014 part.2 Define mozilla::SelectionType as an enum class and use it instead of RawSelectionType as far as possible r=smaug
This patch defines mozilla::SelectionType as an enum class.  This is safer than nsISelectionController::SELECTION_* since setting illegal value to its variable is checked at build time.  So, as far as possible, this should be used everywhere (but of course, this isn't available in scriptable interfaces).

And also this implements some useful methods for managing SelectionType and RawSelectionType which are implemented in layout/nsSelection.cpp because nsISelectionController is implemented by both PresShell and nsTextEditorState.  Therefore, implementing one of them may make hard to find them.  On the other hand, nsSelection.cpp is a better file name to look for them.

Note that this patch creates mozilla::Selection::RawType() for binding.  Native code should keep using Selection::Type() but the binding code needs to use RawType() due to impossible to convert from SelectionType to RawSelectionType without explicit cast.

MozReview-Commit-ID: 81vX7A0hHQN

--HG--
extra : rebase_source : d9f88e217c713c60d1c2578ce6421c73ccba8650
2016-06-11 11:06:37 +09: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
Mats Palmgren 4e63c1e0cf Bug 881832 - Make inner document reflow asynchronous. r=tnikkel 2016-05-12 12:07:45 +12:00
Phil Ringnalda 6bb0bc4494 Back out 6 changesets (bug 881832) for failures in test_Debugger.Source.prototype.element.html
CLOSED TREE

Backed out changeset fac50ce10b07 (bug 881832)
Backed out changeset 32e01c144cd4 (bug 881832)
Backed out changeset 779f5336b81e (bug 881832)
Backed out changeset 95efd250e29f (bug 881832)
Backed out changeset 7fe79f07189f (bug 881832)
Backed out changeset 8ee1824f2a57 (bug 881832)
2016-05-23 18:34:49 -07:00
Mats Palmgren fdb3066641 Bug 881832 - Make inner document reflow asynchronous. r=tnikkel 2016-05-12 12:07:45 +12:00
Boris Zbarsky ee97bc5aed Bug 1267989 part 3. Make suppressing event handling on a document also block script execution for that document. r=smaug
Note that we do this here instead of when we suspend timeouts, because it makes
it simpler to handle situations in which a window's document changes while
things are suspended/blocked.

The nsDocumentViewer.cpp is not strictly needed, but avoids some extraneous
calls to SuppressEventHandling with a 0 suppression count.
2016-05-20 23:13:18 -04:00
Bob Owen 757e385a15 Bug 1189846 Part 3: Remove CreatePrintSettings nsIPrintOptions and use GetNewPrintSettings instead. r=jimm
MozReview-Commit-ID: Esv5zYxpKVo
2016-05-16 10:40:54 +01:00
Phil Ringnalda c6417cc01e Back out 5 changesets (bug 881832) for failures in browser_html_tooltip-02.js
Backed out changeset 117e8e24d714 (bug 881832)
Backed out changeset 8a0d5df41cfb (bug 881832)
Backed out changeset 6b3c5e185b04 (bug 881832)
Backed out changeset 11106afdcbe7 (bug 881832)
Backed out changeset d711b7c19a43 (bug 881832)
2016-05-11 21:08:08 -07:00
Mats Palmgren e04a74ec14 Bug 881832 - Make inner document reflow asynchronous. r=tnikkel
--HG--
extra : rebase_source : 9987e19e3318d5bc58ac8214496893041bc1775c
2016-05-12 12:07:45 +12:00
Boris Zbarsky 08254285a1 Bug 1190641 part 2. Add the sandboxed modals flag to iframe sandboxing. r=ckerschb
Automated testing for this seems rather difficult; I've done manual testing.
2016-05-06 13:56:36 -04:00
Boris Zbarsky b84ac31e14 Bug 1271521. Add a sane way of temporarily disabling dialogs on a window. r=smaug
What we have right now is not very usable, because you can only enable/disable
on the scriptable top of the window, but it's not at all obvious that this is
the case when using the API.
2016-05-10 20:57:29 -04:00
Makoto Kato 833bf3893a Bug 1261012 - Check whether nsIObserverService is nullptr. r=smaug
During shutdown, mozilla::services::GetObserverServie will return nullptr.  So we should check it.  Add another nullptr check

MozReview-Commit-ID: 9xBbltRatJF

--HG--
extra : rebase_source : a859de09f30eeba344c317aec4cf4ed2cce8da2b
extra : histedit_source : 325aba902eff367d046807e9be3a73ad3100ee67
2016-04-27 19:10:11 +09:00
Kartikaya Gupta 65f5105de7 Bug 1269539 - Ensure that the scroll position is restored properly on reloading a page which loads incrementally. r=tnikkel
MozReview-Commit-ID: 1qVA5yU7a7g

--HG--
extra : rebase_source : 032336d7552ece6dbeafa4eb07eceb7ed2a096ba
2016-05-03 10:40:20 -04:00
Aryeh Gregor f14f1babe8 Bug 1193762 part 8 - Fix things that will break; r=froydnj
It looks like VC++ doesn't like comparisons of nsCOMPtr to 0 after this
change, but those are bad style anyway, so I removed them from
TestCOMPtr.cpp instead of trying to make them work.
2016-05-01 21:29:23 +03: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
Timothy Nikkel e78e313fa5 Bug 1259246. Simplify nsDocumentViewer::FindContainerView. r=dholbert
Turn a series of nested if's into early return if's with no nesting so it is easier to follow.
2016-04-04 02:59:15 -05:00
Timothy Nikkel 4fa1d92384 Bug 1259246. Move nsIPresShell::GetRealPrimaryFrameFor to nsLayoutUtils::GetRealPrimaryFrameFor. r=dholbert
The function doesn't need to be a non-static member of nsIPresShell: it only checks if the document of the passed in element matches the presshell's document, and then the remaining code could be static. It has only one user, nsDocumentViewer::FindContainerView, and it doesn't care about the specific presshell, it just wants the primary frame, so it doesn't need the document check.

This lets us simplify nsDocumentViewer::FindContainerView because it had to jump through hoops to get the presshell.
2016-04-23 15:18:26 -05:00
Ben Kelly 67cfa5a9ee Bug 1265795 P4 Always call nsDocument::SetScriptGlobalObject(nullptr) from nsDocument::Destroy(). r=bz
Currently there are certain paths in nsDocumentViewer that can call
nsDocument::Destroy(), but fail to call SetScriptGlobalObject(nullptr).  This
results in the global never being cleared.

This patch refactors things so nsDocument::Destroy() always clears the global.
This ensures a more consistent document teardown since we don't rely on
external callers to get multiple method calls correct.
2016-04-21 16:10:40 -07:00
Timothy Nikkel d5ab4ae492 Back out changesets 4bbf54c1bcd9 and ffcc3708103a from bug 1259246.
Backed out to see if they caused bug 1262027.
2016-04-21 23:14:37 -05:00
Masayuki Nakano da3898bcb7 Bug 1259656 part.5 Rename WidgetEvent::target to WidgetEvent::mTarget r=smaug
MozReview-Commit-ID: L0GnVR6NcAe

--HG--
extra : rebase_source : a8784d4599dad317f8335477afac9a7d4b92918f
2016-04-19 00:46:00 +09:00
Tobias Schneider 7fa6b225c8 Bug 1260480 - Remove mozNoMarginBoxes. r=dbaron 2016-04-06 09:53:00 +02:00
Timothy Nikkel 8915fda5f6 Bug 1259246. Simplify nsDocumentViewer::FindContainerView. r=dholbert
Turn a series of nested if's into early return if's with no nesting so it is easier to follow.
2016-04-04 02:59:15 -05:00
Timothy Nikkel 59adfe3545 Bug 1259246. Move nsIPresShell::GetRealPrimaryFrameFor to nsLayoutUtils::GetRealPrimaryFrameFor. r=dholbert
The function doesn't need to be a non-static member of nsIPresShell: it only checks if the document of the passed in element matches the presshell's document, and then the remaining code could be static. It has only one user, nsDocumentViewer::FindContainerView, and it doesn't care about the specific presshell, it just wants the primary frame, so it doesn't need the document check.

This lets us simplify nsDocumentViewer::FindContainerView because it had to jump through hoops to get the presshell.
2016-04-04 02:59:15 -05:00
Timothy Nikkel 420a4263c2 Bug 1234622. Tweak how nsDocumentViewer::FindContainerView finds the parent presshell. r=bz
During page transition the presshell we get via the parent docshell is the presshell for the _next_ document.

Whereas, the presshell we get via the containing frame element (iframe etc) is the current document.

If we use the presshell for the next document to get the primary frame for the containerElement it will return null because it doesn't have the right document.
2016-03-25 13:49:29 -05:00
Masayuki Nakano 8c8cbe0e4c Bug 1256589 part.5 Add DefaultPrevented() and DefaultPreventedByContent() to WidgetEvent r=smaug
MozReview-Commit-ID: 5q3QUPTf12Z

--HG--
extra : rebase_source : 83ed946b44910713a61c80bd21202aba9430dd2a
extra : source : 4eb2193814ab1958a65add0c8c307d07c646d61c
2016-03-22 16:47:52 +09:00
Daniel Holbert 541713fc1f Bug 1245978 part 1: Make nsDocumentViewer::CreateStyleSet directly return the thing it creates. r=heycam 2016-02-29 15:09:13 -08:00
Cameron McCormack 49f6905565 Bug 1250790 - Don't try to add CSSStyleSheets from the style sheet service to a ServoStyleSet. r=bholley 2016-02-26 12:51:02 +11:00
Cameron McCormack 3633214b94 Bug 1250379 - Create css::Loaders for specific style backend types. r=dholbert 2016-02-24 18:01:12 +11:00
Cameron McCormack 7e32ad166a Bug 1250377 - Part 3: Create a ServoStyleSet for HTML documents in content docshells. r=bholley 2016-02-24 18:01:12 +11:00
Cameron McCormack 0ecd5593cc Bug 1244074 - Part 4: Use StyleSheetHandle instead of concrete style sheet class in most places. r=dholbert 2016-02-24 18:01:12 +11:00
Cameron McCormack 7c95c39734 Bug 1244068 - Part 4: Use StyleSetHandle instead of concrete style set class in most places. r=dholbert 2016-02-24 18:01:11 +11:00
Aidin Gharibnavaz 6863090c8a Bug 1235830 - Renaming GetInternalNSEvent to WidgetEvent, in nsIDOMEvent r=smaug
MozReview-Commit-ID: Hm8Owq17KXn

--HG--
extra : transplant_source : 2%82%D5%89%19%94%7C%E7%CA1%99%B5%24%1F5%E1%C0%1F%DE%07
2016-02-12 19:10:07 +03:30
Kyle Huey 91efc5a86c Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Ting-Yu Lin 2d02ad0652 Bug 1227927 Part 3 - Use ranged-based for-loop to rewrite some simple loops in part 2. r=mats
--HG--
extra : commitid : CcdpGdlMNIk
extra : rebase_source : 9c184cb8107bf6276c237d03d240f8755fd61553
2016-01-29 22:42:15 +08:00
Ting-Yu Lin 1889f6bc41 Bug 1227927 Part 2 - Remove nsIFrame::GetFirstPrincipalChild(). r=mats
--HG--
extra : commitid : 5qtaK1nS8RC
extra : rebase_source : dcc98f423b2446269beb6fa6a9d092ae8213f38e
2016-01-29 22:42:14 +08:00
Nicholas Nethercote 2282e33e5b Re-backout c216ff19d690 (bug 1059014 part 3) because the removed code is less dead than it first appears.
--HG--
extra : rebase_source : 22c84e309f8b9e26c359108905a2e8a6e5df2bb7
2016-01-20 22:55:37 -08:00
Olli Pettay 2b2b2cc690 Bug 1155730, implement History.scrollRestoration r=jst 2015-12-26 12:59:09 +02:00
Nicholas Nethercote 8a4d84a51a Bug 1059014 (part 3) - Remove support for pausing and resuming painting. r=dbaron.
This reverts much of part 2 of bug 878935, except for the Android browser.js
changes which have already been reverted elsewhere.

The revert caused mass b2g Gij test bustages
2015-11-24 16:09:04 +05:30
Nicholas Nethercote 93390d7300 Backout 3ad33d09825a (bug 1059014 part 3) because the removed code is less dead than it first appears. 2015-11-23 14:13:48 -08:00
Cameron McCormack fd2fba0c73 Bug 990250 - Fold nsIStyleSheet into CSSStyleSheet. r=dbaron 2015-11-17 17:04:09 +11:00
Kyle Huey bdbb2ec50a Bug 1224061: Make Event::InitEvent infallible. r=smaug 2015-11-13 08:09:42 +08:00
Carsten "Tomcat" Book fde361620f merge mozilla-inbound to mozilla-central a=merge 2015-11-12 12:00:55 +01:00
Bill McCloskey 4f99faeaed Bug 967873 - Proxy nsDocumentViewer::PermitUnload to the child process (r=Gijs) 2015-11-11 18:04:21 -08:00
Victor Porof a54b717a42 Bug 1218078 - Show onload and DOMContentLoaded markers in the netmonitor's frontend, r=smaug, jsantell, tromey 2015-11-11 23:11:40 +01:00
sajitk 85550613ed Bug 1219470 - Replace PRLogModuleInfo with LazyLogModule. r=roc 2015-11-05 23:35:03 +01:00
Bill McCloskey dba8372445 Backout bug 967873 - Proxy nsDocumentViewer::PermitUnload to the child process 2015-11-08 12:24:42 -08:00
Bill McCloskey 2f8ca7a3ce Bug 967873 - Proxy nsDocumentViewer::PermitUnload to the child process (r=Gijs) 2015-11-08 10:27:49 -08:00
Nicholas Nethercote 6f4a1e234b Bug 1059014 (part 3) - Remove support for pausing and resuming painting. r=dbaron.
This reverts much of part 2 of bug 878935, except for the Android browser.js
changes which have already been reverted elsewhere.

--HG--
extra : rebase_source : efdcede145567d8a56409cebecdd49a9307ec71a
2015-11-04 20:55:32 -08:00
Nicholas Nethercote f07dc1c47b Bug 1059014 (part 1) - Remove support for max line box width. r=dbaron.
This basically reverts bug 780258.

--HG--
extra : rebase_source : 59cc458d83fed9735e9e0321ec52a0a9484bd7ba
2015-11-04 20:25:01 -08:00
James Willcox 1c5b794be3 No bug, use attached widget listener mode on iOS, NPOTB 2015-10-28 14:10:31 -05:00
Victor Porof 603fd3fe06 Bug 859042 - Show onload and DOMContentLoaded markers in the timeline, r=smaug, jsantell 2015-10-27 13:10:08 +01:00
Kyle Huey c7d3c4e21a Bug 1216401: Eviscerate nsIDOMWindow, move still needed methods to nsPIDOMWindow. r=bz 2015-10-26 14:37:32 -07: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
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
Bill McCloskey c5d5457154 Back out bug 967873 - Proxy nsDocumentViewer::PermitUnload to the child process 2015-10-07 11:15:11 -07:00
Xidorn Quan a52fd07abd Bug 1126230 part 9 - Remove fullscreen override and related test. r=dbaron
--HG--
extra : source : 3abf655d87187abc2d3dcd100a267410c42abbb0
2015-10-07 14:04:32 +11:00
Nigel Babu a47d2e063f Backed out 9 changesets (bug 1126230) for Mulet Gij(25) and M(5) failures
Backed out changeset 8a9d8a556183 (bug 1126230)
Backed out changeset 441b55f015c2 (bug 1126230)
Backed out changeset 7bfa2a2d4e29 (bug 1126230)
Backed out changeset b55511536c65 (bug 1126230)
Backed out changeset ada76e419aac (bug 1126230)
Backed out changeset 745d659bef49 (bug 1126230)
Backed out changeset 7c303cc4c30b (bug 1126230)
Backed out changeset 8bf708acbad4 (bug 1126230)
Backed out changeset 590404aac357 (bug 1126230)
2015-10-02 13:39:20 +05:30
Xidorn Quan fd6366f6e5 Bug 1126230 part 8 - Remove fullscreen override and related test. r=dbaron
--HG--
extra : source : 13c6349bea96873967ba5113b552d31f1dab1bac
2015-10-02 16:34:09 +10:00
Bill McCloskey 207404ad2d Bug 967873 - Proxy nsDocumentViewer::PermitUnload to the child process (r=Gijs) 2015-10-01 21:18:48 -07:00
Gijs Kruitbosch ff07a9d7e5 Bug 636905 - part 2: check for document interactivity state when prompting for beforeunload, r=bz
--HG--
extra : commitid : 3jpKjuOULpC
extra : rebase_source : 8f033b0febca4cda10a46b48169772e20b21c7b6
2015-09-24 12:11:07 +01:00
Michael Layzell 2aa752dd26 Bug 1199288 - Rename mApplyUserSelectStyle to mUserInitiated, r=smaug 2015-09-23 23:28:36 -04:00
Mike Conley 2606bb64e2 Bug 1199434 - Fire an event when the print engine encounters an error. r=smaug
The print engine used to directly cause a prompt to be displayed in the most
recent window in the event of an error. This patch causes the print engine to
fire an event instead so that the front-end can choose to display or ignore
the error.

--HG--
extra : commitid : J2icIUiO8Lv
extra : rebase_source : 0288d18cf29b8c167da2be9b907f234cf4c3f2b7
2015-09-16 16:12:43 -04:00
Masayuki Nakano 983ec22e88 Bug 895274 part.116 Rename NS_COPY to eCopy r=smaug 2015-09-08 23:33:34 +09:00
Masayuki Nakano e1d00d44c8 Bug 895274 part.61 Rename NS_LOAD to eLoad r=smaug 2015-09-02 15:07:59 +09:00
Masayuki Nakano 6421cfec57 Bug 895274 part.60 Rename NS_PAGE_UNLOAD to eUnload r=smaug 2015-09-02 15:07:59 +09:00
Ting-Yu Chou c9627afeba Bug 1194121 - Skip UpdateCommands() from initializing collapse to avoid sync IPC during app startup. r=jst 2015-08-28 15:18:56 +08:00
Birunthan Mohanathas 7315345693 Bug 1191100 - Remove XPIDL signature comments in .cpp files. r=ehsan
Comment-only so DONTBUILD.
2015-08-04 16:17:36 -07:00
Drew Willcoxon 6560d4f70d Bug 1188665 - Make nsIDOMWindowUtils.disableDialogs() disable onbeforeunload dialogs. r=bz 2015-07-31 16:13:01 -07:00
Eric Rahm 06fe3194ec Bug 1183879 - Soften "non-subdocument frame" warning to also allow dummy nsFrames, which exist while subdocument is loading. r=dholbert 2015-07-19 12:27:40 -07:00
Cameron McCormack dd81f3c902 Bug 1169512 - Add and remove quirk.css rather than enable and disable a clone of it. r=jwatt 2015-06-26 13:49:58 +10:00
Eric Rahm ce21e87392 Bug 1175289 - Part 2: Disable "Subdocument container has no frame" warning by default. r=mats 2015-06-16 16:37:16 -07:00
Cameron McCormack 4c1cfc10bd Bug 1169514 - Part 2: Move noframes rules from the preferences style sheet to a cached UA style sheet. r=jwatt 2015-06-16 11:34:47 +10:00
Cameron McCormack 5492e00444 Bug 1169514 - Part 1: Move noscript rule from the preference style sheet to a cached UA style sheet. r=jwatt 2015-06-16 11:34:47 +10:00
Eric Rahm 75c4bebb79 Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-03 15:25:57 -07:00
Eric Rahm 0fe3472d8b Bug 1170642 - Silence nsDocumentViewer::GetInImage warnings. r=ehsan 2015-06-03 08:22:04 -07:00
Carsten "Tomcat" Book 5471309381 Backed out 14 changesets (bug 1165515) for linux x64 e10s m2 test failures
Backed out changeset d68dcf2ef372 (bug 1165515)
Backed out changeset 7c3b45a47811 (bug 1165515)
Backed out changeset b668b617bef2 (bug 1165515)
Backed out changeset d0916e1283a2 (bug 1165515)
Backed out changeset ac4dc7489942 (bug 1165515)
Backed out changeset e9632ce8bc65 (bug 1165515)
Backed out changeset c16d215cc7e4 (bug 1165515)
Backed out changeset e4d474f3c51a (bug 1165515)
Backed out changeset d87680bf9f7c (bug 1165515)
Backed out changeset b3c0a45ba99e (bug 1165515)
Backed out changeset 9370fa197674 (bug 1165515)
Backed out changeset 50970d668ca1 (bug 1165515)
Backed out changeset ffa4eb6d24b9 (bug 1165515)
Backed out changeset 5fcf1203cc1d (bug 1165515)

--HG--
extra : rebase_source : 6fb850d063cbabe738f97f0380302153e3eae97a
2015-06-02 13:05:56 +02:00
Eric Rahm a9afd68cef Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-01 22:17:33 -07:00