Page MenuHomePhabricator

Bug 1552878 - Use cbindgen for filters. r=#style,jwatt
ClosedPublic

Authored by emilio on May 20 2019, 3:26 PM.

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

emilio created this revision.May 20 2019, 3:26 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 20 2019, 3:26 PM
phab-bot requested review of this revision.May 20 2019, 3:26 PM
phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: Restricted Project.
emilio updated this revision to Diff 106485.May 20 2019, 6:39 PM

Fix typo

emilio edited the summary of this revision. (Show Details)May 20 2019, 6:39 PM
jwatt accepted this revision.May 21 2019, 10:41 AM
jwatt added inline comments.
dom/canvas/CanvasRenderingContext2D.h
970

You do not need the namespace prefixes here. This entire class is in the mozilla::dom namespace.

layout/style/ServoStyleConstsInlines.h
40

It might be nice to have a 'capacity' member to help avoid unnecessary free/malloc. Maybe it's even worth checking if aOther and this have the same len it we expect that to be the case frequently enough?

layout/svg/SVGObserverUtils.h
305

Again, we're in namespace 'mozilla'. Please remove these qualifications.

406

ditto

This revision is now accepted and ready to land.May 21 2019, 10:41 AM
emilio updated this revision to Diff 110363.May 27 2019, 12:29 PM
emilio edited the summary of this revision. (Show Details)

Rebase

emilio edited the summary of this revision. (Show Details)May 27 2019, 12:29 PM
emilio marked 4 inline comments as done.May 27 2019, 12:36 PM
emilio added inline comments.
layout/style/ServoStyleConstsInlines.h
40

Yeah, this is not what this class is about though, this is not a growable list so we can't take a capacity. But most times the source list would be empty since this will be called from the copy constructor.

emilio updated this revision to Diff 110375.May 27 2019, 12:37 PM
emilio marked an inline comment as done.
emilio edited the summary of this revision. (Show Details)

Remove silly namespace qualification

emilio edited the summary of this revision. (Show Details)May 27 2019, 12:37 PM
emilio removed a reviewer: Restricted Project.May 27 2019, 12:37 PM
This revision was automatically updated to reflect the committed changes.
cbrindusan reopened this revision.May 27 2019, 2:03 PM
This revision is now accepted and ready to land.May 27 2019, 2:03 PM
This revision was automatically updated to reflect the committed changes.