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

Issue 1904453003: Change finding common ancestor from O(n^2) to O(n) (Closed)

Created:
4 years, 8 months ago by Navid Zolghadr
Modified:
4 years, 8 months ago
Reviewers:
mustaq, dtapuska, bokan
CC:
chromium-reviews, blink-reviews, dtapuska+blinkwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change finding common ancestor from O(n^2) to O(n) Changing the method of finding the common ancestor of two nodes in the boundary transition events from O(n^2) to O(n). BUG=602264 Committed: https://crrev.com/c49fdc54f02eb0d4fe3ca0faf620ad8d45ac77f7 Cr-Commit-Position: refs/heads/master@{#389600}

Patch Set 1 #

Patch Set 2 : Rebased #

Patch Set 3 : #

Total comments: 9

Patch Set 4 : Applying the comments #

Total comments: 27

Patch Set 5 : Applying comments #

Patch Set 6 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -33 lines) Patch
M third_party/WebKit/Source/core/input/PointerEventManager.cpp View 1 2 3 4 5 5 chunks +55 lines, -33 lines 0 comments Download

Messages

Total messages: 27 (8 generated)
Navid Zolghadr
4 years, 8 months ago (2016-04-20 14:35:17 UTC) #2
mustaq
Great catch, Navid! We should have seen this simple solution before. LGTM % renaming etc. ...
4 years, 8 months ago (2016-04-20 16:09:06 UTC) #3
dtapuska
https://codereview.chromium.org/1904453003/diff/40001/third_party/WebKit/Source/core/input/PointerEventManager.cpp File third_party/WebKit/Source/core/input/PointerEventManager.cpp (right): https://codereview.chromium.org/1904453003/diff/40001/third_party/WebKit/Source/core/input/PointerEventManager.cpp#newcode82 third_party/WebKit/Source/core/input/PointerEventManager.cpp:82: void findCommonAncestor( Can we add some comments around this ...
4 years, 8 months ago (2016-04-20 19:42:28 UTC) #4
Navid Zolghadr
ptal https://codereview.chromium.org/1904453003/diff/40001/third_party/WebKit/Source/core/input/PointerEventManager.cpp File third_party/WebKit/Source/core/input/PointerEventManager.cpp (left): https://codereview.chromium.org/1904453003/diff/40001/third_party/WebKit/Source/core/input/PointerEventManager.cpp#oldcode183 third_party/WebKit/Source/core/input/PointerEventManager.cpp:183: HeapVector<Member<Node>, 32> exitedAncestors; On 2016/04/20 16:09:05, mustaq wrote: ...
4 years, 8 months ago (2016-04-21 14:46:41 UTC) #5
dtapuska
On 2016/04/21 14:46:41, Navid Zolghadr wrote: > ptal > > https://codereview.chromium.org/1904453003/diff/40001/third_party/WebKit/Source/core/input/PointerEventManager.cpp > File third_party/WebKit/Source/core/input/PointerEventManager.cpp (left): ...
4 years, 8 months ago (2016-04-21 15:48:44 UTC) #6
mustaq
Still LGTM.
4 years, 8 months ago (2016-04-21 16:22:51 UTC) #7
Navid Zolghadr
bokan@chromium.org: Please review changes in third_party/WebKit/Source/core/input/PointerEventManager.cpp
4 years, 8 months ago (2016-04-21 16:28:53 UTC) #9
bokan
Looks good overall, just some style and suggest sprinkling in some DCHECKs https://codereview.chromium.org/1904453003/diff/60001/third_party/WebKit/Source/core/input/PointerEventManager.cpp File third_party/WebKit/Source/core/input/PointerEventManager.cpp ...
4 years, 8 months ago (2016-04-21 21:38:29 UTC) #10
Navid Zolghadr
https://codereview.chromium.org/1904453003/diff/60001/third_party/WebKit/Source/core/input/PointerEventManager.cpp File third_party/WebKit/Source/core/input/PointerEventManager.cpp (right): https://codereview.chromium.org/1904453003/diff/60001/third_party/WebKit/Source/core/input/PointerEventManager.cpp#newcode83 third_party/WebKit/Source/core/input/PointerEventManager.cpp:83: EventTarget* exitedTarget, EventTarget* enteredTarget, On 2016/04/21 21:38:29, bokan wrote: ...
4 years, 8 months ago (2016-04-21 23:40:14 UTC) #11
bokan
https://codereview.chromium.org/1904453003/diff/60001/third_party/WebKit/Source/core/input/PointerEventManager.cpp File third_party/WebKit/Source/core/input/PointerEventManager.cpp (right): https://codereview.chromium.org/1904453003/diff/60001/third_party/WebKit/Source/core/input/PointerEventManager.cpp#newcode83 third_party/WebKit/Source/core/input/PointerEventManager.cpp:83: EventTarget* exitedTarget, EventTarget* enteredTarget, On 2016/04/21 23:40:14, Navid Zolghadr ...
4 years, 8 months ago (2016-04-22 00:52:54 UTC) #12
Navid Zolghadr
https://codereview.chromium.org/1904453003/diff/60001/third_party/WebKit/Source/core/input/PointerEventManager.cpp File third_party/WebKit/Source/core/input/PointerEventManager.cpp (right): https://codereview.chromium.org/1904453003/diff/60001/third_party/WebKit/Source/core/input/PointerEventManager.cpp#newcode107 third_party/WebKit/Source/core/input/PointerEventManager.cpp:107: enteredAncestorsCommonParentIndex = enteredAncestors.size(); On 2016/04/22 00:52:54, bokan wrote: > ...
4 years, 8 months ago (2016-04-22 01:46:13 UTC) #13
bokan
Ok, lgtm with the changes (that actually made sense) https://codereview.chromium.org/1904453003/diff/60001/third_party/WebKit/Source/core/input/PointerEventManager.cpp File third_party/WebKit/Source/core/input/PointerEventManager.cpp (right): https://codereview.chromium.org/1904453003/diff/60001/third_party/WebKit/Source/core/input/PointerEventManager.cpp#newcode107 third_party/WebKit/Source/core/input/PointerEventManager.cpp:107: ...
4 years, 8 months ago (2016-04-22 01:50:47 UTC) #14
Navid Zolghadr
ptal. Particularly regarding the const parameters. https://codereview.chromium.org/1904453003/diff/60001/third_party/WebKit/Source/core/input/PointerEventManager.cpp File third_party/WebKit/Source/core/input/PointerEventManager.cpp (right): https://codereview.chromium.org/1904453003/diff/60001/third_party/WebKit/Source/core/input/PointerEventManager.cpp#newcode83 third_party/WebKit/Source/core/input/PointerEventManager.cpp:83: EventTarget* exitedTarget, EventTarget* ...
4 years, 8 months ago (2016-04-22 17:04:12 UTC) #15
bokan
https://codereview.chromium.org/1904453003/diff/60001/third_party/WebKit/Source/core/input/PointerEventManager.cpp File third_party/WebKit/Source/core/input/PointerEventManager.cpp (right): https://codereview.chromium.org/1904453003/diff/60001/third_party/WebKit/Source/core/input/PointerEventManager.cpp#newcode83 third_party/WebKit/Source/core/input/PointerEventManager.cpp:83: EventTarget* exitedTarget, EventTarget* enteredTarget, On 2016/04/22 17:04:12, Navid Zolghadr ...
4 years, 8 months ago (2016-04-22 17:30:52 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1904453003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1904453003/80001
4 years, 8 months ago (2016-04-25 14:09:34 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/127101)
4 years, 8 months ago (2016-04-25 14:16:05 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1904453003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1904453003/100001
4 years, 8 months ago (2016-04-25 21:08:19 UTC) #24
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 8 months ago (2016-04-25 23:23:39 UTC) #25
commit-bot: I haz the power
4 years, 8 months ago (2016-04-25 23:26:24 UTC) #27
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/c49fdc54f02eb0d4fe3ca0faf620ad8d45ac77f7
Cr-Commit-Position: refs/heads/master@{#389600}

Powered by Google App Engine
This is Rietveld 408576698