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

Issue 1822513002: Cleanup SVGTextMetricsBuilder::measureTextLayoutObject (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), fs, 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

Cleanup SVGTextMetricsBuilder::measureTextLayoutObject When working on SVGTextMetricsBuilder::measureTextLayoutObject I found the MeasureTextData struct to be confusing because it is used for two separate tasks. This patch is an attempt to separate attribute updating from the text walk itself. MeasureTextData has been split into two structs: 1) TreeWalkTextState 2) UpdateAttributes (optional) Previously, attribute updating was gated on either "processLayoutObject" or "data->allCharactersMap". This patch refactors both of these behind an optional "UpdateAttributes" parameter. Additionally, measureTextLayoutObject has been renamed walkInlineText because measurement is only needed when updating attributes, otherwise the walk is just used to update the tree walk text state. Committed: https://crrev.com/1d6273f7b3bb80fa457e5b8dd682dba90bae5241 Cr-Commit-Position: refs/heads/master@{#382382}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Update per reviewer comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -56 lines) Patch
M third_party/WebKit/Source/core/layout/svg/SVGTextMetricsBuilder.cpp View 1 4 chunks +64 lines, -56 lines 0 comments Download

Messages

Total messages: 14 (6 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/1822513002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1822513002/1
4 years, 9 months ago (2016-03-19 20:38:50 UTC) #3
pdr.
Bikeshedding welcome on this one.
4 years, 9 months ago (2016-03-19 22:14:31 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-20 01:01:46 UTC) #6
fs
lgtm https://codereview.chromium.org/1822513002/diff/1/third_party/WebKit/Source/core/layout/svg/SVGTextMetricsBuilder.cpp File third_party/WebKit/Source/core/layout/svg/SVGTextMetricsBuilder.cpp (right): https://codereview.chromium.org/1822513002/diff/1/third_party/WebKit/Source/core/layout/svg/SVGTextMetricsBuilder.cpp#newcode185 third_party/WebKit/Source/core/layout/svg/SVGTextMetricsBuilder.cpp:185: // available, the attribute's character data map will ...
4 years, 9 months ago (2016-03-20 23:43:38 UTC) #7
pdr.
Thanks for the review! Hopefully this code is quite a bit more understandable now. https://codereview.chromium.org/1822513002/diff/1/third_party/WebKit/Source/core/layout/svg/SVGTextMetricsBuilder.cpp ...
4 years, 9 months ago (2016-03-21 18:44:22 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1822513002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1822513002/20001
4 years, 9 months ago (2016-03-21 18:44:54 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-21 20:51:41 UTC) #12
commit-bot: I haz the power
4 years, 9 months ago (2016-03-21 20:53:46 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/1d6273f7b3bb80fa457e5b8dd682dba90bae5241
Cr-Commit-Position: refs/heads/master@{#382382}

Powered by Google App Engine
This is Rietveld 408576698