Closed
Bug 1318625
Opened 8 years ago
Closed 8 years ago
Dotted border rendering artifacts when setting elliptical shaped corner
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
FIXED
mozilla53
People
(Reporter: massamino, Assigned: arai)
References
Details
Attachments
(4 files)
401 bytes,
text/html
|
Details | |
20.21 KB,
image/jpeg
|
Details | |
1.66 KB,
patch
|
jrmuizel
:
review+
gchang
:
approval-mozilla-aurora+
gchang
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
4.17 KB,
patch
|
jrmuizel
:
review+
|
Details | Diff | Splinter Review |
When setting top and bottom border width to a value and setting the side borders to 0 and than setting the top right border radius to 40px 200px, the rendering of the border goes wrong.
It shows an overshoot after half the height of the div.
Updated•8 years ago
|
Updated•8 years ago
|
Component: General → Layout
Product: Firefox → Core
Comment 2•8 years ago
|
||
I reproduce with latest Aurora v51 (20161114004005) and latest Nightly v53 (20161117030212).
status-firefox53:
--- → affected
Assignee | ||
Comment 3•8 years ago
|
||
thanks.
I found that the DottedCornerFinder goes into wrong state after the dot size becomes almost 0.
Will try fixing.
Assignee: nobody → arai.unmht
Status: NEW → ASSIGNED
Assignee | ||
Comment 4•8 years ago
|
||
While calculating circle around r=0, it may fail to search correct circle (due to the restriction for avoid taking too long time), and in that case it returns wrong circle that is bigger than previous circle (note that we're calculating circles from wider side to narrow side),
So changed the code to detect that case and stop calculating.
it will now return circle with r=0, so that nsCSSBorderRenderer::DrawDottedCornerSlow will leave the loop.
I'll try creating reftest, but it may take some time, so I'd like to ask review for the code first.
Attachment #8812310 -
Flags: review?(jmuizelaar)
Assignee | ||
Comment 5•8 years ago
|
||
Added testcase from comment #0.
Attachment #8812323 -
Flags: review?(jmuizelaar)
Updated•8 years ago
|
Attachment #8812310 -
Flags: review?(jmuizelaar) → review+
Updated•8 years ago
|
Attachment #8812323 -
Flags: review?(jmuizelaar) → review+
Assignee | ||
Comment 6•8 years ago
|
||
Thank you for reviewing :)
status-firefox50:
--- → affected
status-firefox52:
--- → affected
Assignee | ||
Comment 7•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/2405181a4bf97a0f8f8c3588ad373d98a21d159d
Bug 1318625 - Part 1: Stop calculating circles around r=0 in DottedCornerFinder. r=0 in DottedCornerFinder.,jrmuizel
https://hg.mozilla.org/integration/mozilla-inbound/rev/16c4898b35b2fbb4a3482e5162764d5b29ae3d18
Bug 1318625 - Part 2: Add testcase. r=jrmuizel
Comment 8•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/2405181a4bf9
https://hg.mozilla.org/mozilla-central/rev/16c4898b35b2
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
Assignee | ||
Comment 9•8 years ago
|
||
Comment on attachment 8812310 [details] [diff] [review]
Stop calculating circles around r=0 in DottedCornerFinder.
same patch is applicable to mozilla-aurora and mozilla-beta
Approval Request Comment
> [Feature/regressing bug #]
bug 382721
> [User impact if declined]
unnecessary wrong dots are rendered with dotted border radius in some case.
(comment #0)
> [Describe test coverage new/current, TreeHerder]
tested on m-c
> [Risks and why]
low, just avoid rendering wrong dots
> [String/UUID change made/needed]
none
Attachment #8812310 -
Flags: approval-mozilla-beta?
Attachment #8812310 -
Flags: approval-mozilla-aurora?
Comment 10•8 years ago
|
||
Comment on attachment 8812310 [details] [diff] [review]
Stop calculating circles around r=0 in DottedCornerFinder.
Fix a rendering issue related to dotted border radius. Beta51+ and Aurora52+. Should be in 51 beta 3.
Attachment #8812310 -
Flags: approval-mozilla-beta?
Attachment #8812310 -
Flags: approval-mozilla-beta+
Attachment #8812310 -
Flags: approval-mozilla-aurora?
Attachment #8812310 -
Flags: approval-mozilla-aurora+
Comment 11•8 years ago
|
||
bugherder uplift |
Comment 12•8 years ago
|
||
bugherder uplift |
Updated•8 years ago
|
Updated•8 years ago
|
QA Whiteboard: [good first verify]
Comment 13•8 years ago
|
||
I have reproduced this bug with Firefox Nightly 53.0a1 (Build ID: 20161118030222) on
Windows 8.1, 64-bit.
Verified as fixed with Latest Firefox beta 53.0b5 (Build ID: 20170320143328)
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0
QA Whiteboard: [good first verify] → [good first verify] [bugday-20170322]
You need to log in
before you can comment on or make changes to this bug.
Description
•