WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
215428
[macOS] Zoomed-in search field is clipped out
https://bugs.webkit.org/show_bug.cgi?id=215428
Summary
[macOS] Zoomed-in search field is clipped out
Aditya Keerthi
Reported
2020-08-12 14:26:19 PDT
The top and bottom borders, as well as the top and bottom of the focus ring, are clipped when a search field is zoomed in.
Attachments
Patch
(5.83 KB, patch)
2020-08-12 14:47 PDT
,
Aditya Keerthi
no flags
Details
Formatted Diff
Diff
Patch
(9.46 KB, patch)
2020-08-12 19:10 PDT
,
Aditya Keerthi
darin
: review+
Details
Formatted Diff
Diff
Patch for landing
(8.17 KB, patch)
2020-08-12 21:09 PDT
,
Aditya Keerthi
no flags
Details
Formatted Diff
Diff
Patch for landing
(8.18 KB, patch)
2020-08-13 07:34 PDT
,
Aditya Keerthi
no flags
Details
Formatted Diff
Diff
Rebaseline test
(2.72 KB, patch)
2020-08-13 14:30 PDT
,
Aditya Keerthi
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Aditya Keerthi
Comment 1
2020-08-12 14:27:44 PDT
<
rdar://problem/66161781
>
Aditya Keerthi
Comment 2
2020-08-12 14:47:53 PDT
Created
attachment 406476
[details]
Patch
Aditya Keerthi
Comment 3
2020-08-12 19:10:32 PDT
Created
attachment 406488
[details]
Patch
Darin Adler
Comment 4
2020-08-12 19:32:21 PDT
Comment on
attachment 406488
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=406488&action=review
> Source/WebCore/rendering/RenderThemeMac.mm:1999 > + NSControlSize controlSize = controlSizeForFont(style); > + setFontFromControlSize(style, controlSize);
I know you just moved this, but I suggest doing this in one line without a local variable.
> LayoutTests/ChangeLog:15 > + * fast/forms/search/search-zoom-rendering-expected.txt: Added. > + * fast/forms/search/search-zoom-rendering.html: Added. > + * platform/ios-wk2/fast/forms/search/search-zoom-rendering-expected.txt: Added. > + * platform/mac-mojave/fast/forms/search/search-zoom-rendering-expected.txt: Added. > + * platform/win/fast/forms/search/search-zoom-rendering-expected.txt: Added.
It’s really undesirable to have another render-tree-dumping test like this. Is there any way we can test this without a render tree dump? One thing to think about is that the render tree dump doesn’t actually check the clipping, only the geometry. Since that’s all we need to check, maybe we can do a reftest that explicitly sets the size? Or perhaps we can do a dumpAsText test that explicitly queries the height? We can land like this, but these are really hard to maintain over time. I’m particularly puzzled by the seemingly random set of expectation files. For example, why does legacy WebKit testing on iOS use the shared master expectation, but modern WebKit testing on iOS use its own. Maybe that file should be in platform/ios instead of in platform/ios-wk2?
Aditya Keerthi
Comment 5
2020-08-12 21:09:15 PDT
Created
attachment 406494
[details]
Patch for landing
Aditya Keerthi
Comment 6
2020-08-12 21:13:07 PDT
(In reply to Darin Adler from
comment #4
)
> Comment on
attachment 406488
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=406488&action=review
> > > Source/WebCore/rendering/RenderThemeMac.mm:1999 > > + NSControlSize controlSize = controlSizeForFont(style); > > + setFontFromControlSize(style, controlSize); > > I know you just moved this, but I suggest doing this in one line without a > local variable.
👍
> > LayoutTests/ChangeLog:15 > > + * fast/forms/search/search-zoom-rendering-expected.txt: Added. > > + * fast/forms/search/search-zoom-rendering.html: Added. > > + * platform/ios-wk2/fast/forms/search/search-zoom-rendering-expected.txt: Added. > > + * platform/mac-mojave/fast/forms/search/search-zoom-rendering-expected.txt: Added. > > + * platform/win/fast/forms/search/search-zoom-rendering-expected.txt: Added. > > It’s really undesirable to have another render-tree-dumping test like this. > Is there any way we can test this without a render tree dump? > > One thing to think about is that the render tree dump doesn’t actually check > the clipping, only the geometry. Since that’s all we need to check, maybe we > can do a reftest that explicitly sets the size? Or perhaps we can do a > dumpAsText test that explicitly queries the height? > > We can land like this, but these are really hard to maintain over time. I’m > particularly puzzled by the seemingly random set of expectation files. For > example, why does legacy WebKit testing on iOS use the shared master > expectation, but modern WebKit testing on iOS use its own. Maybe that file > should be in platform/ios instead of in platform/ios-wk2?
I was unable to write a reftest that explicitly sets the size, since height is overridden when rendering our native search control (same behavior as NSSearchFieldCell). However, I did replace the render-tree-dumping test with a dumpAsText test. I also moved the expectation from platform/ios-wk2 into platform/ios.
Aditya Keerthi
Comment 7
2020-08-13 07:34:05 PDT
Created
attachment 406514
[details]
Patch for landing
EWS
Comment 8
2020-08-13 10:56:12 PDT
Committed
r265613
: <
https://trac.webkit.org/changeset/265613
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 406514
[details]
.
Aditya Keerthi
Comment 9
2020-08-13 14:30:00 PDT
Reopening to attach patch for test fix.
Aditya Keerthi
Comment 10
2020-08-13 14:30:27 PDT
Created
attachment 406542
[details]
Rebaseline test
EWS
Comment 11
2020-08-13 15:10:00 PDT
Committed
r265625
: <
https://trac.webkit.org/changeset/265625
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 406542
[details]
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug