author | Emilio Cobos Álvarez <emilio@crisal.io> |
Thu, 26 Apr 2018 16:10:10 +0200 | |
changeset 415917 | 860f468355b9545e50e26fd83e7abb4a3429b8bb |
parent 415916 | 681cf57b9ff3a8e6493ef5e42e4fc6289db469d2 |
child 415918 | 9806b8af0e6fbc1f3ef63da5c55ea68bd5afee2d |
push id | 33911 |
push user | csabou@mozilla.com |
push date | Fri, 27 Apr 2018 10:01:39 +0000 |
treeherder | mozilla-central@822936017145 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | heycam |
bugs | 1457102 |
milestone | 61.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/dom/html/nsHTMLDocument.cpp +++ b/dom/html/nsHTMLDocument.cpp @@ -852,18 +852,17 @@ nsHTMLDocument::SetCompatibilityMode(nsC NS_ASSERTION(IsHTMLDocument() || aMode == eCompatibility_FullStandards, "Bad compat mode for XHTML document!"); if (mCompatMode == aMode) { return; } mCompatMode = aMode; CSSLoader()->SetCompatibilityMode(mCompatMode); - RefPtr<nsPresContext> pc = GetPresContext(); - if (pc) { + if (nsPresContext* pc = GetPresContext()) { pc->CompatibilityModeChanged(); } } nsIContent* nsHTMLDocument::GetUnfocusedKeyEventTarget() { if (nsGenericHTMLElement* body = GetBody()) {