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

Issue 1935493002: Refactor SVGTextLayoutEngine::currentLogicalCharacterMetrics (Closed)

Created:
4 years, 7 months ago by fs
Modified:
4 years, 7 months ago
CC:
fs, 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, 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

Refactor SVGTextLayoutEngine::currentLogicalCharacterMetrics The two methods currentLogicalCharacterAttributes and currentLogicalCharacterMetrics on SVGTextLayoutEngine are very interdependent, since after calling the former, the latter will be called. So fold most of the former into the latter, keeping the bits of the former that advances to the next layout attribute entry, while renaming it to nextLogicalAttributes. The methods are also changed from returning a bool and using out- variables to return the active SVGTextLayoutAttributes structure instead. BUG=607906 Committed: https://crrev.com/cdd3f0264799c6af210ce9e7596b803df92d3cea Cr-Commit-Position: refs/heads/master@{#390736}

Patch Set 1 #

Patch Set 2 : Fix flow and add some comments. #

Total comments: 6

Patch Set 3 : Add ASSERTs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -32 lines) Patch
M third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.h View 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.cpp View 1 2 3 chunks +32 lines, -26 lines 0 comments Download

Messages

Total messages: 15 (6 generated)
fs
4 years, 7 months ago (2016-04-29 14:56:25 UTC) #4
Stephen Chennney
https://codereview.chromium.org/1935493002/diff/20001/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.h File third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.h (left): https://codereview.chromium.org/1935493002/diff/20001/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.h#oldcode78 third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.h:78: private: Why does this get removed?
4 years, 7 months ago (2016-04-29 17:15:28 UTC) #5
fs
https://codereview.chromium.org/1935493002/diff/20001/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.h File third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.h (left): https://codereview.chromium.org/1935493002/diff/20001/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.h#oldcode78 third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.h:78: private: On 2016/04/29 at 17:15:28, Stephen Chennney wrote: > ...
4 years, 7 months ago (2016-04-29 17:35:12 UTC) #6
f(malita)
lgtm https://codereview.chromium.org/1935493002/diff/20001/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.cpp File third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.cpp (right): https://codereview.chromium.org/1935493002/diff/20001/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.cpp#newcode280 third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.cpp:280: { nit: ASSERT(m_layoutAttributesPosition < m_layoutAttributes.size()); https://codereview.chromium.org/1935493002/diff/20001/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.cpp#newcode299 third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.cpp:299: // ...
4 years, 7 months ago (2016-04-29 18:06:07 UTC) #7
Stephen Chennney
On 2016/04/29 18:06:07, f(malita) wrote: > lgtm > > https://codereview.chromium.org/1935493002/diff/20001/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.cpp > File third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.cpp (right): > ...
4 years, 7 months ago (2016-04-29 18:07:18 UTC) #8
fs
https://codereview.chromium.org/1935493002/diff/20001/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.cpp File third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.cpp (right): https://codereview.chromium.org/1935493002/diff/20001/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.cpp#newcode280 third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.cpp:280: { On 2016/04/29 at 18:06:07, f(malita) wrote: > nit: ...
4 years, 7 months ago (2016-04-29 18:56:34 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1935493002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1935493002/40001
4 years, 7 months ago (2016-04-29 20:06:39 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-04-29 20:17:12 UTC) #13
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:28:18 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/cdd3f0264799c6af210ce9e7596b803df92d3cea
Cr-Commit-Position: refs/heads/master@{#390736}

Powered by Google App Engine
This is Rietveld 408576698