Bug 1207931 - Remove no-longer-needed SetBackgroundColor IPC message. r=mattwoodrow.

This commit is contained in:
Nicholas Nethercote 2015-09-24 19:03:33 -07:00
parent 4dfabebff0
commit 0d85a49168
7 changed files with 0 additions and 32 deletions

View File

@ -387,8 +387,6 @@ parent:
uint32_t stride, uint8_t format,
uint32_t hotspotX, uint32_t hotspotY, bool force);
SetBackgroundColor(nscolor color);
/**
* Used to set the current text of the status tooltip.
* Nowadays this is mainly used for link locations on hover.

View File

@ -613,7 +613,6 @@ TabChild::TabChild(nsIContentChild* aManager,
, mLayersId(0)
, mActivePointerId(-1)
, mAppPackageFileDescriptorRecved(false)
, mLastBackgroundColor(NS_RGB(255, 255, 255))
, mDidFakeShow(false)
, mNotified(false)
, mTriedBrowserInit(false)
@ -2744,15 +2743,6 @@ TabChild::InitRenderingState(const TextureFactoryIdentifier& aTextureFactoryIden
return true;
}
void
TabChild::SetBackgroundColor(const nscolor& aColor)
{
if (mLastBackgroundColor != aColor) {
mLastBackgroundColor = aColor;
SendSetBackgroundColor(mLastBackgroundColor);
}
}
void
TabChild::GetDPI(float* aDPI)
{

View File

@ -2000,15 +2000,6 @@ TabParent::RecvSetCustomCursor(const nsCString& aCursorData,
return true;
}
bool
TabParent::RecvSetBackgroundColor(const nscolor& aColor)
{
if (RenderFrameParent* frame = GetRenderFrame()) {
frame->SetBackgroundColor(aColor);
}
return true;
}
nsIXULBrowserWindow*
TabParent::GetXULBrowserWindow()
{

View File

@ -215,7 +215,6 @@ public:
const uint32_t& aHotspotX,
const uint32_t& aHotspotY,
const bool& aForce) override;
virtual bool RecvSetBackgroundColor(const nscolor& aValue) override;
virtual bool RecvSetStatus(const uint32_t& aType, const nsString& aStatus) override;
virtual bool RecvIsParentWindowMainWidgetVisible(bool* aIsVisible) override;
virtual bool RecvShowTooltip(const uint32_t& aX, const uint32_t& aY, const nsString& aTooltip) override;

View File

@ -5299,11 +5299,6 @@ void PresShell::UpdateCanvasBackground()
if (!FrameConstructor()->GetRootElementFrame()) {
mCanvasBackgroundColor = GetDefaultBackgroundColorToDraw();
}
if (XRE_IsContentProcess() && mPresContext->IsRoot()) {
if (TabChild* tabChild = TabChild::GetFrom(this)) {
tabChild->SetBackgroundColor(mCanvasBackgroundColor);
}
}
}
nscolor PresShell::ComputeBackstopColor(nsView* aDisplayRoot)

View File

@ -290,7 +290,6 @@ RenderFrameParent::RenderFrameParent(nsFrameLoader* aFrameLoader,
: mLayersId(0)
, mFrameLoader(aFrameLoader)
, mFrameLoaderDestroyed(false)
, mBackgroundColor(gfxRGBA(1, 1, 1))
, mAsyncPanZoomEnabled(false)
{
*aId = 0;

View File

@ -77,8 +77,6 @@ public:
void OwnerContentChanged(nsIContent* aContent);
void SetBackgroundColor(nscolor aColor) { mBackgroundColor = gfxRGBA(aColor); };
void ZoomToRect(uint32_t aPresShellId, ViewID aViewId, const CSSRect& aRect);
void ContentReceivedInputBlock(const ScrollableLayerGuid& aGuid,
@ -144,8 +142,6 @@ private:
// It's possible for mFrameLoader==null and
// mFrameLoaderDestroyed==false.
bool mFrameLoaderDestroyed;
// this is gfxRGBA because that's what ColorLayer wants.
gfxRGBA mBackgroundColor;
nsRegion mTouchRegion;