Bug 1397426 - Rename mRenderingLayers to mRenderLayers. r=billm
authorMike Conley <mconley@mozilla.com>
Wed, 22 Nov 2017 10:21:34 -0800
changeset 706814 2cd697170fb3c207f9aa342172633c2089508990
parent 706813 261be8ec05542a9e50c0ca03a59a8a44997269b7
child 706815 4dd20bf8c0f696417aea91cc9f48df25cd6a74ac
push id91936
push userbmo:emilio@crisal.io
push dateMon, 04 Dec 2017 10:24:39 +0000
reviewersbillm
bugs1397426
milestone59.0a1
Bug 1397426 - Rename mRenderingLayers to mRenderLayers. r=billm MozReview-Commit-ID: KTDhXM7PRdc
dom/ipc/TabParent.cpp
dom/ipc/TabParent.h
--- a/dom/ipc/TabParent.cpp
+++ b/dom/ipc/TabParent.cpp
@@ -168,17 +168,17 @@ TabParent::TabParent(nsIContentParent* a
   , mCursor(eCursorInvalid)
   , mTabSetsCursor(false)
   , mHasContentOpener(false)
 #ifdef DEBUG
   , mActiveSupressDisplayportCount(0)
 #endif
   , mLayerTreeEpoch(0)
   , mPreserveLayers(false)
-  , mRenderingLayers(false)
+  , mRenderLayers(false)
   , mHasPresented(false)
   , mHasBeforeUnload(false)
   , mIsMouseEnterIntoWidgetEventSuppressed(false)
 {
   MOZ_ASSERT(aManager);
   // When the input event queue is disabled, we don't need to handle the case
   // that some input events are dispatched before PBrowserConstructor.
   mIsReadyToHandleInputEvents = !ContentParent::IsInputEventQueueSupported();
@@ -2945,27 +2945,27 @@ TabParent::GetIsPrerendered(bool* aIsPre
 {
   *aIsPrerendered = mIsPrerendered;
   return NS_OK;
 }
 
 NS_IMETHODIMP
 TabParent::RenderLayers(bool aEnabled)
 {
-  if (aEnabled == mRenderingLayers) {
+  if (aEnabled == mRenderLayers) {
     return NS_OK;
   }
 
   // Preserve layers means that attempts to stop rendering layers
   // will be ignored.
   if (!aEnabled && mPreserveLayers) {
     return NS_OK;
   }
 
-  mRenderingLayers = aEnabled;
+  mRenderLayers = aEnabled;
 
   // Increment the epoch so that layer tree updates from previous
   // RenderLayers requests are ignored.
   mLayerTreeEpoch++;
 
   Unused << SendRenderLayers(aEnabled, mLayerTreeEpoch);
 
   // Ask the child to repaint using the PHangMonitor channel/thread (which may
--- a/dom/ipc/TabParent.h
+++ b/dom/ipc/TabParent.h
@@ -778,17 +778,17 @@ private:
 
   uint64_t mLayerTreeEpoch;
 
   // If this flag is set, then the tab's layers will be preserved even when
   // the tab's docshell is inactive.
   bool mPreserveLayers;
 
   // Holds the most recent value passed to the RenderLayers function.
-  bool mRenderingLayers;
+  bool mRenderLayers;
 
   // True if this TabParent has had its layer tree sent to the compositor
   // at least once.
   bool mHasPresented;
 
   // True if at least one window hosted in the TabChild has added a
   // beforeunload event listener.
   bool mHasBeforeUnload;