WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
156007
REGRESSION (197234): [RTL] Search field cancel buttons are cut off.
https://bugs.webkit.org/show_bug.cgi?id=156007
Summary
REGRESSION (197234): [RTL] Search field cancel buttons are cut off.
alan
Reported
2016-03-29 20:31:26 PDT
SSIA.
Attachments
Patch
(8.59 KB, text/plain)
2016-03-29 20:41 PDT
,
alan
no flags
Details
Cut off cancel button
(8.74 KB, image/png)
2016-03-29 20:43 PDT
,
alan
no flags
Details
Correct rendering
(7.70 KB, image/png)
2016-03-29 20:47 PDT
,
alan
no flags
Details
Patch
(8.57 KB, patch)
2016-03-29 20:49 PDT
,
alan
buildbot
: commit-queue-
Details
Formatted Diff
Diff
Archive of layout-test-results from ews106 for mac-yosemite-wk2
(1.01 MB, application/zip)
2016-03-29 21:25 PDT
,
Build Bot
no flags
Details
Archive of layout-test-results from ews102 for mac-yosemite
(772.79 KB, application/zip)
2016-03-29 21:36 PDT
,
Build Bot
no flags
Details
Archive of layout-test-results from ews117 for mac-yosemite
(931.64 KB, application/zip)
2016-03-29 21:44 PDT
,
Build Bot
no flags
Details
Patch
(15.79 KB, patch)
2016-03-30 10:30 PDT
,
alan
no flags
Details
Formatted Diff
Diff
Show Obsolete
(6)
View All
Add attachment
proposed patch, testcase, etc.
alan
Comment 1
2016-03-29 20:31:59 PDT
rdar://problem/25346475
Simon Fraser (smfr)
Comment 2
2016-03-29 20:32:47 PDT
I don't think the SSIA in this case!
alan
Comment 3
2016-03-29 20:41:28 PDT
Created
attachment 275172
[details]
Patch
alan
Comment 4
2016-03-29 20:43:29 PDT
Created
attachment 275173
[details]
Cut off cancel button
alan
Comment 5
2016-03-29 20:43:57 PDT
(In reply to
comment #2
)
> I don't think the SSIA in this case!
ASIA
alan
Comment 6
2016-03-29 20:47:13 PDT
Created
attachment 275175
[details]
Correct rendering
alan
Comment 7
2016-03-29 20:49:31 PDT
Created
attachment 275176
[details]
Patch
Simon Fraser (smfr)
Comment 8
2016-03-29 21:22:54 PDT
Comment on
attachment 275176
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=275176&action=review
> Source/WebCore/html/TextFieldInputType.cpp:650 > + m_container->setAttribute(dirAttr, systemLanguageIsRTL() ? "rtl" : "ltr");
What happens to a search field inside dir="rtl" content now? What will happen to a dir="ltr" search field when systemLanguageIsRTL?
> Source/WebCore/platform/mac/Language.mm:146 > +#if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200 > + static bool result = [[NSScrollerImpPair class] respondsToSelector:@selector(scrollerLayoutDirection)] && [NSScrollerImpPair scrollerLayoutDirection] == NSUserInterfaceLayoutDirectionRightToLeft; > + return result; > +#else > + return false; > +#endif
Is this the best way? Maybe we should read the defaults that affect NSScrollerImpPair behavior?
Build Bot
Comment 9
2016-03-29 21:25:02 PDT
Comment on
attachment 275176
[details]
Patch
Attachment 275176
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.webkit.org/results/1067064
New failing tests: fast/forms/number/number-appearance-rtl.html
Build Bot
Comment 10
2016-03-29 21:25:05 PDT
Created
attachment 275177
[details]
Archive of layout-test-results from ews106 for mac-yosemite-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-yosemite-wk2 Platform: Mac OS X 10.10.5
Build Bot
Comment 11
2016-03-29 21:36:35 PDT
Comment on
attachment 275176
[details]
Patch
Attachment 275176
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.webkit.org/results/1067123
New failing tests: fast/forms/number/number-appearance-rtl.html
Build Bot
Comment 12
2016-03-29 21:36:37 PDT
Created
attachment 275179
[details]
Archive of layout-test-results from ews102 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-yosemite Platform: Mac OS X 10.10.5
Build Bot
Comment 13
2016-03-29 21:44:38 PDT
Comment on
attachment 275176
[details]
Patch
Attachment 275176
[details]
did not pass mac-debug-ews (mac): Output:
http://webkit-queues.webkit.org/results/1067115
New failing tests: fast/forms/number/number-appearance-rtl.html
Build Bot
Comment 14
2016-03-29 21:44:41 PDT
Created
attachment 275181
[details]
Archive of layout-test-results from ews117 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews117 Port: mac-yosemite Platform: Mac OS X 10.10.5
alan
Comment 15
2016-03-30 10:30:11 PDT
Created
attachment 275198
[details]
Patch
Jon Lee
Comment 16
2016-03-30 10:39:25 PDT
Comment on
attachment 275198
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=275198&action=review
> Source/WebCore/ChangeLog:12 > + Partially covered by existing tests.
Can we add one for search?
Jon Lee
Comment 17
2016-03-30 10:44:36 PDT
Comment on
attachment 275198
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=275198&action=review
> Source/WebCore/html/TextFieldInputType.cpp:650 > + m_container->setAttribute(dirAttr, systemLanguageIsRTL() ? "rtl" : "ltr");
Is it better to set the style inline rather than attaching a class, and adding the rule to the base stylesheet?
> LayoutTests/platform/mac/fast/forms/number/number-appearance-rtl-expected.txt:9 > + RenderBlock {DIV} at (0,0) size 118x13
Actually, why should this test change at all? The render tree should not be changing for any of these tests.
Brent Fulgham
Comment 18
2016-03-31 20:18:35 PDT
Comment on
attachment 275198
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=275198&action=review
> Source/WebCore/platform/mac/Language.mm:145 > +#if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200
Do we need #if PLATFORM(MAC) in a mac-specific file?
Myles C. Maxfield
Comment 19
2016-03-31 20:46:42 PDT
Please wait to land anything that is relevant to detection of an RTL environment. I'm still figuring out the best way to do that on OS X.
alan
Comment 20
2016-03-31 20:48:33 PDT
(In reply to
comment #19
)
> Please wait to land anything that is relevant to detection of an RTL > environment. I'm still figuring out the best way to do that on OS X.
ofc. There's not even a valid patch on this to land.
Darin Adler
Comment 21
2016-04-03 15:38:18 PDT
Comment on
attachment 275198
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=275198&action=review
>> Source/WebCore/html/TextFieldInputType.cpp:650 >> + m_container->setAttribute(dirAttr, systemLanguageIsRTL() ? "rtl" : "ltr"); > > Is it better to set the style inline rather than attaching a class, and adding the rule to the base stylesheet?
The line above goes out of its way to use AtomicString::ConstructFromLiteral. This line of code should consider doing the same thing. Or use some other technique to lower the cost of looking up these constant strings in the atomic string table and then allocating new strings. Strangely, toValidDirValue does the NeverDestroyed trick to make an efficient global variable to avoid the overhead, but the many other call sites that use these strings don’t bother.
> Source/WebCore/platform/Language.cpp:170 > +#endif > }
Missing blank line here.
> Source/WebCore/platform/Language.h:53 > +bool systemLanguageIsRTL(); > }
Missing blank line here.
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