| Summary: | Convert some of WebCore/dom over to range-for loops | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Sam Weinig <sam> | ||||||||
| Component: | New Bugs | Assignee: | Csaba Osztrogonác <ossy> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | ap, commit-queue, esprehn+autocc, kangil.han, kling, ossy, sam, WebkitBugTracker | ||||||||
| Priority: | P2 | ||||||||||
| Version: | 528+ (Nightly build) | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Bug Depends on: | 126256 | ||||||||||
| Bug Blocks: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Sam Weinig
2013-12-26 17:55:57 PST
Created attachment 220042 [details]
Patch
Comment on attachment 220042 [details]
Patch
r=me
I love auto* instead of just auto for pointers. We should make that a style rule.
Committed r161096: <http://trac.webkit.org/changeset/161096> (In reply to comment #3) > Committed r161096: <http://trac.webkit.org/changeset/161096> FYI: It made all tests crash. Please fix it. Re-opened since this is blocked by bug 126256 > FYI: It made all tests crash. Please fix it. I don't think that it's OK to leave tests crashing for any period of time, rolled out in <https://trac.webkit.org/r161097>. This crashes in both debug and release. Example debug crash (assertion failure): http://build.webkit.org/results/Apple%20Mavericks%20Debug%20WK2%20(Tests)/r161096%20(1233)/canvas/philip/tests/2d.composite.uncovered.fill.copy-crash-log.txt Full results: http://build.webkit.org/results/Apple%20Mavericks%20Release%20WK2%20(Tests)/r161096%20(1785)/results.html http://build.webkit.org/results/Apple%20Mavericks%20Debug%20WK2%20(Tests)/r161096%20(1233)/results.html Are you going to update and relande this patch in the near future? I checked some random part of the patch, they are still valid. Created attachment 255112 [details]
Patch
rebased to top of trunk, patch for EWS
Comment on attachment 255112 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=255112&action=review > Source/WebCore/dom/ContainerNode.cpp:458 > + treeScope().adoptIfNeeded(&child.get()); We have been using child.ptr() instead of &child.get(). Not sure it’s better, but it is one less & character. > Source/WebCore/dom/ContainerNode.cpp:466 > + appendChildToContainer(&child.get(), *this); Ditto. > Source/WebCore/dom/ContainerNode.cpp:711 > + treeScope().adoptIfNeeded(&child.get()); Ditto. > Source/WebCore/dom/ContainerNode.cpp:716 > + appendChildToContainer(&child.get(), *this); Ditto. > Source/WebCore/dom/MutationObserverInterestGroup.cpp:71 > + for (auto& observerOptionsPair : m_observers) { Could use an even shorter name here, but I guess this is OK. > Source/WebCore/dom/Node.cpp:234 > + for (auto stringSizePair : perTagCount) This should be auto&; we don’t want to copy all these strings and churn their reference counts for no good reason, even in this logging code. Created attachment 255629 [details]
patch for landing
Comment on attachment 255629 [details] patch for landing Clearing flags on attachment: 255629 Committed r185994: <http://trac.webkit.org/changeset/185994> |