Closed
Bug 1392470
Opened 8 years ago
Closed 7 years ago
Add wr support for nsDisplayButtonBoxShadowOuter
Categories
(Core :: Graphics: WebRender, enhancement)
Core
Graphics: WebRender
Tracking
()
RESOLVED
FIXED
mozilla57
Tracking | Status | |
---|---|---|
firefox57 | --- | fixed |
People
(Reporter: ethlin, Assigned: kechen)
References
Details
(Whiteboard: [gfx-noted])
Attachments
(1 file)
The implementation should be similar to nsDisplayBoxShadowOuter.
Updated•8 years ago
|
Whiteboard: [gfx-noted]
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → kechen
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 3•7 years ago
|
||
mozreview-review |
Comment on attachment 8901036 [details]
Bug 1392470 - Add wr support for nsDisplayButtonBoxShadowOuter;
https://reviewboard.mozilla.org/r/172500/#review178322
::: layout/forms/nsButtonFrameRenderer.cpp:195
(Diff revision 2)
> + mozilla::gfx::RectCornerRadii borderRadii;
> + hasBorderRadius = nsCSSRendering::GetBorderRadii(shadowRect,
> + shadowRect,
> + mFrame,
> + borderRadii);
> + // TODO: support non-uniform border radius.
Shouldn't we return false/LAYER_NONE for the case where the border radius isn't uniform?
Or are we ok with just rendering wrong until this gets fixed?
Attachment #8901036 -
Flags: review?(matt.woodrow) → review+
Comment hidden (mozreview-request) |
Assignee | ||
Comment 5•7 years ago
|
||
(In reply to Matt Woodrow (:mattwoodrow) from comment #3)
> Comment on attachment 8901036 [details]
> Bug 1392470 - Add wr support for nsDisplayButtonBoxShadowOuter;
>
> https://reviewboard.mozilla.org/r/172500/#review178322
>
> ::: layout/forms/nsButtonFrameRenderer.cpp:195
> (Diff revision 2)
> > + mozilla::gfx::RectCornerRadii borderRadii;
> > + hasBorderRadius = nsCSSRendering::GetBorderRadii(shadowRect,
> > + shadowRect,
> > + mFrame,
> > + borderRadii);
> > + // TODO: support non-uniform border radius.
>
> Shouldn't we return false/LAYER_NONE for the case where the border radius
> isn't uniform?
>
> Or are we ok with just rendering wrong until this gets fixed?
Yes, we haven't support non-uniform border radius in web render, Ethan is working on this in Bug 1393383.
The latest patch will return LAYER_NONE in nsDisplayButtonBoxShadowOuter::GetLayerState.
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/aee7b8d6a886
Add wr support for nsDisplayButtonBoxShadowOuter; r=mattwoodrow
Keywords: checkin-needed
![]() |
||
Comment 7•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox57:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
You need to log in
before you can comment on or make changes to this bug.
Description
•