Closed Bug 1263486 Opened 9 years ago Closed 9 years ago

Add a move constructor/assignment operator to nsCSSValue

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla49
Tracking Status
firefox48 --- affected
firefox49 --- fixed

People

(Reporter: birtles, Assigned: birtles)

Details

Attachments

(3 files)

These objects can be expensive be to copy-construct because in some cases they need to allocate memory on the heap. Some of the work I'm doing in bug 1260655 could be cleaner if we had a move-constructor including: * Making the return value of GetComputedValue in nsAnimationManager an nsCSSValue object * Avoiding some clumsiness in AdoptListValue/AdoptPairValueList in nsCSSValue.cpp
Assignee: nobody → bbirtles
Status: NEW → ASSIGNED
Comment on attachment 8754591 [details] MozReview Request: Bug 1263486 part 1 - Add a move constructor and assignment operator to nsCSSValue https://reviewboard.mozilla.org/r/54066/#review51094
Attachment #8754591 - Flags: review?(cam) → review+
Attachment #8754592 - Flags: review?(cam) → review+
Comment on attachment 8754592 [details] MozReview Request: Bug 1263486 part 2 - Use nsCSSValue move assignment operator in nsCSSValue::Adopt(Pair)ListValue https://reviewboard.mozilla.org/r/54068/#review51096
Attachment #8754593 - Flags: review?(cam) → review+
Comment on attachment 8754593 [details] MozReview Request: Bug 1263486 part 3 - Use nsCSSValue move constructor in CSSAnimationBuilder::GetComputedValue https://reviewboard.mozilla.org/r/54070/#review51098
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: