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

Issue 2050973003: PDF accessibility tweaks (Closed)

Created:
4 years, 6 months ago by dmazzoni
Modified:
4 years, 6 months ago
Reviewers:
Lei Zhang, raymes
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@pdf_1_hastreedata
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PDF accessibility tweaks 1. Allows EnableAccessibility to be called at any time, and doesn't actually send the accessibility tree until after the document loads. (In the future we could send it while loading, but this is a good start.) 2. The character width wasn't accurate if there was space between characters in the same text run. Update it so that a character's width includes all of the space between this character and the start of the next one, because the purpose of this field is a very compact representation of the character bounds within a line, to enable visually highlighting the accessible selection. 3. Heuristic: split a text run after whitespace wider than 3 characters. 4. Heuristic: if the font size is missing or obviously bogus, use the pixel height of the text run, which is at least in the right ballpark. BUG=54724 Committed: https://crrev.com/d48d93288ff25bb6e07a67c61af5486a1092ad10 Cr-Commit-Position: refs/heads/master@{#399505}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address feedback from thestig #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -17 lines) Patch
M pdf/out_of_process_instance.h View 1 2 chunks +10 lines, -2 lines 0 comments Download
M pdf/out_of_process_instance.cc View 1 5 chunks +35 lines, -4 lines 0 comments Download
M pdf/pdf_engine.h View 1 chunk +2 lines, -2 lines 0 comments Download
M pdf/pdfium/pdfium_engine.h View 1 chunk +1 line, -1 line 0 comments Download
M pdf/pdfium/pdfium_engine.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M pdf/pdfium/pdfium_page.h View 1 chunk +2 lines, -2 lines 0 comments Download
M pdf/pdfium/pdfium_page.cc View 3 chunks +19 lines, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 12 (4 generated)
dmazzoni
4 years, 6 months ago (2016-06-09 19:03:44 UTC) #2
Lei Zhang
https://codereview.chromium.org/2050973003/diff/1/pdf/out_of_process_instance.cc File pdf/out_of_process_instance.cc (right): https://codereview.chromium.org/2050973003/diff/1/pdf/out_of_process_instance.cc#newcode698 pdf/out_of_process_instance.cc:698: pp::FloatRect char_bounds = engine_->GetCharBounds(page_index, char_index); Can you add a ...
4 years, 6 months ago (2016-06-09 22:19:05 UTC) #3
dmazzoni
https://codereview.chromium.org/2050973003/diff/1/pdf/out_of_process_instance.cc File pdf/out_of_process_instance.cc (right): https://codereview.chromium.org/2050973003/diff/1/pdf/out_of_process_instance.cc#newcode698 pdf/out_of_process_instance.cc:698: pp::FloatRect char_bounds = engine_->GetCharBounds(page_index, char_index); On 2016/06/09 22:19:05, Lei ...
4 years, 6 months ago (2016-06-10 17:44:52 UTC) #4
Lei Zhang
lgtm
4 years, 6 months ago (2016-06-10 18:57:43 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2050973003/40001
4 years, 6 months ago (2016-06-13 18:13:03 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-13 19:37:58 UTC) #9
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-13 19:37:59 UTC) #10
commit-bot: I haz the power
4 years, 6 months ago (2016-06-13 19:39:30 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d48d93288ff25bb6e07a67c61af5486a1092ad10
Cr-Commit-Position: refs/heads/master@{#399505}

Powered by Google App Engine
This is Rietveld 408576698