Closed
Bug 1337291
Opened 8 years ago
Closed 8 years ago
Support borderStyle for WebRenderBorderLayer
Categories
(Core :: Graphics: WebRender, defect)
Core
Graphics: WebRender
Tracking
()
RESOLVED
FIXED
mozilla54
People
(Reporter: ethlin, Assigned: ethlin)
References
Details
Attachments
(3 files, 4 obsolete files)
|
2.92 KB,
patch
|
pchang
:
review+
|
Details | Diff | Splinter Review |
|
5.10 KB,
patch
|
kats
:
checkin+
|
Details | Diff | Splinter Review |
|
5.00 KB,
patch
|
Details | Diff | Splinter Review |
Currently we don't support borderStyle. And we should support it.
| Assignee | ||
Comment 1•8 years ago
|
||
I pass the border style to WR from OpDPPushBorder, just using the same way as width/radius. I also remove some checks in nsDisplayBorder::GetLayerState for WebRenderLayerManager.
Attachment #8834306 -
Flags: review?(matt.woodrow)
| Assignee | ||
Comment 2•8 years ago
|
||
Attachment #8834306 -
Attachment is obsolete: true
Attachment #8834306 -
Flags: review?(matt.woodrow)
Attachment #8834311 -
Flags: review?(matt.woodrow)
Comment 3•8 years ago
|
||
Comment on attachment 8834311 [details] [diff] [review]
support border style for webrenderborderlayer
Review of attachment 8834311 [details] [diff] [review]:
-----------------------------------------------------------------
::: layout/painting/nsDisplayList.cpp
@@ +4405,5 @@
> +
> + NS_FOR_CSS_SIDES(i) {
> + mColors[i] = ToDeviceColor(br->mBorderColors[i]);
> + mWidths[i] = br->mBorderWidths[i];
> + mBorderStyles[i] = br->mBorderStyles[i];
We should make sure we initialize mBorderStyles in the !LAYERS_WR case.
Attachment #8834311 -
Flags: review?(matt.woodrow) → review+
| Assignee | ||
Comment 4•8 years ago
|
||
(In reply to Matt Woodrow (:mattwoodrow) from comment #3)
> Comment on attachment 8834311 [details] [diff] [review]
> support border style for webrenderborderlayer
>
> Review of attachment 8834311 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: layout/painting/nsDisplayList.cpp
> @@ +4405,5 @@
> > +
> > + NS_FOR_CSS_SIDES(i) {
> > + mColors[i] = ToDeviceColor(br->mBorderColors[i]);
> > + mWidths[i] = br->mBorderWidths[i];
> > + mBorderStyles[i] = br->mBorderStyles[i];
>
> We should make sure we initialize mBorderStyles in the !LAYERS_WR case.
You are right! I should initialize mBorderStyles for non-WR case.
| Assignee | ||
Comment 5•8 years ago
|
||
I'll split the patch into two part. One is for m-c, and the other one is for graphics branch. And I should turn on the pref for some reftests about border-style.
| Assignee | ||
Comment 6•8 years ago
|
||
The patch is split from the original patch for m-c.
Attachment #8834311 -
Attachment is obsolete: true
| Assignee | ||
Comment 7•8 years ago
|
||
The patch is for graphics branch.
| Assignee | ||
Comment 8•8 years ago
|
||
Attachment #8834783 -
Flags: review?(howareyou322)
Updated•8 years ago
|
Attachment #8834783 -
Flags: review?(howareyou322) → review+
| Assignee | ||
Comment 9•8 years ago
|
||
m-c dones't know LAYER_WR, so I should move the check of LAYER_WR to Part2.
Attachment #8834780 -
Attachment is obsolete: true
| Assignee | ||
Comment 10•8 years ago
|
||
Update part2 since part1 changed.
Attachment #8834781 -
Attachment is obsolete: true
| Assignee | ||
Comment 11•8 years ago
|
||
Please push attachment 8835226 [details] [diff] [review] to m-c.
Keywords: checkin-needed,
leave-open
Comment 12•8 years ago
|
||
Pushed by kgupta@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/a736bb1b9524
Part1. Pass the border style to BorderLayer. r=mattwoodrow
Keywords: checkin-needed
Comment 13•8 years ago
|
||
| bugherder | ||
Comment 14•8 years ago
|
||
Comment on attachment 8835226 [details] [diff] [review]
Part1. Pass the border style to BorderLayer. r=mattwoodrow
This got merged back to the graphics branch in e79bf3dc8926
Attachment #8835226 -
Flags: checkin+
| Assignee | ||
Comment 15•8 years ago
|
||
try looks good:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=359b3f2e1a0e0c4223b140dd6b03385a4ef81085
Keywords: leave-open → checkin-needed
| Assignee | ||
Updated•8 years ago
|
Keywords: checkin-needed
Comment 16•8 years ago
|
||
Pushed by ethlin@mozilla.com:
https://hg.mozilla.org/projects/graphics/rev/07ec3c306ad2
Part2. Pass border style to webrender. r=mattwoodrow
https://hg.mozilla.org/projects/graphics/rev/67bb1f6342fa
Part3. Enable a reftest for WebRenderBorderlayer's border style. r=pchang
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Updated•8 years ago
|
Target Milestone: --- → mozilla54
You need to log in
before you can comment on or make changes to this bug.
Description
•