Bug 1397426 - Rename mRenderingLayers to mRenderLayers. r=billm draft
authorMike Conley <mconley@mozilla.com>
Wed, 22 Nov 2017 10:21:34 -0800
changeset 715456 3909bfac189a980784fff998c6a71b1b38e7c9aa
parent 715455 6c53729ae4b07c67d9e3de99c12e1165a85ffaac
child 715457 873b6b91973b248c5b11ae8a136811a163f94e81
push id94165
push usermconley@mozilla.com
push dateWed, 03 Jan 2018 23:25:52 +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;