Closed
Bug 1025725
Opened 10 years ago
Closed 10 years ago
refactor some of nsXBLPrototypeResources to make it easier to deal with for style sheet changes
Categories
(Core :: XBL, defect)
Core
XBL
Tracking
()
RESOLVED
FIXED
mozilla33
People
(Reporter: heycam, Assigned: heycam)
References
Details
Attachments
(3 files)
(deleted),
patch
|
bzbarsky
:
review+
Sylvestre
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
Instead of allowing random objects to poke into public member variables on nsXBLPrototypeResources, let's encapsulate them to make code that manipulates them more sane.
Assignee | ||
Comment 1•10 years ago
|
||
We never create any other kind of nsIStyleRuleProcessor than a nsCSSRuleProcessor.
Assignee | ||
Comment 2•10 years ago
|
||
Attachment #8440480 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 3•10 years ago
|
||
I'm giving this an nsStyleSet-like API, for familiarity.
Attachment #8440481 -
Flags: review?(bzbarsky)
Comment 4•10 years ago
|
||
Comment on attachment 8440479 [details] [diff] [review]
Part 1: Give nsXBLPrototypeResources::mRuleProcessor a more concrete type.
r=me
Attachment #8440479 -
Flags: review?(bzbarsky) → review+
Comment 5•10 years ago
|
||
Comment on attachment 8440480 [details] [diff] [review]
Part 2: Encapsulate nsXBLPrototypeResources::mRuleProcessor.
r=me
Attachment #8440480 -
Flags: review?(bzbarsky) → review+
Comment 6•10 years ago
|
||
Comment on attachment 8440481 [details] [diff] [review]
Part 3: Encapsulate nsXBLPrototypeResources::mStyleSheetList.
>+ binding->PrototypeBinding()->AppendStyleSheetsTo(*array);
Why AppendStyleSheetsTo, not just AppendStyleSheets?
>+nsXBLPrototypeBinding::RequireResources()
Normally we'd call this EnsureResources.
r=me with at least the EnsureResources change made.
Attachment #8440481 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 7•10 years ago
|
||
(In reply to Boris Zbarsky [:bz] from comment #6)
> Comment on attachment 8440481 [details] [diff] [review]
> Part 3: Encapsulate nsXBLPrototypeResources::mStyleSheetList.
>
> >+ binding->PrototypeBinding()->AppendStyleSheetsTo(*array);
>
> Why AppendStyleSheetsTo, not just AppendStyleSheets?
I thought AppendStyleSheets would sound like you were passing in the array of sheets that you wanted to append to nsXBLPrototypeResources::mStyleSheetList.
Comment 8•10 years ago
|
||
Oh, I see. I totally got what the function did backwards somehow.
Assignee | ||
Comment 9•10 years ago
|
||
Assignee | ||
Comment 10•10 years ago
|
||
Missing include:
https://hg.mozilla.org/integration/mozilla-inbound/rev/d4edb2cf572f
Assignee | ||
Comment 11•10 years ago
|
||
Comment 12•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/d37890e3b9db
https://hg.mozilla.org/mozilla-central/rev/6038055f6b19
https://hg.mozilla.org/mozilla-central/rev/d4e7841a2cac
https://hg.mozilla.org/mozilla-central/rev/d4edb2cf572f
https://hg.mozilla.org/mozilla-central/rev/bff872c9d4b2
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
Comment 13•10 years ago
|
||
Hey Cameron, this work blocks bug 1025738 which we'd like to backport to Aurora. Is this bug reasonably safe to land there as well? If so, can you please nominate it for approval? Thanks!
Assignee | ||
Comment 14•10 years ago
|
||
Comment on attachment 8440479 [details] [diff] [review]
Part 1: Give nsXBLPrototypeResources::mRuleProcessor a more concrete type.
Approval Request Comment
[Feature/regressing bug #]: -
[User impact if declined]: Would prevent bug 1025738 from landing, which solves some memory leak problems.
[Describe test coverage new/current, TBPL]: Been on m-c for a couple of weeks.
[Risks and why]: Low, this is a small, no-behaviour-change refactoring.
[String/UUID change made/needed]: -
(request applies to all 3 parts in this bug)
Attachment #8440479 -
Flags: approval-mozilla-aurora?
Updated•10 years ago
|
status-firefox32:
--- → affected
status-firefox33:
--- → fixed
Updated•10 years ago
|
Attachment #8440479 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 15•10 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/4ee1eccd5cdd
https://hg.mozilla.org/releases/mozilla-aurora/rev/df0670536f69
https://hg.mozilla.org/releases/mozilla-aurora/rev/9e809dfdf2ae
status-firefox31:
--- → wontfix
You need to log in
before you can comment on or make changes to this bug.
Description
•