Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(850)

Issue 2803783002: Ensure strikethrough font renders in omnibox on iOS 10.3 (Closed)

Created:
3 years, 8 months ago by elawrence
Modified:
3 years, 8 months ago
CC:
chromium-reviews, jdonnelly+watch_chromium.org, ios-reviews+chrome_chromium.org, ios-reviews_chromium.org, pkl (ping after 24h if needed), noyau+watch_chromium.org, marq+watch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Ensure strikethrough font renders in omnibox on iOS 10.3 iOS 10.3 introduced a regression in rendering of strings with the attribute NSStrikethroughStyleAttributeName applied to a subrange of the string. To workaround this, apply a NSBaselineOffsetAttributeName attribute with its default value of 0. BUG=699702 TEST=https://expired.badssl.com. Examine https: text in the omnibox, it should have a line through it. Review-Url: https://codereview.chromium.org/2803783002 Cr-Commit-Position: refs/heads/master@{#462519} Committed: https://chromium.googlesource.com/chromium/src/+/2352cecca1d2738c6c6b970708286211c29cf16e

Patch Set 1 #

Total comments: 1

Patch Set 2 : Limit workaround to iOS 10.3 and later #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -0 lines) Patch
M ios/chrome/browser/ui/omnibox/omnibox_view_ios.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M ios/chrome/browser/ui/omnibox/omnibox_view_ios.mm View 1 3 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
elawrence
PTAL? I've confirmed in the 10.3 emulators that this fixes the issue, but I haven't ...
3 years, 8 months ago (2017-04-06 14:45:53 UTC) #2
rohitrao (ping after 24h)
https://codereview.chromium.org/2803783002/diff/1/ios/chrome/browser/ui/omnibox/omnibox_view_ios.mm File ios/chrome/browser/ui/omnibox/omnibox_view_ios.mm (right): https://codereview.chromium.org/2803783002/diff/1/ios/chrome/browser/ui/omnibox/omnibox_view_ios.mm#newcode674 ios/chrome/browser/ui/omnibox/omnibox_view_ios.mm:674: // Workaround: Add an attribute to allow strikethough to ...
3 years, 8 months ago (2017-04-06 14:51:21 UTC) #3
elawrence
On 2017/04/06 14:51:21, rohitrao wrote: > https://codereview.chromium.org/2803783002/diff/1/ios/chrome/browser/ui/omnibox/omnibox_view_ios.mm > File ios/chrome/browser/ui/omnibox/omnibox_view_ios.mm (right): > > https://codereview.chromium.org/2803783002/diff/1/ios/chrome/browser/ui/omnibox/omnibox_view_ios.mm#newcode674 > ...
3 years, 8 months ago (2017-04-06 15:03:30 UTC) #4
elawrence
No limited to 10.3+
3 years, 8 months ago (2017-04-06 15:36:15 UTC) #5
elawrence
On 2017/04/06 15:36:15, elawrence wrote: > No limited to 10.3+ typo. "Now limited to 10.3+". ...
3 years, 8 months ago (2017-04-06 15:36:49 UTC) #6
rohitrao (ping after 24h)
lgtm
3 years, 8 months ago (2017-04-06 15:58:03 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2803783002/20001
3 years, 8 months ago (2017-04-06 16:33:05 UTC) #9
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 17:12:32 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/2352cecca1d2738c6c6b97070828...

Powered by Google App Engine
This is Rietveld 408576698