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

Issue 1773353003: Use precomputed text metrics instead of recomputing them in SVGTextQuery (Closed)

Created:
4 years, 9 months ago by pdr.
Modified:
4 years, 9 months ago
Reviewers:
fs
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, krit, eae+blinkwatch, f(malita), gyuyoung2, jchaffraix+rendering, kouhei+svg_chromium.org, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney, 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

Use precomputed text metrics instead of recomputing them in SVGTextQuery This patch changes SVGTextQuery to use precomputed text metrics instead of recomputing them on every text query. This will result in a small performance improvement for text queries. The purpose of this patch is to unify the SVG text metrics calculations so they are only computed in one place and one time. A followup patch will change how metrics are calculated and now only needs to change SVGTextMetricsBuilder. There is a small test expectations change in lengthAdjust-text-metrics due to how the 'T' in 'Test' overhangs 'est'. When measured in isolation using SVGTextContentElement.getSubStringLength, the width of 'e' is different compared to when it is measured in the string. The precise values used in the test are somewhat arbitrary and will be changing in a followup but, aesthetically, http://jsbin.com/fayimoz is improved with this patch. BUG=589525 Committed: https://crrev.com/931bd4a856cfe2a08f33b8be8cc405bd616873b5 Cr-Commit-Position: refs/heads/master@{#380243}

Patch Set 1 #

Patch Set 2 : Minor cleanup and english fixes #

Total comments: 4

Patch Set 3 : Land rover: address reviewer comments and drive over to the CQ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -28 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/svg/text/lengthAdjust-text-metrics-expected.txt View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/SVGTextQuery.cpp View 1 2 4 chunks +28 lines, -25 lines 0 comments Download

Messages

Total messages: 20 (8 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1773353003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1773353003/1
4 years, 9 months ago (2016-03-09 02:45:44 UTC) #3
pdr.
4 years, 9 months ago (2016-03-09 03:45:22 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-09 04:19:24 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1773353003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1773353003/20001
4 years, 9 months ago (2016-03-09 05:38:59 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-09 07:16:23 UTC) #10
fs
I have something similar (getting rid of calls to measureCharacterRange) stashed away somewhere , so ...
4 years, 9 months ago (2016-03-09 09:55:42 UTC) #11
pdr.
Thanks! Off to the CQ. Can you expand a bit on how to improve the ...
4 years, 9 months ago (2016-03-09 19:13:51 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1773353003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1773353003/40001
4 years, 9 months ago (2016-03-09 19:14:09 UTC) #15
fs
On 2016/03/09 at 19:13:51, pdr wrote: > Thanks! Off to the CQ. > > Can ...
4 years, 9 months ago (2016-03-09 19:54:54 UTC) #16
fs
On 2016/03/09 at 19:54:54, fs wrote: > On 2016/03/09 at 19:13:51, pdr wrote: > > ...
4 years, 9 months ago (2016-03-09 20:01:14 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 9 months ago (2016-03-09 22:29:21 UTC) #18
commit-bot: I haz the power
4 years, 9 months ago (2016-03-09 22:48:02 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/931bd4a856cfe2a08f33b8be8cc405bd616873b5
Cr-Commit-Position: refs/heads/master@{#380243}

Powered by Google App Engine
This is Rietveld 408576698