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

Issue 1897853004: Fix InlineTextBox::characterWidths() not to measure every substring (Closed)

Created:
4 years, 8 months ago by kojii
Modified:
4 years, 8 months ago
Reviewers:
tkent, drott, eae
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix InlineTextBox::characterWidths() not to measure every substring This patch changes InlineTextBox::characterWidths() to use Font::individualCharacterRanges() rather than to measure every substring of InlineTextBox. Measuring every substring without context is very expensive and also is not correct. When dev tools have long strings without spaces such as minified JS and accessbility is turned on, the measuring of substrings can almost hang it up. Currently, WebAXObject::characterOffsets() is the only user of this function. BUG=593679, 568032 TEST=Existing tests cover, such as AutomationApiTest.BoundsForRange Committed: https://crrev.com/11f1c680cca2250e01121b9bddd7bc6f8fb28a96 Cr-Commit-Position: refs/heads/master@{#388162}

Patch Set 1 #

Patch Set 2 : Fix AutomationApiTest.BoundsForRange, use width() to simplify the logic #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -9 lines) Patch
M third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp View 1 2 chunks +8 lines, -9 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
kojii
PTAL. Looks like urgent, crbug.com/593679#c106 wants the fix to land by 2am PST today.
4 years, 8 months ago (2016-04-19 05:36:29 UTC) #3
kojii
+tkent@
4 years, 8 months ago (2016-04-19 07:07:12 UTC) #7
tkent
looks ok. lgtm
4 years, 8 months ago (2016-04-19 07:11:36 UTC) #8
drott
Change LGTM. Maybe you could explain why is this under BUG=593679 if > Currently, WebAXObject::characterOffsets() ...
4 years, 8 months ago (2016-04-19 07:48:01 UTC) #9
kojii
On 2016/04/19 at 07:48:01, drott wrote: > Change LGTM. Maybe you could explain why is ...
4 years, 8 months ago (2016-04-19 07:56:32 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1897853004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1897853004/20001
4 years, 8 months ago (2016-04-19 07:56:51 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-19 08:05:10 UTC) #14
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/11f1c680cca2250e01121b9bddd7bc6f8fb28a96 Cr-Commit-Position: refs/heads/master@{#388162}
4 years, 8 months ago (2016-04-19 08:06:09 UTC) #16
eae
LGTM, thank you!
4 years, 8 months ago (2016-04-19 16:14:02 UTC) #17
eae
4 years, 8 months ago (2016-04-19 16:14:03 UTC) #18
Message was sent while issue was closed.
LGTM, thank you!

Powered by Google App Engine
This is Rietveld 408576698