Closed Bug 1392470 Opened 8 years ago Closed 7 years ago

Add wr support for nsDisplayButtonBoxShadowOuter

Categories

(Core :: Graphics: WebRender, enhancement)

enhancement
Not set
normal

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.
Whiteboard: [gfx-noted]
Assignee: nobody → kechen
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+
(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.
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
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: