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

Issue 2688343002: Unify SVG parent checks for LayoutObject construction using always the light tree parent. (Closed)

Created:
3 years, 10 months ago by emilio
Modified:
3 years, 10 months ago
Reviewers:
fs
CC:
fs, blink-reviews, chromium-reviews, krit, f(malita), gyuyoung2, kouhei+svg_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Unify SVG parent checks for LayoutObject construction using always the light tree parent. This is the last cleanup spawned from [1]. I've used the light tree parent because there are a lot of other checks that are wrong, as noted in that discussion, and updating all those and ensuring it's correct is a fair amount of work. This patch ensures we're consistent, and that there's only one place to change if we want to change the isLayoutObjectNeeded check to use the flat tree. [1]: https://codereview.chromium.org/2684833003/ Review-Url: https://codereview.chromium.org/2688343002 Cr-Commit-Position: refs/heads/master@{#449893} Committed: https://chromium.googlesource.com/chromium/src/+/a27de19a92af18ded5e1c83ed5715feb12b750f6

Patch Set 1 #

Total comments: 3

Patch Set 2 : Unify SVG parent checks for LayoutObject construction using always the light tree parent. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -16 lines) Patch
M third_party/WebKit/Source/core/svg/SVGElement.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGElement.cpp View 1 1 chunk +7 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGGElement.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGMarkerElement.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGSVGElement.cpp View 1 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 10 (4 generated)
emilio
Hi fs, This is the last part of the cleanup I mentioned before. I've opted ...
3 years, 10 months ago (2017-02-12 00:57:41 UTC) #2
fs
https://codereview.chromium.org/2688343002/diff/1/third_party/WebKit/Source/core/svg/SVGElement.cpp File third_party/WebKit/Source/core/svg/SVGElement.cpp (right): https://codereview.chromium.org/2688343002/diff/1/third_party/WebKit/Source/core/svg/SVGElement.cpp#newcode1032 third_party/WebKit/Source/core/svg/SVGElement.cpp:1032: if (!isSVGSVGElement(*this) && !isInSVGSubtree()) Given that we have an ...
3 years, 10 months ago (2017-02-12 10:25:36 UTC) #3
emilio
On 2017/02/12 10:25:36, fs wrote: > https://codereview.chromium.org/2688343002/diff/1/third_party/WebKit/Source/core/svg/SVGElement.cpp > File third_party/WebKit/Source/core/svg/SVGElement.cpp (right): > > https://codereview.chromium.org/2688343002/diff/1/third_party/WebKit/Source/core/svg/SVGElement.cpp#newcode1032 > ...
3 years, 10 months ago (2017-02-12 11:05:18 UTC) #4
fs
lgtm > > https://codereview.chromium.org/2688343002/diff/1/third_party/WebKit/Source/core/svg/SVGElement.cpp#newcode1045 > > third_party/WebKit/Source/core/svg/SVGElement.cpp:1045: bool > > SVGElement::isInSVGSubtree() const { > > ...
3 years, 10 months ago (2017-02-12 11:09:48 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2688343002/20001
3 years, 10 months ago (2017-02-12 12:46:12 UTC) #7
commit-bot: I haz the power
3 years, 10 months ago (2017-02-12 17:03:29 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/a27de19a92af18ded5e1c83ed571...

Powered by Google App Engine
This is Rietveld 408576698