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

Issue 2536493002: Let SVGForeignObject's local SVG coordinates mean what it should (Closed)

Created:
4 years ago by Xianzhu
Modified:
4 years ago
Reviewers:
pdr.
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, krit, eae+blinkwatch, f(malita), fs, 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
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Let SVGForeignObject's local SVG coordinates mean what it should We define "local SVG coordinates" as the space where SVG local transform etc. apply. With this definition, SVGForeignObject's localSVGTransform and localToSVGParentTransform should be the same which should both transform from local SVG coordinates instead of local HTML coordinates to parent SVG coordinates, and visualRectInLocalSVGCoordinates() should return the visual rect in local SVG coordinates instead of local HTML coordinates. With the above coordinates fixed, LayoutSVGBlock becomes the same for LayoutSVGText and LayoutSVGForeignObject regarding to SVG/HTML coordinates: SVG coordinates = HTML coordinates + location() (though location() is always zero for LayoutSVGText after https://codereview.chromium.org/2531943002/). The HTML coordinate mapping methods should also map between the HTML and SVG coordinates. BUG=666416 TEST=refectoring, no outside behavior change. All existing tests should pass. The internal behavior change will be tested in the next CL which removes the special treatment of paint offsets of SVGForeignObjects. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/f451d9b5de5a1b4691d60d8c74341ac8a466cf57 Cr-Commit-Position: refs/heads/master@{#435337}

Patch Set 1 #

Patch Set 2 : - #

Patch Set 3 : Rebase #

Patch Set 4 : - #

Total comments: 2

Patch Set 5 : - #

Total comments: 2

Patch Set 6 : - #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -24 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutObject.h View 1 2 3 4 1 chunk +4 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGBlock.h View 1 2 3 4 5 3 chunks +13 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGBlock.cpp View 4 chunks +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGForeignObject.h View 2 chunks +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGForeignObject.cpp View 1 2 3 4 1 chunk +0 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp View 1 2 3 4 1 chunk +1 line, -5 lines 0 comments Download

Messages

Total messages: 42 (29 generated)
Xianzhu
4 years ago (2016-11-29 01:48:14 UTC) #13
pdr.
LGTM https://codereview.chromium.org/2536493002/diff/60001/third_party/WebKit/Source/core/layout/svg/LayoutSVGBlock.h File third_party/WebKit/Source/core/layout/svg/LayoutSVGBlock.h (right): https://codereview.chromium.org/2536493002/diff/60001/third_party/WebKit/Source/core/layout/svg/LayoutSVGBlock.h#newcode32 third_party/WebKit/Source/core/layout/svg/LayoutSVGBlock.h:32: // which is the same as other normal ...
4 years ago (2016-11-29 22:33:01 UTC) #20
Xianzhu
https://codereview.chromium.org/2536493002/diff/60001/third_party/WebKit/Source/core/layout/svg/LayoutSVGBlock.h File third_party/WebKit/Source/core/layout/svg/LayoutSVGBlock.h (right): https://codereview.chromium.org/2536493002/diff/60001/third_party/WebKit/Source/core/layout/svg/LayoutSVGBlock.h#newcode32 third_party/WebKit/Source/core/layout/svg/LayoutSVGBlock.h:32: // which is the same as other normal SVG ...
4 years ago (2016-11-30 00:02:34 UTC) #21
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/2536493002/80001
4 years ago (2016-11-30 00:04:03 UTC) #24
pdr.
https://codereview.chromium.org/2536493002/diff/80001/third_party/WebKit/Source/core/layout/svg/LayoutSVGBlock.h File third_party/WebKit/Source/core/layout/svg/LayoutSVGBlock.h (right): https://codereview.chromium.org/2536493002/diff/80001/third_party/WebKit/Source/core/layout/svg/LayoutSVGBlock.h#newcode32 third_party/WebKit/Source/core/layout/svg/LayoutSVGBlock.h:32: // that localSVGTransform(), Nit: "the space that localSVGTransform() applies. ...
4 years ago (2016-11-30 00:11:41 UTC) #25
Xianzhu
https://codereview.chromium.org/2536493002/diff/80001/third_party/WebKit/Source/core/layout/svg/LayoutSVGBlock.h File third_party/WebKit/Source/core/layout/svg/LayoutSVGBlock.h (right): https://codereview.chromium.org/2536493002/diff/80001/third_party/WebKit/Source/core/layout/svg/LayoutSVGBlock.h#newcode32 third_party/WebKit/Source/core/layout/svg/LayoutSVGBlock.h:32: // that localSVGTransform(), On 2016/11/30 00:11:41, pdr. wrote: > ...
4 years ago (2016-11-30 00:18:28 UTC) #27
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/2536493002/100001
4 years ago (2016-11-30 00:20:02 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: blimp_linux_dbg on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) cast_shell_linux on ...
4 years ago (2016-11-30 02:21:36 UTC) #32
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/2536493002/100001
4 years ago (2016-11-30 03:20:56 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_x86-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_clobber_rel_ng on ...
4 years ago (2016-11-30 05:22:08 UTC) #36
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/2536493002/100001
4 years ago (2016-11-30 17:11:11 UTC) #38
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years ago (2016-11-30 18:13:10 UTC) #40
commit-bot: I haz the power
4 years ago (2016-11-30 18:16:35 UTC) #42
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/f451d9b5de5a1b4691d60d8c74341ac8a466cf57
Cr-Commit-Position: refs/heads/master@{#435337}

Powered by Google App Engine
This is Rietveld 408576698