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

Issue 178323002: Simply SVGSVGElement::getElementById method (Closed)

Created:
6 years, 10 months ago by maheshkk
Modified:
6 years, 10 months ago
CC:
blink-reviews, krit, fs, ed+blinkwatch_opera.com, gyuyoung.kim_webkit.org, Stephen Chennney
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Simplify SVGSVGElement::getElementById method Simplify SVGSVGElement::getElementByID method code and also by using getAllElementsById which caches elements, we can avoid looking for matching element SVG subtree everytime. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167890

Patch Set 1 #

Total comments: 2

Patch Set 2 : using containsMultipleElementsWithId for single tag use case #

Total comments: 3

Patch Set 3 : incorporate review comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -11 lines) Patch
M Source/core/svg/SVGSVGElement.cpp View 1 2 1 chunk +13 lines, -11 lines 1 comment Download

Messages

Total messages: 29 (0 generated)
maheshkk
PTAL
6 years, 10 months ago (2014-02-24 18:33:29 UTC) #1
pdr.
LGTM https://codereview.chromium.org/178323002/diff/1/Source/core/svg/SVGSVGElement.cpp File Source/core/svg/SVGSVGElement.cpp (right): https://codereview.chromium.org/178323002/diff/1/Source/core/svg/SVGSVGElement.cpp#newcode772 Source/core/svg/SVGSVGElement.cpp:772: for (Vector<Element*>::iterator it = elements.begin(); it != elements.end(); ...
6 years, 10 months ago (2014-02-24 18:39:43 UTC) #2
maheshkk
On 2014/02/24 18:39:43, pdr wrote: > LGTM > > https://codereview.chromium.org/178323002/diff/1/Source/core/svg/SVGSVGElement.cpp > File Source/core/svg/SVGSVGElement.cpp (right): > ...
6 years, 10 months ago (2014-02-24 18:46:08 UTC) #3
rwlbuis
Hi Mahesh, On 2014/02/24 18:46:08, maheshkk wrote: > On 2014/02/24 18:39:43, pdr wrote: > > ...
6 years, 10 months ago (2014-02-24 18:57:23 UTC) #4
Inactive
https://codereview.chromium.org/178323002/diff/1/Source/core/svg/SVGSVGElement.cpp File Source/core/svg/SVGSVGElement.cpp (right): https://codereview.chromium.org/178323002/diff/1/Source/core/svg/SVGSVGElement.cpp#newcode770 Source/core/svg/SVGSVGElement.cpp:770: Vector<Element*> elements = treeScope().getAllElementsById(id); This may cause a performance ...
6 years, 10 months ago (2014-02-24 20:12:41 UTC) #5
maheshkk
On 2014/02/24 20:12:41, Chris Dumez wrote: > https://codereview.chromium.org/178323002/diff/1/Source/core/svg/SVGSVGElement.cpp > File Source/core/svg/SVGSVGElement.cpp (right): > > https://codereview.chromium.org/178323002/diff/1/Source/core/svg/SVGSVGElement.cpp#newcode770 ...
6 years, 10 months ago (2014-02-24 22:10:07 UTC) #6
Inactive
https://codereview.chromium.org/178323002/diff/100001/Source/core/svg/SVGSVGElement.cpp File Source/core/svg/SVGSVGElement.cpp (right): https://codereview.chromium.org/178323002/diff/100001/Source/core/svg/SVGSVGElement.cpp#newcode774 Source/core/svg/SVGSVGElement.cpp:774: } else { you need to return 0 before ...
6 years, 10 months ago (2014-02-24 22:14:03 UTC) #7
Inactive
Also please s/Simply/Simplify everywhere in your changelog :)
6 years, 10 months ago (2014-02-24 22:24:09 UTC) #8
maheshkk
On 2014/02/24 22:24:09, Chris Dumez wrote: > Also please s/Simply/Simplify everywhere in your changelog :) ...
6 years, 10 months ago (2014-02-24 22:36:37 UTC) #9
Inactive
LGTM but please make sure pdr is happy with this as well before landing.
6 years, 10 months ago (2014-02-24 22:41:27 UTC) #10
f(malita)
https://codereview.chromium.org/178323002/diff/120001/Source/core/svg/SVGSVGElement.cpp File Source/core/svg/SVGSVGElement.cpp (right): https://codereview.chromium.org/178323002/diff/120001/Source/core/svg/SVGSVGElement.cpp#newcode771 Source/core/svg/SVGSVGElement.cpp:771: Element* element = treeScope().getElementById(id); Isn't this introducing an extra ...
6 years, 10 months ago (2014-02-24 23:47:24 UTC) #11
maheshkk
On 2014/02/24 23:47:24, Florin Malita wrote: > https://codereview.chromium.org/178323002/diff/120001/Source/core/svg/SVGSVGElement.cpp > File Source/core/svg/SVGSVGElement.cpp (right): > > https://codereview.chromium.org/178323002/diff/120001/Source/core/svg/SVGSVGElement.cpp#newcode771 ...
6 years, 10 months ago (2014-02-24 23:54:58 UTC) #12
pdr.
On 2014/02/24 20:12:41, Chris Dumez wrote: > https://codereview.chromium.org/178323002/diff/1/Source/core/svg/SVGSVGElement.cpp > File Source/core/svg/SVGSVGElement.cpp (right): > > https://codereview.chromium.org/178323002/diff/1/Source/core/svg/SVGSVGElement.cpp#newcode770 ...
6 years, 10 months ago (2014-02-25 00:05:14 UTC) #13
f(malita)
On 2014/02/24 23:54:58, maheshkk wrote: > On 2014/02/24 23:47:24, Florin Malita wrote: > > > ...
6 years, 10 months ago (2014-02-25 00:18:15 UTC) #14
Inactive
On 2014/02/25 00:18:15, Florin Malita wrote: > On 2014/02/24 23:54:58, maheshkk wrote: > > On ...
6 years, 10 months ago (2014-02-25 00:27:48 UTC) #15
f(malita)
On 2014/02/25 00:27:48, Chris Dumez wrote: > Mahesh actually did this in his original patch. ...
6 years, 10 months ago (2014-02-25 00:41:26 UTC) #16
f(malita)
On 2014/02/25 00:41:26, Florin Malita wrote: > Something doesn't click for me, help me understand: ...
6 years, 10 months ago (2014-02-25 00:50:33 UTC) #17
Inactive
On 2014/02/25 00:41:26, Florin Malita wrote: > Something doesn't click for me, help me understand: ...
6 years, 10 months ago (2014-02-25 00:58:39 UTC) #18
Inactive
On 2014/02/25 00:58:39, Chris Dumez wrote: > On 2014/02/25 00:41:26, Florin Malita wrote: > > ...
6 years, 10 months ago (2014-02-25 01:02:53 UTC) #19
f(malita)
On 2014/02/25 01:02:53, Chris Dumez wrote: > Oh, and I forgot to mention that when ...
6 years, 10 months ago (2014-02-25 01:08:42 UTC) #20
maheshkk
The CQ bit was checked by mahesh.kk@samsung.com
6 years, 10 months ago (2014-02-25 20:53:14 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mahesh.kk@samsung.com/178323002/120001
6 years, 10 months ago (2014-02-25 20:53:32 UTC) #22
maheshkk
Thanks you all for the review! I will commit this now and will continue experimenting ...
6 years, 10 months ago (2014-02-25 20:53:52 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mahesh.kk@samsung.com/178323002/120001
6 years, 10 months ago (2014-02-25 23:03:08 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mahesh.kk@samsung.com/178323002/120001
6 years, 10 months ago (2014-02-25 23:22:44 UTC) #25
Paweł Hajdan Jr.
The CQ bit was unchecked by phajdan.jr@chromium.org
6 years, 10 months ago (2014-02-26 05:45:52 UTC) #26
Paweł Hajdan Jr.
The CQ bit was checked by phajdan.jr@chromium.org
6 years, 10 months ago (2014-02-26 06:01:35 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mahesh.kk@samsung.com/178323002/120001
6 years, 10 months ago (2014-02-26 06:03:13 UTC) #28
commit-bot: I haz the power
6 years, 10 months ago (2014-02-26 10:45:58 UTC) #29
Message was sent while issue was closed.
Change committed as 167890

Powered by Google App Engine
This is Rietveld 408576698