Closed
Bug 1339661
Opened 6 years ago
Closed 6 years ago
Create box shadow outer webrender display item
Categories
(Core :: Graphics: WebRender, defect)
Tracking
()
RESOLVED
FIXED
mozilla54
Tracking | Status | |
---|---|---|
firefox54 | --- | fixed |
People
(Reporter: mchang, Assigned: mchang)
References
Details
(Whiteboard: gfx-noted)
Attachments
(2 files)
18.24 KB,
patch
|
jrmuizel
:
review+
|
Details | Diff | Splinter Review |
1.53 KB,
patch
|
xidorn
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Updated•6 years ago
|
Summary: Use box shadow outer webrender display item → Create box shadow outer webrender display item
Assignee | ||
Comment 1•6 years ago
|
||
Doesn't work in anything except the basic cases, but it has the piping.
Attachment #8837385 -
Flags: review?(jmuizelaar)
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → mchang
Updated•6 years ago
|
Attachment #8837385 -
Flags: review?(jmuizelaar) → review+
Pushed by mchang@mozilla.com: https://hg.mozilla.org/projects/graphics/rev/687b3bd601ba Create box shadow outer webrender display item. r=jmuizelaar
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Comment 3•6 years ago
|
||
Comment on attachment 8837385 [details] [diff] [review] Create outer box shadow webrender display item Review of attachment 8837385 [details] [diff] [review]: ----------------------------------------------------------------- ::: gfx/webrender_bindings/webrender_ffi.h @@ +69,4 @@ > // ----- > // Enums used in C++ code with corresponding enums in Rust code > // ----- > +enum class WrBoxShadowClipMode { This should have :uint32_t like the other enums. Although even then I'm not convinced it's guaranteed to be FFI safe (bug 1332737 comment 6).
Pushed by mchang@mozilla.com: https://hg.mozilla.org/projects/graphics/rev/c990f3d0225e Declare WrBoxShadowClipMode a uint32_t. r=me
Assignee | ||
Comment 6•6 years ago
|
||
(In reply to (away until Feb21) Kartikaya Gupta (email:kats@mozilla.com) from comment #3) > Comment on attachment 8837385 [details] [diff] [review] > Create outer box shadow webrender display item > > Review of attachment 8837385 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: gfx/webrender_bindings/webrender_ffi.h > @@ +69,4 @@ > > // ----- > > // Enums used in C++ code with corresponding enums in Rust code > > // ----- > > +enum class WrBoxShadowClipMode { > > This should have :uint32_t like the other enums. Although even then I'm not > convinced it's guaranteed to be FFI safe (bug 1332737 comment 6). Fixed, thanks!.
Flags: needinfo?(mchang)
Updated•6 years ago
|
Target Milestone: --- → mozilla54
Comment 7•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/687b3bd601ba https://hg.mozilla.org/mozilla-central/rev/c990f3d0225e
Comment 8•6 years ago
|
||
Comment on attachment 8837385 [details] [diff] [review] Create outer box shadow webrender display item Review of attachment 8837385 [details] [diff] [review]: ----------------------------------------------------------------- ::: layout/painting/nsDisplayList.cpp @@ +4780,5 @@ > + > + for (uint32_t j = shadows->Length(); j > 0; --j) { > + nsCSSShadowItem* shadowItem = shadows->ShadowAt(j - 1); > + nscoord blurRadius = shadowItem->mRadius; > + float gfxBlurRadius = blurRadius / appUnitsPerDevPixel; Coverity reports an UNINTENDED_INTEGER_DIVISION here that, blurRadius divides appUnitsPerDevPixel as an integer, and the result (which is integer) is then converted to float. Is it the desired behavior, or should blurRadius be converted to float before the division?
Updated•6 years ago
|
Flags: needinfo?(mchang)
Assignee | ||
Comment 9•6 years ago
|
||
Thanks for finding that!
Flags: needinfo?(mchang)
Attachment #8840530 -
Flags: review?(xidorn+moz)
Updated•6 years ago
|
Attachment #8840530 -
Flags: review?(xidorn+moz) → review+
Comment 10•6 years ago
|
||
Pushed by mchang@mozilla.com: https://hg.mozilla.org/projects/graphics/rev/b323a395e46e Part 2: Ensure we do floating point division. r=xidorn
Comment 11•6 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/b323a395e46e
status-firefox54:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•