зеркало из https://github.com/mozilla/gecko-dev.git
a59f4ed1fb
Make it always forward to the document's docshell. We rely on it being setup by the time our stuff runs, and we cannot have multiple pres contexts per document in different docshells anymore. This allows me to also move some state to the document (about whether it's currently loaded in a chrome docshell (nsPresContext::mIsChrome) and whether it's a chrome origin image (nsPresContext::mIsChromeOriginImage), which will help for bug 1490401 / bug 1418159. The pres context already relies on having the docshell available on `Init` and we don't properly handle dynamic changes to it. The reason I store some state like whether the doc URI is chrome:// and whether we're in a chrome docshell is not (only) to avoid recomputing it over and over, but also to allow me to read them from Stylo (main-thread blocked, but poke at that from multiple non-main-threads). Differential Revision: https://phabricator.services.mozilla.com/D20301 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
crashtests | ||
ipc | ||
DrawEventRecorder.cpp | ||
DrawEventRecorder.h | ||
PrintTranslator.cpp | ||
PrintTranslator.h | ||
moz.build | ||
nsIPrintProgress.idl | ||
nsIPrintProgressParams.idl | ||
nsPagePrintTimer.cpp | ||
nsPagePrintTimer.h | ||
nsPrintData.cpp | ||
nsPrintData.h | ||
nsPrintJob.cpp | ||
nsPrintJob.h | ||
nsPrintObject.cpp | ||
nsPrintObject.h | ||
nsPrintPreviewListener.cpp | ||
nsPrintPreviewListener.h |