Page MenuHomePhabricator

Bug 1606771 - Fix the middle area of border-image nine-patches. r=jrmuizel,gw
ClosedPublic

Authored by nical on Jan 13 2020, 11:44 AM.

Details

Summary

Unlike the border areas that only nead their own dimensions, the middle area of a border-image determines its repetition parameter based on the size of the borders. A new flag is provided for the brush_image shader to know whether to use the segment's own rect or look at the borders when computing the pattern's size.

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

nical created this revision.Jan 13 2020, 11:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 13 2020, 11:44 AM
phab-bot requested review of this revision.Jan 13 2020, 11:44 AM
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.
gw accepted this revision.Jan 13 2020, 10:47 PM
gw added inline comments.
gfx/wr/webrender/res/brush_image.glsl
111

Let's open a bug for this so we don't forget it.

gfx/wr/webrender/src/gpu_types.rs
416

nit: still spelt incorrectly :)

This revision is now accepted and ready to land.Jan 13 2020, 10:47 PM
nical updated this revision to Diff 217794.Jan 14 2020, 5:26 PM

Revision updated.

nical updated this revision to Diff 218673.Jan 16 2020, 11:13 AM

Revision updated.

nical updated this revision to Diff 218683.Jan 16 2020, 12:50 PM

Revision updated.

nical updated this revision to Diff 219118.Jan 17 2020, 10:50 AM

Revision updated.

nical updated this revision to Diff 221262.Jan 22 2020, 11:19 PM

Revision updated.

nical updated this revision to Diff 221548.Jan 23 2020, 2:20 PM

Revision updated.