mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 11:57:32 +09:00
Merge remote-tracking branch 'origin/tracking' into custom
This commit is contained in:
commit
6414271c91
47 changed files with 3341 additions and 1968 deletions
|
|
@ -24,7 +24,6 @@
|
|||
#include "nsIWritablePropertyBag2.h"
|
||||
#include "nsSubDocumentFrame.h"
|
||||
|
||||
#include "nsILinkHandler.h"
|
||||
#include "nsIDOMDocument.h"
|
||||
#include "nsISelectionListener.h"
|
||||
#include "mozilla/dom/Selection.h"
|
||||
|
|
@ -910,12 +909,7 @@ nsDocumentViewer::InitInternal(nsIWidget* aParentWidget,
|
|||
nsCOMPtr<nsIInterfaceRequestor> requestor(mContainer);
|
||||
if (requestor) {
|
||||
if (mPresContext) {
|
||||
nsCOMPtr<nsILinkHandler> linkHandler;
|
||||
requestor->GetInterface(NS_GET_IID(nsILinkHandler),
|
||||
getter_AddRefs(linkHandler));
|
||||
|
||||
mPresContext->SetContainer(mContainer);
|
||||
mPresContext->SetLinkHandler(linkHandler);
|
||||
}
|
||||
|
||||
// Set script-context-owner in the document
|
||||
|
|
@ -1421,8 +1415,6 @@ AttachContainerRecurse(nsIDocShell* aShell)
|
|||
viewer->GetPresContext(getter_AddRefs(pc));
|
||||
if (pc) {
|
||||
pc->SetContainer(static_cast<nsDocShell*>(aShell));
|
||||
nsCOMPtr<nsILinkHandler> handler = do_QueryInterface(aShell);
|
||||
pc->SetLinkHandler(handler);
|
||||
}
|
||||
nsCOMPtr<nsIPresShell> presShell;
|
||||
viewer->GetPresShell(getter_AddRefs(presShell));
|
||||
|
|
@ -2146,12 +2138,6 @@ nsDocumentViewer::Show(void)
|
|||
return rv;
|
||||
|
||||
if (mPresContext && base_win) {
|
||||
nsCOMPtr<nsILinkHandler> linkHandler(do_GetInterface(base_win));
|
||||
|
||||
if (linkHandler) {
|
||||
mPresContext->SetLinkHandler(linkHandler);
|
||||
}
|
||||
|
||||
mPresContext->SetContainer(mContainer);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1504,7 +1504,6 @@ nsPresContext::GetDocShell() const
|
|||
nsPresContext::Detach()
|
||||
{
|
||||
SetContainer(nullptr);
|
||||
SetLinkHandler(nullptr);
|
||||
if (mShell) {
|
||||
mShell->CancelInvalidatePresShellIfHidden();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,7 +52,6 @@ class nsITheme;
|
|||
class nsIContent;
|
||||
class nsIFrame;
|
||||
class nsFrameManager;
|
||||
class nsILinkHandler;
|
||||
class nsIAtom;
|
||||
class nsIRunnable;
|
||||
class gfxUserFontEntry;
|
||||
|
|
@ -457,13 +456,9 @@ public:
|
|||
|
||||
nsIDocShell* GetDocShell() const;
|
||||
|
||||
// XXX this are going to be replaced with set/get container
|
||||
void SetLinkHandler(nsILinkHandler* aHandler) { mLinkHandler = aHandler; }
|
||||
nsILinkHandler* GetLinkHandler() { return mLinkHandler; }
|
||||
|
||||
/**
|
||||
* Detach this pres context - i.e. cancel relevant timers,
|
||||
* SetLinkHandler(null), SetContainer(null) etc.
|
||||
* SetContainer(null) etc.
|
||||
* Only to be used by the DocumentViewer.
|
||||
*/
|
||||
virtual void Detach();
|
||||
|
|
@ -1245,10 +1240,6 @@ protected:
|
|||
nsIAtom* MOZ_UNSAFE_REF("always a static atom") mMedium; // initialized by subclass ctors
|
||||
nsCOMPtr<nsIAtom> mMediaEmulated;
|
||||
|
||||
// This pointer is nulled out through SetLinkHandler() in the destructors of
|
||||
// the classes which set it. (using SetLinkHandler() again).
|
||||
nsILinkHandler* MOZ_NON_OWNING_REF mLinkHandler;
|
||||
|
||||
// Formerly mLangGroup; moving from charset-oriented langGroup to
|
||||
// maintaining actual language settings everywhere (see bug 524107).
|
||||
// This may in fact hold a langGroup such as x-western rather than
|
||||
|
|
|
|||
|
|
@ -1309,9 +1309,6 @@ PresShell::Destroy()
|
|||
// to us. To avoid the pres context having a dangling reference, set its
|
||||
// pres shell to nullptr
|
||||
mPresContext->DetachShell();
|
||||
|
||||
// Clear the link handler (weak reference) as well
|
||||
mPresContext->SetLinkHandler(nullptr);
|
||||
}
|
||||
|
||||
mHaveShutDown = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue