Page MenuHomePhabricator

Bug 1504034 - Part 3: Store the Rust QuotePair slice as the computed quotes value in Gecko style structs
ClosedPublic

Authored by heycam on Nov 2 2018, 1:02 AM.

Details

Diff Detail

Repository
rMOZILLACENTRAL mozilla-central
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

heycam created this revision.Nov 2 2018, 1:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 2 2018, 1:02 AM
phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".Nov 2 2018, 1:02 AM
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: Restricted Project.
heycam requested review of this revision.Nov 2 2018, 1:02 AM
emilio accepted this revision as: emilio.Nov 5 2018, 11:04 AM
emilio added inline comments.
servo/ports/geckolib/glue.rs
6027

It's a bit unfortunate to always allocate here just to get it copied again to a text node. But I guess quotes are generally small.

nit: This function should be unsafe, and I think you can just do (*result).write_str(quote).unwrap(), which maybe is a bit cleaner.

emilio removed a reviewer: Restricted Project.Nov 5 2018, 11:04 AM
This revision is now accepted and ready to land.Nov 5 2018, 11:04 AM
heycam marked an inline comment as done.Nov 6 2018, 10:58 PM
heycam updated this revision to Diff 32724.Nov 6 2018, 10:59 PM
heycam added a reviewer: Restricted Project.
This revision now requires review to proceed.Nov 6 2018, 10:59 PM
heycam removed a reviewer: Restricted Project.Nov 6 2018, 11:02 PM
This revision is now accepted and ready to land.Nov 6 2018, 11:02 PM
This revision was automatically updated to reflect the committed changes.