Bug 1521564 - Add GetDocument to nsContentSink, r=mccr8
authorOlli Pettay <Olli.Pettay@helsinki.fi>
Mon, 21 Jan 2019 19:09:33 +0200
changeset 514768 305c7ed630542b9610b80608311313ad6e96172f
parent 514723 018c76dba8faaab24fb30c31766638ba52b275c6
child 514769 1e76cea31571ed9274acd577b515e2c928cd207b
push id1953
push userffxbld-merge
push dateMon, 11 Mar 2019 12:10:20 +0000
treeherdermozilla-release@9c35dcbaa899 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmccr8
bugs1521564
milestone66.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
Bug 1521564 - Add GetDocument to nsContentSink, r=mccr8
dom/base/nsContentSink.h
--- a/dom/base/nsContentSink.h
+++ b/dom/base/nsContentSink.h
@@ -241,16 +241,18 @@ class nsContentSink : public nsICSSLoade
   // Start layout.  If aIgnorePendingSheets is true, this will happen even if
   // we still have stylesheet loads pending.  Otherwise, we'll wait until the
   // stylesheets are all done loading.
  public:
   void StartLayout(bool aIgnorePendingSheets);
 
   static void NotifyDocElementCreated(Document* aDoc);
 
+  Document* GetDocument() { return mDocument; }
+
  protected:
   void FavorPerformanceHint(bool perfOverStarvation, uint32_t starvationDelay);
 
   inline int32_t GetNotificationInterval() {
     if (mDynamicLowerValue) {
       return 1000;
     }