mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1207931 - Remove no-longer-needed SetBackgroundColor IPC message. r=mattwoodrow.
This commit is contained in:
parent
4dfabebff0
commit
0d85a49168
@ -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.
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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()
|
||||
{
|
||||
|
@ -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;
|
||||
|
@ -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)
|
||||
|
@ -290,7 +290,6 @@ RenderFrameParent::RenderFrameParent(nsFrameLoader* aFrameLoader,
|
||||
: mLayersId(0)
|
||||
, mFrameLoader(aFrameLoader)
|
||||
, mFrameLoaderDestroyed(false)
|
||||
, mBackgroundColor(gfxRGBA(1, 1, 1))
|
||||
, mAsyncPanZoomEnabled(false)
|
||||
{
|
||||
*aId = 0;
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user