Closed
Bug 894905
Opened 11 years ago
Closed 11 years ago
Create a new nsDisplayThemedBackground class instead of lumping it together with nsDisplayBackgroundImage
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla25
People
(Reporter: mstange, Assigned: mstange)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
(deleted),
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
I think it makes sense to separate -moz-appearance handling from nsDisplayBackgroundImage because there's an if (mIsThemed) at the beginning of almost every nsDisplayBackgroundImage method.
Attachment #777124 -
Flags: review?(roc)
Assignee | ||
Comment 1•11 years ago
|
||
There's one unfortunate aspect of this change, and that's the need to create another subclass for nsDisplayCanvasThemedBackground. Apparently, the purpose of this class is to clip painting properly. However, it looks like we ignore the clip rect for -moz-appearance anyway, so I'm not sure whether it makes sense to have the class.
Attachment #777126 -
Flags: review?(roc)
Attachment #777124 -
Flags: review?(roc) → review+
Attachment #777126 -
Flags: review?(roc) → review+
Assignee | ||
Comment 2•11 years ago
|
||
Comment 3•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/9cc2abd1f1a0
https://hg.mozilla.org/mozilla-central/rev/fcc730af1e8b
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
You need to log in
before you can comment on or make changes to this bug.
Description
•