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

Issue 1547263002: Fix SVGInlineTextMetricsIterator not to keep a pointer to LineLayoutItem (Closed)

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

Description

Fix SVGInlineTextMetricsIterator not to keep a pointer to LineLayoutItem This patch changes SVGInlineTextMetricsIterator to keep an instanace of LineLayoutSVGInlineText, not a pointer to. LineLayoutItem and its subclasses are oftentimes allocated on stack that keeping pointers should be avoided. Additional ASSERTs in this CL fail existing tests. These existing tests cover the fix. BUG=572399, 499321 Committed: https://crrev.com/12bc246bc452c91dc3f6155480898a93cb8a78e5 Cr-Commit-Position: refs/heads/master@{#367064}

Patch Set 1 : Just add ASSERT to ensure existing tests break #

Patch Set 2 : Fix LineLayoutSVGInlineText* to LineLayoutSVGInlineText #

Total comments: 1

Patch Set 3 : eae review, remove excessive assert #

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

Messages

Total messages: 18 (12 generated)
kojii
PTAL.
4 years, 12 months ago (2015-12-28 08:41:14 UTC) #9
eae
LGTM w/nit Thanks for working on this. https://codereview.chromium.org/1547263002/diff/20001/third_party/WebKit/Source/core/layout/api/LineLayoutSVGInlineText.h File third_party/WebKit/Source/core/layout/api/LineLayoutSVGInlineText.h (right): https://codereview.chromium.org/1547263002/diff/20001/third_party/WebKit/Source/core/layout/api/LineLayoutSVGInlineText.h#newcode118 third_party/WebKit/Source/core/layout/api/LineLayoutSVGInlineText.h:118: void assertCharacterOffsetFromMetricsList() ...
4 years, 12 months ago (2015-12-28 16:41:26 UTC) #10
kojii
Thanks for quick review. Agree that the assert is excessive, I'll remove it. It just ...
4 years, 12 months ago (2015-12-29 11:53:20 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1547263002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1547263002/40001
4 years, 11 months ago (2015-12-29 13:54:16 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 11 months ago (2015-12-29 13:58:12 UTC) #16
commit-bot: I haz the power
4 years, 11 months ago (2015-12-29 13:58:59 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/12bc246bc452c91dc3f6155480898a93cb8a78e5
Cr-Commit-Position: refs/heads/master@{#367064}

Powered by Google App Engine
This is Rietveld 408576698