Bug 1311244 Part 0 - Preemptively fix unified build bustage in nsLayoutUtils. draft
authorTing-Yu Lin <tlin@mozilla.com>
Fri, 06 Jan 2017 16:34:33 +0800
changeset 459612 d7ec8149dfcbfc9d611e18f45b2165e78e921f8c
parent 459611 97d6f73643940256c0eb61e384c49bf6f6c49847
child 459613 830376fb7287af2379f9a7f1b760fb1dbfeee484
push id41270
push userbmo:tlin@mozilla.com
push dateThu, 12 Jan 2017 09:51:31 +0000
bugs1311244
milestone53.0a1
Bug 1311244 Part 0 - Preemptively fix unified build bustage in nsLayoutUtils. The is a preemptively fix for unified bustage after Part 2 adds a new file under layout/base/. The error was: In static member function 'static bool nsLayoutUtils::SupportsServoStyleBackend(nsIDocument*)': invalid static_cast from type 'nsIDocument*' to type 'nsDocument*' MozReview-Commit-ID: A8xTSPgh8Ls
layout/base/nsLayoutUtils.cpp
--- a/layout/base/nsLayoutUtils.cpp
+++ b/layout/base/nsLayoutUtils.cpp
@@ -17,16 +17,17 @@
 #include "mozilla/gfx/PathHelpers.h"
 #include "mozilla/layers/PAPZ.h"
 #include "mozilla/Likely.h"
 #include "mozilla/Maybe.h"
 #include "mozilla/MemoryReporting.h"
 #include "mozilla/dom/ContentChild.h"
 #include "mozilla/Unused.h"
 #include "nsCharTraits.h"
+#include "nsDocument.h"
 #include "nsFontMetrics.h"
 #include "nsPresContext.h"
 #include "nsIContent.h"
 #include "nsIDOMHTMLDocument.h"
 #include "nsIDOMHTMLElement.h"
 #include "nsFrameList.h"
 #include "nsGkAtoms.h"
 #include "nsHtml5Atoms.h"