Closed Bug 1298655 Opened 9 years ago Closed 8 years ago

Add bindings for constructing nsCSSShadowArray

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla51
Tracking Status
firefox51 --- fixed

People

(Reporter: manishearth, Assigned: manishearth)

References

Details

Attachments

(1 file)

Needed for text-shadow and box-shadow.
While bug 1298634 will change some of how nsCSSShadowArray works, we'll still need these functions.
Assignee: nobody → manishearth
Status: NEW → ASSIGNED
Comment on attachment 8785644 [details] Bug 1298655 - Add bindings for constructing nsCSSShadowArray; https://reviewboard.mozilla.org/r/74786/#review72906 ::: layout/style/ServoBindings.h:267 (Diff revision 1) > mozilla::StyleBasicShape* Gecko_NewBasicShape(mozilla::StyleBasicShapeType type); > > void Gecko_FillAllBackgroundLists(nsStyleImageLayers* layers, uint32_t max_len); > NS_DECL_THREADSAFE_FFI_REFCOUNTING(nsStyleCoord::Calc, Calc); > > +nsCSSShadowArray* Gecko_Construct_CSSShadowArray(uint32_t len); It seems like the naming should be made consistent with Gecko_NewBasicShape rather than the style struct routines (since the latter are in-place). So I'd say Gecko_NewCSSShadowArray. Also, we should adopt Xidorn's new convention (Servo_ObjectType_Operation) for the Gecko_ methods as well. Can you file a bug for that?
Comment on attachment 8785644 [details] Bug 1298655 - Add bindings for constructing nsCSSShadowArray; https://reviewboard.mozilla.org/r/74786/#review72910
Attachment #8785644 - Flags: review?(bobbyholley) → review+
Pushed by manishearth@gmail.com: https://hg.mozilla.org/integration/autoland/rev/587acc47ecd1 Add bindings for constructing nsCSSShadowArray; r=bholley
Filed bug 1299020 I'd prefer if we waited on that till the safety stuff lands; the rebases get horrible (especially when the order of arguments is swapped around).
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: