Closed
Bug 1207931
Opened 9 years ago
Closed 9 years ago
RenderFrameParent::mBackgroundColor is unused
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla44
Tracking | Status | |
---|---|---|
firefox44 | --- | fixed |
People
(Reporter: n.nethercote, Assigned: n.nethercote)
References
Details
Attachments
(1 file, 1 obsolete file)
7.51 KB,
patch
|
mattwoodrow
:
review+
|
Details | Diff | Splinter Review |
RenderFrameParent::mBackgroundColor can be set via SetBackgroundColor(), but the value is never read. So that means TabParent::RecvSetBackgroundColor() is a no-op. billm, is this expected? It seems weird to me. Though maybe this message doesn't matter and can be excised on both the child and the parent sides.
Assignee | ||
Comment 1•9 years ago
|
||
Patch demonstrating the situation.
Attachment #8665264 -
Flags: feedback?(wmccloskey)
Comment 2•9 years ago
|
||
That's really more of a layout question than an IPC one.
Component: IPC → Layout
Comment 3•9 years ago
|
||
It looks like the use of the variable was added in bug 694706 and removed in bug 1056427. Just a bit of dead code that was missed. So I think it is okay to remove the message.
Updated•9 years ago
|
Attachment #8665264 -
Flags: feedback?(wmccloskey)
Comment 4•9 years ago
|
||
Yeah, I think we can get rid of this entirely.
Assignee | ||
Comment 5•9 years ago
|
||
This seems to work.
Attachment #8665743 -
Flags: review?(matt.woodrow)
Assignee | ||
Updated•9 years ago
|
Attachment #8665264 -
Attachment is obsolete: true
Comment 6•9 years ago
|
||
Comment on attachment 8665743 [details] [diff] [review] Remove no-longer-needed SetBackgroundColor IPC message Review of attachment 8665743 [details] [diff] [review]: ----------------------------------------------------------------- ::: layout/base/nsPresShell.cpp @@ -5292,5 @@ > // color we actually draw. > if (!FrameConstructor()->GetRootElementFrame()) { > mCanvasBackgroundColor = GetDefaultBackgroundColorToDraw(); > } > - if (XRE_IsContentProcess() && mPresContext->IsRoot()) { Nice. This is the code that was fixed in bug 1199534 because it was spamming messages constantly. Turns out it wasn't needed at all!
Updated•9 years ago
|
Attachment #8665743 -
Flags: review?(matt.woodrow) → review+
Comment 8•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/22e54267e6c9
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox44:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
You need to log in
before you can comment on or make changes to this bug.
Description
•