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

Issue 1305953003: Find In Page doesn't correctly highlight wrapped text. (Closed)

Created:
5 years, 3 months ago by Sk.kumar
Modified:
5 years, 2 months ago
Reviewers:
pdr., eae, wkorman
CC:
blink-reviews, Rik, danakj, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), jbroman, Justin Novosad, pdr+graphicswatchlist_chromium.org, rwlbuis, pals, Stephen Chennney
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Find In Page doesn't correctly highlight wrapped text. With "white-space: pre-wrap" texts which consist line break, we get 3 ranges for documentMarker (+ve, +ve) (-ve, +ve) and (-ve, +ve). So, when we pass -ve offset to SimpleShaper::advance which takes unsigned value, it converts the -ve offset to very large unsigned value. Because of this, Font::selectionRectForText "width" comes as "0", hence no highlight after line break. Changed SimpleShaper::advance to take int instead of unsigned. BUG=521047 Please Note: It was regression caused by https://codereview.chromium.org/608413002

Patch Set 1 #

Total comments: 2

Patch Set 2 : Updated LayoutTest as suggested by wkorman #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -4 lines) Patch
A LayoutTests/fast/repaint/text-match-pre-wrapped-text.html View 1 1 chunk +21 lines, -0 lines 0 comments Download
A LayoutTests/fast/repaint/text-match-pre-wrapped-text-expected.html View 1 1 chunk +7 lines, -0 lines 0 comments Download
M Source/platform/fonts/shaping/SimpleShaper.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M Source/platform/fonts/shaping/SimpleShaper.cpp View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 22 (6 generated)
Sk.kumar
5 years, 3 months ago (2015-09-05 16:28:23 UTC) #2
Sk.kumar
pdr@, Please Review.
5 years, 3 months ago (2015-09-08 05:18:47 UTC) #3
pdr.
https://codereview.chromium.org/1305953003/diff/1/Source/platform/fonts/shaping/SimpleShaper.cpp File Source/platform/fonts/shaping/SimpleShaper.cpp (right): https://codereview.chromium.org/1305953003/diff/1/Source/platform/fonts/shaping/SimpleShaper.cpp#newcode205 Source/platform/fonts/shaping/SimpleShaper.cpp:205: if (m_currentCharacter >= static_cast<unsigned>(offset)) I think we'll still need ...
5 years, 3 months ago (2015-09-08 21:21:25 UTC) #4
pdr.
On 2015/09/08 at 21:21:25, pdr wrote: > https://codereview.chromium.org/1305953003/diff/1/Source/platform/fonts/shaping/SimpleShaper.cpp > File Source/platform/fonts/shaping/SimpleShaper.cpp (right): > > https://codereview.chromium.org/1305953003/diff/1/Source/platform/fonts/shaping/SimpleShaper.cpp#newcode205 ...
5 years, 3 months ago (2015-09-08 21:22:36 UTC) #5
Sk.kumar
On 2015/09/08 21:22:36, pdr wrote: > On 2015/09/08 at 21:21:25, pdr wrote: > > > ...
5 years, 2 months ago (2015-10-06 10:03:06 UTC) #6
pdr.
On 2015/10/06 at 10:03:06, sk.kumar wrote: > On 2015/09/08 21:22:36, pdr wrote: > > On ...
5 years, 2 months ago (2015-10-06 17:28:59 UTC) #7
wkorman
On 2015/10/06 at 17:28:59, pdr wrote: > On 2015/10/06 at 10:03:06, sk.kumar wrote: > > ...
5 years, 2 months ago (2015-10-06 21:50:23 UTC) #8
wkorman
On 2015/10/06 at 21:50:23, wkorman wrote: > See my comment on bug just now -- ...
5 years, 2 months ago (2015-10-06 22:17:40 UTC) #9
pdr.
@wkorman, are you okay with filing a separate bug to actually fix the API? @sk.kumar, ...
5 years, 2 months ago (2015-10-06 23:07:07 UTC) #11
wkorman
On 2015/10/06 at 23:07:07, pdr wrote: > @wkorman, are you okay with filing a separate ...
5 years, 2 months ago (2015-10-07 00:45:26 UTC) #12
Sk.kumar
On 2015/10/07 00:45:26, wkorman wrote: > On 2015/10/06 at 23:07:07, pdr wrote: > > @wkorman, ...
5 years, 2 months ago (2015-10-07 06:10:19 UTC) #13
pdr.
On 2015/10/07 at 06:10:19, sk.kumar wrote: > On 2015/10/07 00:45:26, wkorman wrote: > > On ...
5 years, 2 months ago (2015-10-07 17:50:15 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1305953003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1305953003/20001
5 years, 2 months ago (2015-10-07 18:40:12 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/107372) mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 2 months ago (2015-10-07 18:41:42 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1305953003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1305953003/20001
5 years, 2 months ago (2015-10-07 21:17:28 UTC) #20
commit-bot: I haz the power
5 years, 2 months ago (2015-10-07 21:18:30 UTC) #22
Try jobs failed on following builders:
  android_arm64_dbg_recipe on tryserver.chromium.linux (JOB_FAILED,
http://build.chromium.org/p/tryserver.chromium.linux/builders/android_arm64_d...)
  android_compile_dbg on tryserver.chromium.linux (JOB_FAILED,
http://build.chromium.org/p/tryserver.chromium.linux/builders/android_compile...)
  cast_shell_android on tryserver.chromium.linux (JOB_FAILED,
http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_andr...)
  cast_shell_linux on tryserver.chromium.linux (JOB_FAILED,
http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linu...)
  chromeos_x86-generic_chromium_compile_only_ng on tryserver.chromium.linux
(JOB_FAILED,
http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_x86-ge...)
  linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED,
http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
  linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED,
http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
  linux_chromium_clobber_rel_ng on tryserver.chromium.linux (JOB_FAILED,
http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
  linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED,
http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
  linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED,
http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
  mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED,
http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_comp...)
  mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED,
http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)

Powered by Google App Engine
This is Rietveld 408576698