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

Issue 252903004: Avoid using SVGElementInstance in calcViewport (Closed)

Created:
6 years, 7 months ago by rwlbuis
Modified:
6 years, 7 months ago
CC:
blink-reviews, chrishtr, krit, bemjb+rendering_chromium.org, dsinclair, zoltan1, eae+blinkwatch, leviw+renderwatch, kouhei+svg_chromium.org, ed+blinkwatch_opera.com, f(malita), gyuyoung.kim_webkit.org, jchaffraix+rendering, ojan, Stephen Chennney, rune+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Avoid using SVGElementInstance in calcViewport Avoid using SVGElementInstance in calcViewport as it is scheduled to be removed. Instead implement the width/height transfer rules in SVGUseElement. This speeds up the SierpinskiCarpet test a lot as profiling showed the instance traversal in calcViewport was very high. BUG=313438 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173258

Patch Set 1 #

Patch Set 2 : Cleaner patch #

Total comments: 4

Patch Set 3 : Add tests and change patch to pass them #

Patch Set 4 : Unsquash #

Patch Set 5 : Use isSpecified #

Total comments: 2

Patch Set 6 : Add animation test #

Patch Set 7 : Also test shadow tree <svg> #

Patch Set 8 : Use attributeType=XML #

Patch Set 9 : Add NeedsRebaseline magic #

Total comments: 2

Patch Set 10 : Fix nits and rebase #

Patch Set 11 : Rebase one more time #

