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

Issue 1951353002: Fixed a bug that assumed that static text object span only one line (Closed)

Created:
4 years, 7 months ago by nektarios
Modified:
4 years, 7 months ago
Reviewers:
dmazzoni
CC:
aboxhall+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, jam, je_julie, nektar+watch_chromium.org, yuzo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

The bug fixed involves not recursing into inline text boxes in the case that a static text object covered more than one line. Also fixed a bug on Windows that didn't return the correct line boundaries if the start offset was equal to the text's length, something that is allowed by the IA2 Spec. BUG=605670 R=dmazzoni@chromium.org TESTED=manual testing with Gmail > Compose and Docs, browser tests Committed: https://crrev.com/74bdbcb2a0b6cd2810e8b666cd5fefbd600039fd Cr-Commit-Position: refs/heads/master@{#392424}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fixed a corner case when the offset is equal to the text length, e.g. caret is at the end of the te… #

Patch Set 3 : Fixed as much as possible with textareas. #

Patch Set 4 : Added back legasy logic for handling input and textarea elements. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -19 lines) Patch
M content/browser/accessibility/accessibility_win_browsertest.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/accessibility/browser_accessibility.cc View 1 2 3 3 chunks +32 lines, -13 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_win.cc View 1 1 chunk +9 lines, -5 lines 0 comments Download

Messages

Total messages: 24 (8 generated)
nektarios
4 years, 7 months ago (2016-05-05 17:34:08 UTC) #1
dmazzoni
Just one question https://codereview.chromium.org/1951353002/diff/1/content/browser/accessibility/browser_accessibility.cc File content/browser/accessibility/browser_accessibility.cc (right): https://codereview.chromium.org/1951353002/diff/1/content/browser/accessibility/browser_accessibility.cc#newcode526 content/browser/accessibility/browser_accessibility.cc:526: if (IsSimpleTextControl() && InternalChildCount() == 1) ...
4 years, 7 months ago (2016-05-05 18:35:04 UTC) #2
chromium-reviews
https://codereview.chromium.org/1951353002/diff/1/content/browser/accessibility/browser_accessibility.cc > File content/browser/accessibility/browser_accessibility.cc (right): > > https://codereview.chromium.org/1951353002/diff/1/content/browser/accessibility/browser_accessibility.cc#newcode526 > content/browser/accessibility/browser_accessibility.cc:526: if > (IsSimpleTextControl() && InternalChildCount() ...
4 years, 7 months ago (2016-05-05 18:51:02 UTC) #3
dmazzoni
That doesn't make sense to me. The input element has a single div as its ...
4 years, 7 months ago (2016-05-05 19:31:30 UTC) #4
dmazzoni
As discussed offline, just add a TODO in the places where you assume that a ...
4 years, 7 months ago (2016-05-05 20:14:11 UTC) #5
chromium-reviews
I checked and the textarea elements don't have multiple paragraphs inside them. Simply static text ...
4 years, 7 months ago (2016-05-06 22:45:13 UTC) #6
chromium-reviews
I decided to revert back to the old logic because the extra static text objects ...
4 years, 7 months ago (2016-05-09 16:38:22 UTC) #7
dmazzoni
Please update the change description to reflect what this change really does and I'll take ...
4 years, 7 months ago (2016-05-09 19:46:39 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1951353002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1951353002/60001
4 years, 7 months ago (2016-05-09 19:46:59 UTC) #10
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years, 7 months ago (2016-05-09 19:47:01 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1951353002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1951353002/60001
4 years, 7 months ago (2016-05-09 19:50:10 UTC) #16
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years, 7 months ago (2016-05-09 19:50:13 UTC) #18
dmazzoni
lgtm
4 years, 7 months ago (2016-05-09 19:53:59 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1951353002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1951353002/60001
4 years, 7 months ago (2016-05-09 20:15:41 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-09 21:12:37 UTC) #22
commit-bot: I haz the power
4 years, 7 months ago (2016-05-09 21:13:45 UTC) #24
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/74bdbcb2a0b6cd2810e8b666cd5fefbd600039fd
Cr-Commit-Position: refs/heads/master@{#392424}

Powered by Google App Engine
This is Rietveld 408576698