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

Issue 2372823002: Fix a case where the accessible bounding box of an inline text box was wrong. (Closed)

Created:
4 years, 2 months ago by dmazzoni
Modified:
4 years, 2 months ago
Reviewers:
chrishtr, aboxhall
CC:
aboxhall+watch_chromium.org, aboxhall, blink-reviews, chromium-reviews, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, haraken, je_julie, nektar+watch_chromium.org, nektarios, yuzo+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix a case where the accessible bounding box of an inline text box was wrong. The local bounds of an inline text box is relative to the same box as its LayoutText, not relative to the LayoutText itself. Subtract the LayoutText origin from the InlineTextBox coordinates and add some new tests to cover this case. BUG=650440 Committed: https://crrev.com/dbdcf389f7e2055c8c986c5ccaec6c46180ee19b Cr-Commit-Position: refs/heads/master@{#421568}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Remove console.log #

Total comments: 4

Patch Set 3 : Address feedback #

Patch Set 4 : Fix bug in bounds calc uncovered by windows test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -22 lines) Patch
M content/browser/accessibility/browser_accessibility.cc View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/accessibility/bounds-calc.html View 1 2 3 chunks +25 lines, -18 lines 0 comments Download
A third_party/WebKit/LayoutTests/accessibility/inline-text-bounds-for-range-br.html View 1 chunk +39 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXInlineTextBox.cpp View 1 2 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 30 (17 generated)
dmazzoni
4 years, 2 months ago (2016-09-26 22:22:46 UTC) #3
chrishtr
https://codereview.chromium.org/2372823002/diff/1/third_party/WebKit/LayoutTests/accessibility/bounds-calc.html File third_party/WebKit/LayoutTests/accessibility/bounds-calc.html (right): https://codereview.chromium.org/2372823002/diff/1/third_party/WebKit/LayoutTests/accessibility/bounds-calc.html#newcode81 third_party/WebKit/LayoutTests/accessibility/bounds-calc.html:81: console.log(text.data); Remove this. https://codereview.chromium.org/2372823002/diff/1/third_party/WebKit/Source/modules/accessibility/AXInlineTextBox.cpp File third_party/WebKit/Source/modules/accessibility/AXInlineTextBox.cpp (right): https://codereview.chromium.org/2372823002/diff/1/third_party/WebKit/Source/modules/accessibility/AXInlineTextBox.cpp#newcode69 third_party/WebKit/Source/modules/accessibility/AXInlineTextBox.cpp:69: ...
4 years, 2 months ago (2016-09-26 23:42:51 UTC) #7
dmazzoni
https://codereview.chromium.org/2372823002/diff/1/third_party/WebKit/LayoutTests/accessibility/bounds-calc.html File third_party/WebKit/LayoutTests/accessibility/bounds-calc.html (right): https://codereview.chromium.org/2372823002/diff/1/third_party/WebKit/LayoutTests/accessibility/bounds-calc.html#newcode81 third_party/WebKit/LayoutTests/accessibility/bounds-calc.html:81: console.log(text.data); On 2016/09/26 at 23:42:51, chrishtr wrote: > Remove ...
4 years, 2 months ago (2016-09-27 16:07:47 UTC) #8
chrishtr
On 2016/09/27 at 16:07:47, dmazzoni wrote: > https://codereview.chromium.org/2372823002/diff/1/third_party/WebKit/LayoutTests/accessibility/bounds-calc.html > File third_party/WebKit/LayoutTests/accessibility/bounds-calc.html (right): > > https://codereview.chromium.org/2372823002/diff/1/third_party/WebKit/LayoutTests/accessibility/bounds-calc.html#newcode81 ...
4 years, 2 months ago (2016-09-27 16:49:30 UTC) #11
chrishtr
lgtm
4 years, 2 months ago (2016-09-27 16:49:33 UTC) #12
dmazzoni
On 2016/09/27 16:49:30, chrishtr wrote: > On 2016/09/27 at 16:07:47, dmazzoni wrote: > > > ...
4 years, 2 months ago (2016-09-27 16:54:29 UTC) #13
aboxhall
lgtm https://codereview.chromium.org/2372823002/diff/20001/third_party/WebKit/LayoutTests/accessibility/bounds-calc.html File third_party/WebKit/LayoutTests/accessibility/bounds-calc.html (right): https://codereview.chromium.org/2372823002/diff/20001/third_party/WebKit/LayoutTests/accessibility/bounds-calc.html#newcode137 third_party/WebKit/LayoutTests/accessibility/bounds-calc.html:137: assertStaticTextChildDOMRectSameAsAXRect("twolines", 2); What's the second child, out of ...
4 years, 2 months ago (2016-09-27 17:02:48 UTC) #14
dmazzoni
https://codereview.chromium.org/2372823002/diff/20001/third_party/WebKit/LayoutTests/accessibility/bounds-calc.html File third_party/WebKit/LayoutTests/accessibility/bounds-calc.html (right): https://codereview.chromium.org/2372823002/diff/20001/third_party/WebKit/LayoutTests/accessibility/bounds-calc.html#newcode137 third_party/WebKit/LayoutTests/accessibility/bounds-calc.html:137: assertStaticTextChildDOMRectSameAsAXRect("twolines", 2); On 2016/09/27 17:02:48, aboxhall wrote: > What's ...
4 years, 2 months ago (2016-09-27 17:41:16 UTC) #15
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/2372823002/40001
4 years, 2 months ago (2016-09-27 17:42:03 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/287284)
4 years, 2 months ago (2016-09-27 19:49:56 UTC) #20
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/2372823002/60001
4 years, 2 months ago (2016-09-28 18:00:03 UTC) #27
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-09-28 18:06:51 UTC) #28
commit-bot: I haz the power
4 years, 2 months ago (2016-09-28 18:09:46 UTC) #30
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/dbdcf389f7e2055c8c986c5ccaec6c46180ee19b
Cr-Commit-Position: refs/heads/master@{#421568}

Powered by Google App Engine
This is Rietveld 408576698