|
|
Created:
6 years, 3 months ago by Savago Modified:
6 years, 2 months ago CC:
blink-reviews, blink-reviews-rendering, zoltan1, eae+blinkwatch, leviw+renderwatch, kouhei+svg_chromium.org, fs, ed+blinkwatch_opera.com, krit, f(malita), gyuyoung.kim_webkit.org, jchaffraix+rendering, rwlbuis, Stephen Chennney, rune+blink Base URL:
https://chromium.googlesource.com/chromium/blink.git@master Project:
blink Visibility:
Public. |
DescriptionUsing some C++11 goodness to cleanup the iterator code in SVGResourceCache.
BUG=
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182794
Patch Set 1 #
Total comments: 2
Patch Set 2 : Updated variable name #
Total comments: 1
Patch Set 3 : More descriptive variable name. #Messages
Total messages: 24 (6 generated)
a.cavalcanti@samsung.com changed reviewers: + fmalita@chromium.org, pdr@chromium.org
On 2014/09/04 20:40:28, Savago wrote: Not lgtm. We are not yet ready for c++11.
pdr@chromium.org changed reviewers: + thakis@chromium.org
Nico, On the chromium-dev thread about c++11 features you mentioned that the Android bots weren't yet smart enough for c++11. I was surprised to see this patch pass the android compile. If this is still not allowed, is there any protection against it sneaking in the tree?
On 2014/09/05 04:03:50, pdr wrote: > Nico, > On the chromium-dev thread about c++11 features you mentioned that the Android > bots weren't yet smart enough for c++11. (the aosp host compiler wasn't smart enough. Blink is only built by the target compiler. aosp is now better, but nacl targets still don't all work yet, so still don't use c++11 yet.) > I was surprised to see this patch pass > the android compile. If this is still not allowed, is there any protection > against it sneaking in the tree? The only protection is reviews.
While at it, what is the schedule for C++11 in chromium?
See the many threads on the topic on chromium-dev. I'll tell the list once it's done. (Hint: It isn't, yet.) On Fri, Sep 5, 2014 at 2:18 PM, <a.cavalcanti@samsung.com> wrote: > While at it, what is the schedule for C++11 in chromium? > > https://codereview.chromium.org/543803005/ > To unsubscribe from this group and stop receiving emails from it, send an email to blink-reviews+unsubscribe@chromium.org.
Good news: auto + for-each are ok on Blink now: https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/EgZqphIEkS0 Could someone re-review this patch? It still applies cleanly on top of master.
I'm not sure if we should rewrite existing loops in new syntax, it makes more sense to me to only rewrite loops in functions one touches anyhoo for other reasons. (but if someone else disagrees and wants to lg this, that's fine with me) https://codereview.chromium.org/543803005/diff/1/Source/core/rendering/svg/SV... File Source/core/rendering/svg/SVGResourcesCache.cpp (right): https://codereview.chromium.org/543803005/diff/1/Source/core/rendering/svg/SV... Source/core/rendering/svg/SVGResourcesCache.cpp:185: for (auto& it : cache->m_cache) { why "it"?
https://codereview.chromium.org/543803005/diff/1/Source/core/rendering/svg/SV... File Source/core/rendering/svg/SVGResourcesCache.cpp (right): https://codereview.chromium.org/543803005/diff/1/Source/core/rendering/svg/SV... Source/core/rendering/svg/SVGResourcesCache.cpp:185: for (auto& it : cache->m_cache) { On 2014/09/25 21:23:34, Nico (away until Oct 27) wrote: > why "it"? The original code used 'it' (I'm assuming for 'iterator'). Any preferences for names here?
With this patch there's no iterator any more, so "it" ain't right. No preferences other than that. On Sep 25, 2014 2:41 PM, <a.cavalcanti@samsung.com> wrote: > > https://codereview.chromium.org/543803005/diff/1/Source/ > core/rendering/svg/SVGResourcesCache.cpp > File Source/core/rendering/svg/SVGResourcesCache.cpp (right): > > https://codereview.chromium.org/543803005/diff/1/Source/ > core/rendering/svg/SVGResourcesCache.cpp#newcode185 > Source/core/rendering/svg/SVGResourcesCache.cpp:185: for (auto& it : > cache->m_cache) { > On 2014/09/25 21:23:34, Nico (away until Oct 27) wrote: > >> why "it"? >> > > The original code used 'it' (I'm assuming for 'iterator'). Any > preferences for names here? > > https://codereview.chromium.org/543803005/ > To unsubscribe from this group and stop receiving emails from it, send an email to blink-reviews+unsubscribe@chromium.org.
schenney@chromium.org changed reviewers: + schenney@chromium.org
It may be the android bots are still busted, although it's not clear to me how this patch would cause the build failures. And a naming nit. https://codereview.chromium.org/543803005/diff/20001/Source/core/rendering/sv... File Source/core/rendering/svg/SVGResourcesCache.cpp (right): https://codereview.chromium.org/543803005/diff/20001/Source/core/rendering/sv... Source/core/rendering/svg/SVGResourcesCache.cpp:186: i.value->resourceDestroyed(resource); Blink standard would be to name it something that reflects what it actually is, in this case objectResources or the like.
Ok, just uploaded an updated patch and bots are green (specially the android ones).
Let's try it out. LGTM.
The CQ bit was checked by schenney@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/543803005/40001
The CQ bit was unchecked by commit-bot@chromium.org
A disapproval has been posted by following reviewers: pdr@chromium.org. Please make sure to get positive review before another CQ attempt.
On 2014/09/26 21:10:51, I haz the power (commit-bot) wrote: > A disapproval has been posted by following reviewers: mailto:pdr@chromium.org. > Please make sure to get positive review before another CQ attempt. LGTM. Now that the first is one done, lets continue doing the others but in larger chunks. There are roughly 1,000 iterator-based for-loops in Blink :)
The CQ bit was checked by pdr@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/543803005/40001
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as 182794 |