Closed
Bug 1310463
Opened 7 years ago
Closed 7 years ago
support list-style-image in stylo
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla52
Tracking | Status | |
---|---|---|
firefox52 | --- | fixed |
People
(Reporter: heycam, Assigned: heycam)
References
Details
Attachments
(5 files)
58 bytes,
text/x-review-board-request
|
xidorn
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
xidorn
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
xidorn
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
Details | |
58 bytes,
text/x-review-board-request
|
manishearth
:
review+
|
Details |
No description provided.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 6•7 years ago
|
||
mozreview-review |
Comment on attachment 8801559 [details] Support list-style-image in stylo. https://reviewboard.mozilla.org/r/86262/#review84906 ::: servo/components/style/properties/gecko.mako.rs:1376 (Diff revision 1) > + pub fn set_list_style_image(&mut self, image: longhands::list_style_image::computed_value::T) { > + use values::computed::UrlOrNone; > + match image { > + UrlOrNone::None => { > + unsafe { > + Gecko_SetListStyleImageNone(&mut self.gecko); We probably should just have a function that lets us decref an image request and set it to null. The samge goes for setting the image, it's better if there's a single function that's used by all. Probably makes more sense as a pass in my FFI bindings work. Changes are fine as is, but once these are all done I'll try to refactor it a bit to reduce the number of FFI functions.
Comment 7•7 years ago
|
||
mozreview-review |
Comment on attachment 8801559 [details] Support list-style-image in stylo. https://reviewboard.mozilla.org/r/86262/#review84908
Attachment #8801559 -
Flags: review?(manishearth) → review+
Assignee | ||
Comment 8•7 years ago
|
||
mozreview-review-reply |
Comment on attachment 8801559 [details] Support list-style-image in stylo. https://reviewboard.mozilla.org/r/86262/#review84906 > We probably should just have a function that lets us decref an image request and set it to null. > > The samge goes for setting the image, it's better if there's a single function that's used by all. > > Probably makes more sense as a pass in my FFI bindings work. Changes are fine as is, but once these are all done I'll try to refactor it a bit to reduce the number of FFI functions. Yeah, it seems we could simplify things by just having an FFI function that produces a new nsStyleImageRequest object, and let the rust code do all the refcounting and setting. Happy to leave that for you to look at later.
Comment 9•7 years ago
|
||
mozreview-review |
Comment on attachment 8801555 [details] Bug 1310463 - Part 1: Make list-style-image use nsStyleImageRequest for storage. https://reviewboard.mozilla.org/r/86254/#review84952
Attachment #8801555 -
Flags: review?(xidorn+moz) → review+
Comment 10•7 years ago
|
||
mozreview-review |
Comment on attachment 8801556 [details] Bug 1310463 - Part 2: Simplify nsComputedDOMStyle::DoGetListStyleImage a little. https://reviewboard.mozilla.org/r/86256/#review84954 ::: layout/style/nsComputedDOMStyle.cpp:3538 (Diff revision 1) > - if (!list->GetListStyleImage()) { > + // XXXheycam As in SetValueToStyleImage, we might want to use the > + // URL stored in the nsStyleImageRequest's mImageValue if we > + // failed to resolve the imgRequestProxy. Probably also add a comment to SetValueToStyleImage stating that if that gets fixed, this function should be fixed in the same way.
Attachment #8801556 -
Flags: review?(xidorn+moz) → review+
Comment 11•7 years ago
|
||
mozreview-review |
Comment on attachment 8801557 [details] Bug 1310463 - Part 3: Add FFI functions for setting list-style-image. https://reviewboard.mozilla.org/r/86258/#review84964
Attachment #8801557 -
Flags: review?(xidorn+moz) → review+
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 17•7 years ago
|
||
Pushed by cmccormack@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/869787233418 Part 1: Make list-style-image use nsStyleImageRequest for storage. r=xidorn https://hg.mozilla.org/integration/mozilla-inbound/rev/23bad27dfeb3 Part 2: Simplify nsComputedDOMStyle::DoGetListStyleImage a little. r=xidorn https://hg.mozilla.org/integration/mozilla-inbound/rev/5ebcedea1fa5 Part 3: Add FFI functions for setting list-style-image. r=xidorn
Assignee | ||
Comment 18•7 years ago
|
||
Servo PR: https://github.com/servo/servo/pull/13786
Comment 19•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/869787233418 https://hg.mozilla.org/mozilla-central/rev/23bad27dfeb3 https://hg.mozilla.org/mozilla-central/rev/5ebcedea1fa5
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox52:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
Assignee | ||
Comment 20•7 years ago
|
||
Backed out for being on top of 1288302, which I backed out for the bug 1311921 Talos regressions: https://hg.mozilla.org/integration/mozilla-inbound/rev/7fd0f297a13d
Assignee | ||
Updated•7 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 21•7 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=089e1a5aae3f307c2690a8b0e9b6c82d414d8710
Comment 22•7 years ago
|
||
Pushed by cmccormack@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/5fd7c7cad759 Part 1: Make list-style-image use nsStyleImageRequest for storage. r=xidorn https://hg.mozilla.org/integration/mozilla-inbound/rev/0520d9787931 Part 2: Simplify nsComputedDOMStyle::DoGetListStyleImage a little. r=xidorn https://hg.mozilla.org/integration/mozilla-inbound/rev/be398e3e2b20 Part 3: Add FFI functions for setting list-style-image. r=xidorn
Comment 23•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/5fd7c7cad759 https://hg.mozilla.org/mozilla-central/rev/0520d9787931 https://hg.mozilla.org/mozilla-central/rev/be398e3e2b20
Status: REOPENED → RESOLVED
Closed: 7 years ago → 7 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•