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

Issue 298253009: Add iterator object to iterate efficiently over an Element's attributes (Closed)

Created:
6 years, 6 months ago by Inactive
Modified:
6 years, 6 months ago
Reviewers:
esprehn, adamk
CC:
aandrey+blink_chromium.org, darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, caseq+blink_chromium.org, devtools-reviews_chromium.org, dglazkov+blink, eae+blinkwatch, ed+blinkwatch_opera.com, eustas+blink_chromium.org, loislo+blink_chromium.org, lushnikov+blink_chromium.org, malch+blink_chromium.org, paulirish+reviews_chromium.org, pfeldman+blink_chromium.org, rwlbuis, rune+blink, sergeyv+blink_chromium.org, sof, vsevik+blink_chromium.org, yurys+blink_chromium.org
Visibility:
Public.

Description

Add iterator object to iterate efficiently over an Element's attributes Add iterator object to iterate efficiently over an Element's attributes instead of using ElementData::length() / ElementData::attributeItem(index). This is a bit more efficient as it avoids implicitly calling ElementData::isUnique() for each loop iteration. This is based on the following WebKit revision by benjamin@webkit.org: http://trac.webkit.org/changeset/162394 R=esprehn@chromium.org, adamk@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175583

Patch Set 1 #

Total comments: 11

Patch Set 2 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+245 lines, -200 lines) Patch
M Source/core/css/SelectorChecker.h View 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/css/SelectorChecker.cpp View 1 1 chunk +4 lines, -3 lines 0 comments Download
M Source/core/dom/DatasetDOMStringMap.cpp View 3 chunks +14 lines, -15 lines 0 comments Download
M Source/core/dom/Element.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/Element.cpp View 1 3 chunks +14 lines, -16 lines 0 comments Download
M Source/core/dom/ElementData.h View 6 chunks +66 lines, -21 lines 0 comments Download
M Source/core/dom/ElementData.cpp View 3 chunks +20 lines, -20 lines 0 comments Download
M Source/core/dom/Node.cpp View 1 3 chunks +29 lines, -33 lines 0 comments Download
M Source/core/dom/PresentationAttributeStyle.cpp View 2 chunks +11 lines, -12 lines 0 comments Download
M Source/core/editing/MarkupAccumulator.cpp View 1 1 chunk +4 lines, -3 lines 0 comments Download
M Source/core/editing/markup.cpp View 1 2 chunks +15 lines, -12 lines 0 comments Download
M Source/core/html/HTMLEmbedElement.cpp View 1 chunk +5 lines, -5 lines 0 comments Download
M Source/core/html/HTMLObjectElement.cpp View 1 1 chunk +5 lines, -5 lines 0 comments Download
M Source/core/inspector/DOMPatchSupport.cpp View 1 2 chunks +9 lines, -9 lines 0 comments Download
M Source/core/inspector/InspectorDOMAgent.cpp View 1 3 chunks +16 lines, -16 lines 0 comments Download
M Source/core/page/PageSerializer.cpp View 1 1 chunk +6 lines, -6 lines 0 comments Download
M Source/core/xml/XPathNodeSet.cpp View 1 chunk +4 lines, -3 lines 0 comments Download
M Source/core/xml/XPathStep.cpp View 1 1 chunk +4 lines, -3 lines 0 comments Download
M Source/core/xml/parser/XMLDocumentParser.cpp View 1 chunk +7 lines, -7 lines 0 comments Download
M Source/web/WebPageSerializerImpl.cpp View 1 chunk +7 lines, -7 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Inactive
6 years, 6 months ago (2014-05-28 19:41:59 UTC) #1
esprehn
Can we just remove the AttributeIteratorAccessor class and use attributeCount() instead? This class doesn't seem ...
6 years, 6 months ago (2014-05-28 20:03:54 UTC) #2
Inactive
Based on my comments, please let me know if you still think I should get ...
6 years, 6 months ago (2014-05-29 15:14:01 UTC) #3
Inactive
https://codereview.chromium.org/298253009/diff/1/Source/core/dom/ElementData.h File Source/core/dom/ElementData.h (right): https://codereview.chromium.org/298253009/diff/1/Source/core/dom/ElementData.h#newcode3 Source/core/dom/ElementData.h:3: * Copyright (C) 2014 Apple Inc. All rights reserved. ...
6 years, 6 months ago (2014-05-29 15:17:59 UTC) #4
Inactive
https://codereview.chromium.org/298253009/diff/1/Source/core/dom/ElementData.h File Source/core/dom/ElementData.h (right): https://codereview.chromium.org/298253009/diff/1/Source/core/dom/ElementData.h#newcode108 Source/core/dom/ElementData.h:108: AttributeIteratorAccessor attributesIterator() const; On 2014/05/29 15:14:01, Chris Dumez wrote: ...
6 years, 6 months ago (2014-05-30 13:16:02 UTC) #5
Inactive
esprehn, ping review? I'd really like your feedback on this.
6 years, 6 months ago (2014-06-02 20:48:48 UTC) #6
esprehn
On 2014/06/02 at 20:48:48, ch.dumez wrote: > esprehn, ping review? I'd really like your feedback ...
6 years, 6 months ago (2014-06-05 01:10:56 UTC) #7
Inactive
On 2014/06/05 01:10:56, esprehn wrote: > On 2014/06/02 at 20:48:48, ch.dumez wrote: > > esprehn, ...
6 years, 6 months ago (2014-06-05 02:43:03 UTC) #8
esprehn
lgtm
6 years, 6 months ago (2014-06-05 05:30:37 UTC) #9
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 6 months ago (2014-06-05 12:19:01 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/298253009/1
6 years, 6 months ago (2014-06-05 12:20:19 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-05 12:20:32 UTC) #12
commit-bot: I haz the power
Failed to apply patch for Source/core/inspector/DOMPatchSupport.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 6 months ago (2014-06-05 12:20:33 UTC) #13
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 6 months ago (2014-06-05 13:07:03 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/298253009/20001
6 years, 6 months ago (2014-06-05 13:07:28 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_blink_rel on tryserver.blink ...
6 years, 6 months ago (2014-06-05 14:13:03 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-05 15:18:10 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/10807)
6 years, 6 months ago (2014-06-05 15:18:11 UTC) #18
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 6 months ago (2014-06-05 15:42:34 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/298253009/20001
6 years, 6 months ago (2014-06-05 15:43:20 UTC) #20
commit-bot: I haz the power
6 years, 6 months ago (2014-06-05 16:44:25 UTC) #21
Message was sent while issue was closed.
Change committed as 175583

Powered by Google App Engine
This is Rietveld 408576698