Unified diffs Side-by-side diffs Delta from patch set Stats (+290 lines, -49 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/platform/linux/svg/custom/relative-sized-shadow-tree-content-with-symbol-expected.png View 1 2 3 4 5 6 7 Binary file 0 comments Download
A LayoutTests/svg/animations/script-tests/use-animate-width-and-height.js View 1 2 3 4 5 6 7 1 chunk +122 lines, -0 lines 0 comments Download
A + LayoutTests/svg/animations/use-animate-width-and-height.html View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A LayoutTests/svg/animations/use-animate-width-and-height-expected.txt View 1 2 3 4 5 6 1 chunk +51 lines, -0 lines 0 comments Download
A LayoutTests/svg/custom/use-attribute-invalidations.html View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
A LayoutTests/svg/custom/use-attribute-invalidations-expected.html View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
A LayoutTests/svg/custom/use-dynamic-attribute-setting.html View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
A LayoutTests/svg/custom/use-dynamic-attribute-setting-expected.html View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGViewportContainer.cpp View 1 2 1 chunk +0 lines, -48 lines 0 comments Download
M Source/core/svg/SVGUseElement.cpp View 1 2 3 4 5 6 7 8 9 4 chunks +32 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
rwlbuis
PTAL
6 years, 7 months ago (2014-04-28 19:54:14 UTC) #1
rwlbuis
On 2014/04/28 19:54:14, rwlbuis wrote: > PTAL Hmm, closed by accident?
6 years, 7 months ago (2014-04-28 23:18:24 UTC) #2
pdr.
I like where this patch is going! Before your patch it looks like we didn't ...
6 years, 7 months ago (2014-04-29 04:30:58 UTC) #3
Erik Dahlström (inactive)
https://codereview.chromium.org/252903004/diff/20001/Source/core/svg/SVGUseElement.cpp File Source/core/svg/SVGUseElement.cpp (right): https://codereview.chromium.org/252903004/diff/20001/Source/core/svg/SVGUseElement.cpp#newcode415 Source/core/svg/SVGUseElement.cpp:415: if (use.hasAttribute(SVGNames::widthAttr)) Will this work if the width/height attributes ...
6 years, 7 months ago (2014-04-29 13:01:01 UTC) #4
rwlbuis
On 2014/04/29 13:01:01, Erik Dahlström wrote: > https://codereview.chromium.org/252903004/diff/20001/Source/core/svg/SVGUseElement.cpp > File Source/core/svg/SVGUseElement.cpp (right): > > https://codereview.chromium.org/252903004/diff/20001/Source/core/svg/SVGUseElement.cpp#newcode415 ...
6 years, 7 months ago (2014-04-29 15:08:18 UTC) #5
rwlbuis
On 2014/04/29 04:30:58, pdr wrote: > I like where this patch is going! > > ...
6 years, 7 months ago (2014-04-29 15:53:04 UTC) #6
pdr.
On 2014/04/29 15:53:04, rwlbuis wrote: > On 2014/04/29 04:30:58, pdr wrote: > > I like ...
6 years, 7 months ago (2014-04-29 17:20:45 UTC) #7
rwlbuis
On 2014/04/29 17:20:45, pdr wrote: > On 2014/04/29 15:53:04, rwlbuis wrote: > > On 2014/04/29 ...
6 years, 7 months ago (2014-04-29 17:31:50 UTC) #8
rwlbuis
On 2014/04/29 17:31:50, rwlbuis wrote: > On 2014/04/29 17:20:45, pdr wrote: > > On 2014/04/29 ...
6 years, 7 months ago (2014-04-29 17:53:32 UTC) #9
rwlbuis
This fixes the two nice and tricky tests. I did not implement yet all of ...
6 years, 7 months ago (2014-04-29 20:05:10 UTC) #10
pdr.
On 2014/04/29 20:05:10, rwlbuis wrote: > I'll have a think about the SMIL animation scenario ...
6 years, 7 months ago (2014-04-29 20:09:59 UTC) #11
fs
On 2014/04/29 20:09:59, pdr wrote: > On 2014/04/29 20:05:10, rwlbuis wrote: > > I'll have ...
6 years, 7 months ago (2014-04-30 07:54:58 UTC) #12
rwlbuis
On 2014/04/30 07:54:58, fs wrote: > On 2014/04/29 20:09:59, pdr wrote: > > On 2014/04/29 ...
6 years, 7 months ago (2014-04-30 15:46:45 UTC) #13
pdr.
This looks pretty good to me. @fs, did you have any further thoughts on this? ...
6 years, 7 months ago (2014-04-30 18:53:51 UTC) #14
rwlbuis
I did a first stab at the animation test. Two problems with the current version: ...
6 years, 7 months ago (2014-05-01 15:30:13 UTC) #15
rwlbuis
On 2014/05/01 15:30:13, rwlbuis wrote: > I did a first stab at the animation test. ...
6 years, 7 months ago (2014-05-01 15:38:55 UTC) #16
rwlbuis
On 2014/05/01 15:38:55, rwlbuis wrote: > On 2014/05/01 15:30:13, rwlbuis wrote: > > I did ...
6 years, 7 months ago (2014-05-01 22:37:02 UTC) #17
Erik Dahlström (inactive)
Thanks, my concerns are addressed by this.
6 years, 7 months ago (2014-05-02 07:15:37 UTC) #18
rwlbuis
I now added a NeedRebaseline for relative-sized-shadow-tree-content-with-symbol.xhtml, the patch has the linux results but we ...
6 years, 7 months ago (2014-05-02 22:50:55 UTC) #19
rwlbuis
I now added a NeedRebaseline for relative-sized-shadow-tree-content-with-symbol.xhtml, the patch has the linux results but we ...
6 years, 7 months ago (2014-05-02 22:51:01 UTC) #20
pdr.
LGTM https://codereview.chromium.org/252903004/diff/140001/Source/core/svg/SVGUseElement.cpp File Source/core/svg/SVGUseElement.cpp (right): https://codereview.chromium.org/252903004/diff/140001/Source/core/svg/SVGUseElement.cpp#newcode197 Source/core/svg/SVGUseElement.cpp:197: inline void transferUseWidthAndHeightIfNeeded(const SVGUseElement& use, SVGElement* shadowElement, SVGElement* ...
6 years, 7 months ago (2014-05-02 23:03:51 UTC) #21
rwlbuis
The CQ bit was checked by rob.buis@samsung.com
6 years, 7 months ago (2014-05-02 23:33:40 UTC) #22
rwlbuis
The CQ bit was unchecked by rob.buis@samsung.com
6 years, 7 months ago (2014-05-02 23:33:52 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rob.buis@samsung.com/252903004/160001
6 years, 7 months ago (2014-05-02 23:34:00 UTC) #24
rwlbuis
The CQ bit was checked by rob.buis@samsung.com
6 years, 7 months ago (2014-05-03 00:15:17 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rob.buis@samsung.com/252903004/180001
6 years, 7 months ago (2014-05-03 00:15:35 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-03 00:15:59 UTC) #27
commit-bot: I haz the power
Failed to apply patch for LayoutTests/TestExpectations: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 7 months ago (2014-05-03 00:15:59 UTC) #28
rwlbuis
The CQ bit was checked by rob.buis@samsung.com
6 years, 7 months ago (2014-05-03 01:18:15 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rob.buis@samsung.com/252903004/180001
6 years, 7 months ago (2014-05-03 01:18:26 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-03 01:18:37 UTC) #31
commit-bot: I haz the power
Failed to apply patch for LayoutTests/TestExpectations: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 7 months ago (2014-05-03 01:18:38 UTC) #32
rwlbuis
The CQ bit was checked by rob.buis@samsung.com
6 years, 7 months ago (2014-05-03 01:21:09 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rob.buis@samsung.com/252903004/200001
6 years, 7 months ago (2014-05-03 01:21:22 UTC) #34
commit-bot: I haz the power
6 years, 7 months ago (2014-05-03 02:35:50 UTC) #35
Message was sent while issue was closed.
Change committed as 173258

Powered by Google App Engine
This is Rietveld 408576698