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

Issue 416933002: Regression(r178540): Traversal<*Element>::lastWithin() is incorrect (Closed)

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

Description

Regression(r178540): Traversal<*Element>::lastWithin() is incorrect Traversal<*Element>::lastWithin() is incorrect after r178540 because it changed from using ElementTraversal::lastWithin() to using Node.lastChild() when doing node traversal. The proper API for this is NodeTraversal::lastWithin() as we want the last descendant, not the last child. This was not caught by layout tests because this template specialization is currently unused. Current callers are using the simpler Traversal<Element> template specialization. R=abarth@chromium.org, esprehn@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179057

Patch Set 1 #

Patch Set 2 : Fix build error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M Source/core/dom/ElementTraversal.h View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Inactive
Sorry about that, I introduced this bug in https://codereview.chromium.org/406843002/diff/1/Source/core/dom/ElementTraversal.h
6 years, 4 months ago (2014-07-24 18:08:45 UTC) #1
Inactive
At this point, the code for the Traversal<Element>::lastWithin() template specialization is actually identical to the ...
6 years, 4 months ago (2014-07-24 18:12:46 UTC) #2
Inactive
On 2014/07/24 18:12:46, Chris Dumez wrote: > At this point, the code for the Traversal<Element>::lastWithin() ...
6 years, 4 months ago (2014-07-25 15:12:11 UTC) #3
esprehn
Can we just delete this unused code instead? Having untested code sucks. lgtm
6 years, 4 months ago (2014-07-28 19:11:45 UTC) #4
Inactive
On 2014/07/28 19:11:45, esprehn wrote: > Can we just delete this unused code instead? Having ...
6 years, 4 months ago (2014-07-28 20:28:56 UTC) #5
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 4 months ago (2014-07-28 20:29:00 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/416933002/20001
6 years, 4 months ago (2014-07-28 20:29:42 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 4 months ago (2014-07-28 20:32:20 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-07-28 20:33:00 UTC) #9
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/19289)
6 years, 4 months ago (2014-07-28 20:33:01 UTC) #10
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 4 months ago (2014-07-28 20:36:56 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/416933002/20001
6 years, 4 months ago (2014-07-28 20:37:56 UTC) #12
commit-bot: I haz the power
6 years, 4 months ago (2014-07-28 21:12:52 UTC) #13
Message was sent while issue was closed.
Change committed as 179057

Powered by Google App Engine
This is Rietveld 408576698