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

Issue 2439133002: Merge to m55: Fixed line start offsets. (Closed)

Created:
4 years, 2 months ago by David Tseng
Modified:
4 years, 2 months ago
Reviewers:
dmazzoni, David Tseng
CC:
chromium-reviews, extensions-reviews_chromium.org, aboxhall+watch_chromium.org, nektar+watch_chromium.org, jam, yuzo+watch_chromium.org, je_julie, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, chromium-apps-reviews_chromium.org
Target Ref:
refs/pending/branch-heads/2883
Project:
chromium
Visibility:
Public.

Description

Merge to m55: Fixed line start offsets. Now they indeed refer to the offset at the start of each line. This means that if e.g. the first text node starts a new line, the first offset returned should be 0. Further, the offset equivalent to the text's length should never be returned. I chose to stick with line start offsets instead of line breaks because what exactly is a line break? The beginning of the line, the end of the previous line or the line break character in between two lines when it exists? And what happens if there is no line break character, i.e. a soft line break? Line start offsets are less ambiguous. TBR=nektar@chromium.org BUG=652059 R=dmazzoni@chromium.org, dtseng@chromium.org TESTED=automation browsertests, manually with ChromeVox on ChromeOS Review-Url: https://chromiumcodereview.appspot.com/2437473003 Cr-Commit-Position: refs/heads/master@{#426636} (cherry picked from commit 6be580cbb1b4947179978c1c0f2dd9c680a99863) Committed: https://chromium.googlesource.com/chromium/src/+/b2130a303ca27915ac7abbbefe9f675c582852d2

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -13 lines) Patch
M chrome/test/data/extensions/api_test/automation/tests/tabs/line_start_offsets.js View 2 chunks +2 lines, -4 lines 0 comments Download
M content/browser/accessibility/accessibility_tree_formatter_blink.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/accessibility/ax_node.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/accessibility/ax_node.cc View 1 chunk +15 lines, -8 lines 0 comments Download

Messages

Total messages: 3 (2 generated)
David Tseng
4 years, 2 months ago (2016-10-21 17:12:55 UTC) #3
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
b2130a303ca27915ac7abbbefe9f675c582852d2 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698