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

Issue 166573003: Port ParentNode API to ElementTraversal (Closed)

Created:
6 years, 10 months ago by Inactive
Modified:
6 years, 10 months ago
Reviewers:
adamk, eseidel
CC:
blink-reviews, ed+blinkwatch_opera.com, krit, sof, eae+blinkwatch, fs, dglazkov+blink, f(malita), adamk+blink_chromium.org, gyuyoung.kim_webkit.org, Stephen Chennney, rwlbuis, pdr., Inactive
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Port ParentNode API to ElementTraversal Port ParentNode API to ElementTraversal and drop corresponding API on ContainerNode. All callers of the ContainerNode API were updated to use ElementTraversal directly. This is more consistent and avoid inefficiencies due to callers assuming those API methods are simple getters although they need to traverse the DOM tree. It is now obvious to callers that they are traversing the DOM tree and that they should cache the return value. R=adamk, eseidel Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167226

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -41 lines) Patch
M Source/core/dom/ContainerNode.h View 1 chunk +0 lines, -4 lines 0 comments Download
M Source/core/dom/ContainerNode.cpp View 1 chunk +0 lines, -24 lines 0 comments Download
M Source/core/dom/Document.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/dom/Element.cpp View 3 chunks +3 lines, -2 lines 0 comments Download
M Source/core/dom/ElementTraversal.h View 2 chunks +14 lines, -1 line 0 comments Download
M Source/core/dom/ParentNode.h View 2 chunks +10 lines, -3 lines 0 comments Download
M Source/core/editing/TypingCommand.cpp View 2 chunks +8 lines, -4 lines 0 comments Download
M Source/core/svg/SVGPatternElement.cpp View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
Inactive
6 years, 10 months ago (2014-02-14 18:20:31 UTC) #1
adamk
lgtm Those non-cached firstElementChild() were indeed crazy.
6 years, 10 months ago (2014-02-14 19:48:02 UTC) #2
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 10 months ago (2014-02-14 20:13:44 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/166573003/1
6 years, 10 months ago (2014-02-14 20:13:58 UTC) #4
commit-bot: I haz the power
6 years, 10 months ago (2014-02-14 22:36:36 UTC) #5
Message was sent while issue was closed.
Change committed as 167226

Powered by Google App Engine
This is Rietveld 408576698