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

Issue 413763004: Get rid of unnecessary isChildNodeList() virtual call in clearChildNodeListCache() (Closed)

Created:
6 years, 5 months ago by Inactive
Modified:
6 years, 4 months ago
Reviewers:
esprehn, adamk
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Project:
blink
Visibility:
Public.

Description

Get rid of unnecessary isChildNodeList() virtual call in clearChildNodeListCache() This CL inlines clearChildNodeListCache() in the caller as there is only one to avoid an unnecessary isChildNodeList() virtual call. The calling method is invalidateNodeListCachesInAncestors(), which this CL moves from Node to ContainerNode to make sure it is only called for ContainerNodes (Only ContainerNodes' node lists have caches that need invalidation). R=adamk@chromium.org, esprehn@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179056

Patch Set 1 #

Total comments: 2

Patch Set 2 : Second proposal #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -26 lines) Patch
M Source/core/dom/ContainerNode.h View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/dom/ContainerNode.cpp View 1 1 chunk +24 lines, -0 lines 0 comments Download
M Source/core/dom/Node.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/dom/Node.cpp View 1 chunk +0 lines, -22 lines 0 comments Download
M Source/core/dom/NodeListsNodeData.h View 1 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Inactive
6 years, 5 months ago (2014-07-23 20:51:41 UTC) #1
adamk
https://codereview.chromium.org/413763004/diff/1/Source/core/dom/NodeListsNodeData.h File Source/core/dom/NodeListsNodeData.h (right): https://codereview.chromium.org/413763004/diff/1/Source/core/dom/NodeListsNodeData.h#newcode43 Source/core/dom/NodeListsNodeData.h:43: // This can only be called from ContainerNode so ...
6 years, 5 months ago (2014-07-24 22:06:20 UTC) #2
Inactive
https://codereview.chromium.org/413763004/diff/1/Source/core/dom/NodeListsNodeData.h File Source/core/dom/NodeListsNodeData.h (right): https://codereview.chromium.org/413763004/diff/1/Source/core/dom/NodeListsNodeData.h#newcode43 Source/core/dom/NodeListsNodeData.h:43: // This can only be called from ContainerNode so ...
6 years, 5 months ago (2014-07-25 00:09:50 UTC) #3
Inactive
I updated the patch as per my counter proposal. I hope this addresses your concerns. ...
6 years, 5 months ago (2014-07-25 12:41:05 UTC) #4
adamk
lgtm Thanks, this approach is nice. The unused ContainerNode& argument is a little weird but ...
6 years, 4 months ago (2014-07-28 18:35:31 UTC) #5
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 4 months ago (2014-07-28 20:27:37 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/413763004/20001
6 years, 4 months ago (2014-07-28 20:28:57 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: blink_presubmit on tryserver.blink ...
6 years, 4 months ago (2014-07-28 20:29:40 UTC) #8
commit-bot: I haz the power
6 years, 4 months ago (2014-07-28 20:32:46 UTC) #9
Message was sent while issue was closed.
Change committed as 179056

Powered by Google App Engine
This is Rietveld 408576698