Chromium Code Reviews

Issue 1931303002: Simplify SVG layout attribute reordering (Closed)

Created:
4 years, 7 months ago by fs
Modified:
4 years, 7 months ago
Reviewers:
Stephen Chennney, f(malita)
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

Simplify SVG layout attribute reordering findFirstAndLastAttributesInVector is an identity transform, since it only search for first/lastContext in the layout attributes vector and return that in the out variable. Remove it. This in turn means that the vector of layout attributes is unused, and hence also removed. Finally tidy up the reversing loop by moving more code into the swapping helper function, and merge the two identical sequences of item swapping code. Drop the ASSERT that disallows having no (nullptr) user-data for the closure to collectLeafBoxesInLogicalOrder. BUG=607906 Committed: https://crrev.com/23b6e12f968b96fa35d612b0779144fb62a1cf86 Cr-Commit-Position: refs/heads/master@{#390751}

Patch Set 1 #

Patch Set 2 : Remove ASSERT. #

Total comments: 2

Patch Set 3 : Remove userData argument/closure. #

Unified diffs Side-by-side diffs Stats (+37 lines, -66 lines)
M third_party/WebKit/Source/core/layout/api/LineLayoutSVGInlineText.h View 1 chunk +5 lines, -0 lines 0 comments
M third_party/WebKit/Source/core/layout/line/InlineFlowBox.h View 1 chunk +2 lines, -2 lines 0 comments
M third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp View 2 chunks +4 lines, -6 lines 0 comments
M third_party/WebKit/Source/core/layout/svg/line/SVGRootInlineBox.h View 2 chunks +1 line, -2 lines 0 comments
M third_party/WebKit/Source/core/layout/svg/line/SVGRootInlineBox.cpp View 3 chunks +25 lines, -56 lines 0 comments

Messages

Total messages: 16 (8 generated)
fs
4 years, 7 months ago (2016-04-29 14:32:55 UTC) #7
Stephen Chennney
https://codereview.chromium.org/1931303002/diff/20001/third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp File third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp (right): https://codereview.chromium.org/1931303002/diff/20001/third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp#newcode1283 third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp:1283: (*customReverseImplementation)(userData, first, last); Do we document the fact that ...
4 years, 7 months ago (2016-04-29 18:05:19 UTC) #8
fs
https://codereview.chromium.org/1931303002/diff/20001/third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp File third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp (right): https://codereview.chromium.org/1931303002/diff/20001/third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp#newcode1283 third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp:1283: (*customReverseImplementation)(userData, first, last); On 2016/04/29 at 18:05:19, Stephen Chennney ...
4 years, 7 months ago (2016-04-29 18:44:16 UTC) #9
Stephen Chennney
lgtm. I presume the iOS GN bots are FYI only, and not commit blocking. You ...
4 years, 7 months ago (2016-04-29 20:14:30 UTC) #10
fs
On 2016/04/29 at 20:14:30, schenney wrote: > lgtm. I presume the iOS GN bots are ...
4 years, 7 months ago (2016-04-29 20:47:19 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1931303002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1931303002/40001
4 years, 7 months ago (2016-04-29 20:49:52 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-04-29 20:54:59 UTC) #14
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:28:42 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/23b6e12f968b96fa35d612b0779144fb62a1cf86
Cr-Commit-Position: refs/heads/master@{#390751}

Powered by Google App Engine