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

Issue 1937043002: Remove the LayoutSVGInlineText* context in SVGTextLayoutAttributes (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, 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

Remove the LayoutSVGInlineText* context in SVGTextLayoutAttributes Most uses of the SVGTextLayoutAttributes* in vector owned by LayoutSVGText, actually ends up doing ...->context() and dereferencing the owning LayoutSVGInlineText rather than the attributes object itself. It's also slightly more obvious what's going on when considering the iteration over "text nodes" rather than their associated attributes. Make LayoutSVGText collect the descendant LayoutSVGInlineTexts rather than the "parts object" SVGTextLayoutAttributes, and rename as appropriate to reflect that change. Since removing the context pointer makes SVGTextLayoutAttributes a simple wrapper around a SVGCharacterDataMap, just store the latter directly. Rename SVGTextLayoutAttributes.h to SVGCharacterData.h Also replace a HashMap::find+conditional copy with a HashMap::get. BUG=607906 Committed: https://crrev.com/62d08faa9793d36f12b0844cdbcdbcec6a6526b9 Cr-Commit-Position: refs/heads/master@{#391052}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -230 lines) Patch
M third_party/WebKit/Source/core/core.gypi View 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/api/LineLayoutSVGInlineText.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.h View 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp View 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGText.h View 3 chunks +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp View 10 chunks +16 lines, -20 lines 0 comments Download
A + third_party/WebKit/Source/core/layout/svg/SVGCharacterData.h View 3 chunks +4 lines, -27 lines 0 comments Download
D third_party/WebKit/Source/core/layout/svg/SVGTextLayoutAttributes.h View 1 chunk +0 lines, -85 lines 0 comments Download
D third_party/WebKit/Source/core/layout/svg/SVGTextLayoutAttributes.cpp View 1 chunk +0 lines, -34 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/SVGTextLayoutAttributesBuilder.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/svg/SVGTextLayoutAttributesBuilder.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.h View 4 chunks +6 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.cpp View 7 chunks +27 lines, -31 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/line/SVGRootInlineBox.cpp View 2 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 11 (6 generated)
fs
This looks more scary than it is - it's mostly renaming things (~layoutAttributes -> ~descendantTextNodes ...
4 years, 7 months ago (2016-05-02 16:16:28 UTC) #5
f(malita)
lgtm
4 years, 7 months ago (2016-05-02 17:14:40 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1937043002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1937043002/1
4 years, 7 months ago (2016-05-02 21:16:04 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 7 months ago (2016-05-02 21:22:36 UTC) #9
commit-bot: I haz the power
4 years, 7 months ago (2016-05-02 21:24:08 UTC) #11
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/62d08faa9793d36f12b0844cdbcdbcec6a6526b9
Cr-Commit-Position: refs/heads/master@{#391052}

Powered by Google App Engine
This is Rietveld 408576698